replaced catalog to openmetadata #2 (#47)

Co-authored-by: parthp2107 <parth.panchal@deuexsoultions.com>
This commit is contained in:
parthp2107 2021-08-05 10:15:52 +05:30 committed by GitHub
parent b59c4974a5
commit 8a92d253db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 36 additions and 36 deletions

View File

@ -26,37 +26,37 @@
```shell ```shell
mysql -u username -p (Enter password when prompted) mysql -u username -p (Enter password when prompted)
mysql> CREATE USER 'catalog_user'@'%' IDENTIFIED WITH mysql_native_password BY 'catalog_password'; mysql> CREATE USER 'openmetadata_user'@'%' IDENTIFIED WITH mysql_native_password BY 'openmetadata_password';
mysql> CREATE DATABASE catalog_db; mysql> CREATE DATABASE openmetadata_db;
mysql> GRANT ALL PRIVILEGES ON catalog_db.* TO 'catalog_user'@'%' IDENTIFIED BY 'catalog_password'; mysql> `GRANT ALL PRIVILEGES ON openmetadata_db.* TO 'openmetadata_user'@'%' IDENTIFIED BY 'openmetadata_password'`;
mysql> FLUSH PRIVILEGES; mysql> FLUSH PRIVILEGES;
``` ```
### Build OpenMetdata project and run it ### Build OpenMetdata project and run it
Make sure mysql is running with credentials user 'catalog_user' with password 'catalog_password'. Make sure mysql is running with credentials user 'openmetadata_user' with password 'openmetadata_password'.
Connect to mysql following steps mentioned [here](#steps-to-connect-mysql). Connect to mysql following steps mentioned [here](#steps-to-connect-mysql).
```shells ```shells
mvn -DskipTests clean package mvn -DskipTests clean package
cd dist/target cd dist/target
tar zxvf catalog-1.0.0-SNAPSHOT.tar.gz tar zxvf openmetadata-1.0.0-SNAPSHOT.tar.gz
cd catalog-1.0.0-SNAPSHOT/bootstrap cd openmetadata-1.0.0-SNAPSHOT/bootstrap
./bootstrap_storage.sh migrate ./bootstrap_storage.sh migrate
cd ../ cd ../
``` ```
If authorizer is configured, run: If authorizer is configured, run:
``` ```
./bin/catalog-server-start.sh conf/catalog-security.yaml ./bin/openmetadata-server-start.sh conf/openmetadata-security.yaml
``` ```
otherwise run otherwise run
``` ```
./bin/catalog-server-start.sh conf/catalog.yaml ./bin/openmetadata-server-start.sh conf/openmetadata.yaml
``` ```
Open browser http://localhost:8585/ to start the UI.\ Open browser http://localhost:8585/ to start the UI.\
Open browser http://localhost:8585/api/swagger to look at API documentation. Open browser http://localhost:8585/api/swagger to look at API documentation.
### Setup Authorizer Configuration ### Setup Authorizer Configuration
Enter following information in ***/conf/catalog-security.yaml*** file: Enter following information in ***/conf/openmetadata-security.yaml*** file:
``` ```
authorizerConfiguration: authorizerConfiguration:
className: <authorizer_classname> className: <authorizer_classname>

View File

@ -18,7 +18,7 @@
if [ $# -lt 1 ]; if [ $# -lt 1 ];
then then
echo "USAGE: $0 [-daemon] catalog.yaml" echo "USAGE: $0 [-daemon] openmetadata.yaml"
exit 1 exit 1
fi fi
base_dir=$(dirname $0)/.. base_dir=$(dirname $0)/..

View File

@ -28,7 +28,7 @@ mkdir -p $LOG_DIR
[ -z $MAX_WAIT_TIME ] && MAX_WAIT_TIME=120 [ -z $MAX_WAIT_TIME ] && MAX_WAIT_TIME=120
# OpenMetadata env script # OpenMetadata env script
. $CATALOG_HOME/conf/catalog-env.sh . $CATALOG_HOME/conf/openmetadata-env.sh
function catalogStart { function catalogStart {
catalogStatus -q catalogStatus -q
@ -125,7 +125,7 @@ else
fi fi
# CATALOG env script # CATALOG env script
. ${CATALOG_HOME}/conf/catalog-env.sh . ${CATALOG_HOME}/conf/openmetadata-env.sh
PID=0 PID=0
@ -187,7 +187,7 @@ option="$1"
shift shift
case "${option}" in case "${option}" in
start) start)
conf="$CATALOG_HOME/conf/catalog.yaml" conf="$CATALOG_HOME/conf/openmetadata.yaml"
if [[ $# -eq 1 ]]; then conf="${1}"; fi if [[ $# -eq 1 ]]; then conf="${1}"; fi
catalogStart "${conf}" catalogStart "${conf}"
;; ;;

View File

@ -30,7 +30,7 @@ while [ -h "${PRG}" ]; do
done done
BOOTSTRAP_DIR=`dirname ${PRG}` BOOTSTRAP_DIR=`dirname ${PRG}`
CONFIG_FILE_PATH=${BOOTSTRAP_DIR}/../conf/catalog.yaml CONFIG_FILE_PATH=${BOOTSTRAP_DIR}/../conf/openmetadata.yaml
SCRIPT_ROOT_DIR="${BOOTSTRAP_DIR}/sql" SCRIPT_ROOT_DIR="${BOOTSTRAP_DIR}/sql"
# Which java to use # Which java to use

View File

@ -110,10 +110,10 @@ database:
# the name of the JDBC driver, mysql in our case # the name of the JDBC driver, mysql in our case
driverClass: com.mysql.cj.jdbc.Driver driverClass: com.mysql.cj.jdbc.Driver
# the username and password # the username and password
user: catalog_user user: openmetadata_user
password: catalog_password password: openmetadata_password
# the JDBC URL; the database is called catalog_db # the JDBC URL; the database is called openmetadata_db
url: jdbc:mysql://localhost/catalog_db?useSSL=false&serverTimezone=UTC url: jdbc:mysql://localhost/openmetadata_db?useSSL=false&serverTimezone=UTC
# Authorizer Configuration # Authorizer Configuration

View File

@ -109,10 +109,10 @@ database:
# the name of the JDBC driver, mysql in our case # the name of the JDBC driver, mysql in our case
driverClass: com.mysql.cj.jdbc.Driver driverClass: com.mysql.cj.jdbc.Driver
# the username and password # the username and password
user: catalog_user user: openmetadata_user
password: catalog_password password: openmetadata_password
# the JDBC URL; the database is called catalog_db # the JDBC URL; the database is called openmetadata_db
url: jdbc:mysql://localhost/catalog_db?useSSL=false&serverTimezone=UTC url: jdbc:mysql://localhost/openmetadata_db?useSSL=false&serverTimezone=UTC
elasticsearch: elasticsearch:

2
dist/pom.xml vendored
View File

@ -46,7 +46,7 @@
</dependencies> </dependencies>
<properties> <properties>
<final.Name>catalog</final.Name> <final.Name>openmetadata</final.Name>
</properties> </properties>
<build> <build>

View File

@ -21,9 +21,9 @@ services:
restart: always restart: always
environment: environment:
MYSQL_ROOT_PASSWORD: password MYSQL_ROOT_PASSWORD: password
MYSQL_USER: catalog_user MYSQL_USER: openmetadata_user
MYSQL_PASSWORD: catalog_password MYSQL_PASSWORD: openmetadata_password
MYSQL_DATABASE: catalog_db MYSQL_DATABASE: openmetadata_db
expose: expose:
- 3306 - 3306
networks: networks:
@ -82,8 +82,8 @@ services:
restart: always restart: always
environment: environment:
POSTGRES_DB: pagila POSTGRES_DB: pagila
POSTGRES_USER: catalog_user POSTGRES_USER: openmetadata_user
POSTGRES_PASSWORD: catalog_password POSTGRES_PASSWORD: openmetadata_password
ports: ports:
- 5433:5432 - 5433:5432
networks: networks:

View File

@ -20,10 +20,10 @@ cd /
while ! curl -o - 172.16.239.10:3306; do sleep 1; done while ! curl -o - 172.16.239.10:3306; do sleep 1; done
tar zxvf catalog-1.0.0-SNAPSHOT.tar.gz tar zxvf openmetadata-1.0.0-SNAPSHOT.tar.gz
cp /catalog.yaml /catalog-1.0.0-SNAPSHOT/conf/ cp /openmetadata.yaml /openmetadata-1.0.0-SNAPSHOT/conf/
cd /catalog-1.0.0-SNAPSHOT cd /openmetadata-1.0.0-SNAPSHOT
./bootstrap/bootstrap_storage.sh migrate ./bootstrap/bootstrap_storage.sh migrate
./bin/catalog-server-start.sh conf/catalog.yaml ./bin/openmetadata-server-start.sh conf/openmetadata.yaml

View File

@ -109,10 +109,10 @@ database:
# the name of the JDBC driver, mysql in our case # the name of the JDBC driver, mysql in our case
driverClass: com.mysql.cj.jdbc.Driver driverClass: com.mysql.cj.jdbc.Driver
# the username and password # the username and password
user: catalog_user user: openmetadata_user
password: catalog_password password: openmetadata_password
# the JDBC URL; the database is called catalog_db # the JDBC URL; the database is called openmetadata_db
url: jdbc:mysql://localhost/catalog_db?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true url: jdbc:mysql://localhost/openmetadata_db?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
elasticsearch: elasticsearch: