General purpose metadata repository and schema registry
10K+
General purpose metadata repository and schema registry service.
It allows you to
There are three ways to install metastore2 as a micorservice:
In order to run this microservice via docker you'll need:
Typically, there is no need for locally building images as all version are accessible via DockerHub. Have a look of available images and their tags here (available soon) Just follow instructions below.
In order to run this microservice via docker you'll need:
First of all you'll have to clone this repository:
user@localhost:/home/user/$ git clone https://github.com/kit-data-manager/metastore2.git
Clone to 'metastore2'
[...]
user@localhost:/home/user/$ cd metastore2
user@localhost:/home/user/metastore2$
Now you'll have to create an image containing the micro service. This can be done via a script. On default the created images will be tagged as follows:
'latest tag'-'actual date(yyyy-mm-dd)' (e.g.: 0.1.1-2020-10-05)
user@localhost:/home/user/metastore2$ bash docker/buildDocker.sh
---------------------------------------------------------------------------
Build docker container kitdm/metastore2:0.1.1-2020-10-05
---------------------------------------------------------------------------
[...]
---------------------------------------------------------------------------
Now you can create and start the container by calling ...
---------------------------------------------------------------------------
user@localhost:/home/user/metastore2$
After building image you have to create (and start) a container for executing microservice:
# If you want to use a specific image you may list all possible tags first.
user@localhost:/home/user/metastore2$ docker images kitdm/metastore2 --format {{.Tag}}
0.1.1-2020-10-05
user@localhost:/home/user/metastore2$ docker run -d -p8040:8040 --name metastore4docker kitdm/metastore2:0.1.1-2020-10-05
57c973e7092bfc3778569f90632d60775dfecd12352f13a4fd2fdf4270865286
user@localhost:/home/user/metastore2$
If you want to stop container just type
user@localhost:/home/user/metastore2$ docker stop metastore4docker
If you want to start container just type
user@localhost:/home/user/metastore2$ docker start metastore4docker
In order to run this microservice via docker you'll need:
First of all you'll have to clone this repository:
user@localhost:/home/user/$ git clone https://github.com/kit-data-manager/metastore2.git
Clone to 'metastore2'
[...]
user@localhost:/home/user/$ cd metastore2
user@localhost:/home/user/metastore2$
To build service just execute the build.sh script:
user@localhost:/home/user/metastore2$bash build.sh /path/to/empty/installation/directory
---------------------------------------------------------------------------
Build microservice of metastore2 at /path/to/empty/installation/directory
---------------------------------------------------------------------------
[...]
---------------------------------------------------------------------------
Now you can start the service by calling /path/to/empty/installation/directory/run.sh
---------------------------------------------------------------------------
user@localhost:/home/user/metastore2$
The metastore framework consists of the following services:
As soon as the microservice is started, you can browse to
http://localhost:8040/swagger-ui.html
in order to see available RESTful endpoints and their documentation. Furthermore, you can use this Web interface to test single API calls in order to get familiar with the service. A small documentation guiding you through the first steps of using the RESTful API you can find at
http://localhost:8040/static/docs/documentation.html
:WARNING: If you want to use the service in production mode you have modify your configuration (application.properties).
:information_source: If metastore should be used standalone (without KIT Data Manager) you have to setup a database before. (See 'Installation PostgreSQL')
Before you are able to start the repository microservice, you have to modify the file 'application.properties' according to your local setup. Therefor, copy the file 'settings/application-example.properties' to your project folder, rename it to 'application.properties' and customize it. Special attentioned should be payed to the database setup (spring.datasource.*), and the paths of schemata (metastore.schema.schemaFolder) / metadata (metastore.schema.metadataFolder). If you changed the port you also have to adapt the url of the schema registry (metastore.metadata.schemaRegistries) to the repository base path. Also, the property 'repo.messaging.enabled' should be changed to 'true' in case you want to use the messaging feature of the repository.
See setup database and setup for metastore.
As soon as you finished modifying 'application.properties', you may start the repository microservice by executing the following command inside the project folder, e.g. where the service has been built before:
The Metastore2 is licensed under the Apache License, Version 2.0.
Content type
Image
Digest
sha256:7c5b0f032…
Size
295.9 MB
Last updated
over 2 years ago
docker pull kitdm/metastore2Pulls:
69
Last week