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
mysql -u username -p (Enter password when prompted)
mysql> CREATE USER 'catalog_user'@'%' IDENTIFIED WITH mysql_native_password BY 'catalog_password';
mysql> CREATE DATABASE catalog_db;
mysql> GRANT ALL PRIVILEGES ON catalog_db.* TO 'catalog_user'@'%' IDENTIFIED BY 'catalog_password';
mysql> CREATE USER 'openmetadata_user'@'%' IDENTIFIED WITH mysql_native_password BY 'openmetadata_password';
mysql> CREATE DATABASE openmetadata_db;
mysql> `GRANT ALL PRIVILEGES ON openmetadata_db.* TO 'openmetadata_user'@'%' IDENTIFIED BY 'openmetadata_password'`;
mysql> FLUSH PRIVILEGES;
```
### 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).
```shells
mvn -DskipTests clean package
cd dist/target
tar zxvf catalog-1.0.0-SNAPSHOT.tar.gz
cd catalog-1.0.0-SNAPSHOT/bootstrap
tar zxvf openmetadata-1.0.0-SNAPSHOT.tar.gz
cd openmetadata-1.0.0-SNAPSHOT/bootstrap
./bootstrap_storage.sh migrate
cd ../
```
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
```
./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/api/swagger to look at API documentation.
### Setup Authorizer Configuration
Enter following information in ***/conf/catalog-security.yaml*** file:
Enter following information in ***/conf/openmetadata-security.yaml*** file:
```
authorizerConfiguration:
className: <authorizer_classname>

View File

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

View File

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

View File

@ -30,7 +30,7 @@ while [ -h "${PRG}" ]; do
done
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"
# Which java to use

View File

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

View File

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

2
dist/pom.xml vendored
View File

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

View File

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

View File

@ -20,10 +20,10 @@ cd /
while ! curl -o - 172.16.239.10:3306; do sleep 1; done
tar zxvf catalog-1.0.0-SNAPSHOT.tar.gz
cp /catalog.yaml /catalog-1.0.0-SNAPSHOT/conf/
tar zxvf openmetadata-1.0.0-SNAPSHOT.tar.gz
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
./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
driverClass: com.mysql.cj.jdbc.Driver
# the username and password
user: catalog_user
password: catalog_password
# the JDBC URL; the database is called catalog_db
url: jdbc:mysql://localhost/catalog_db?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
user: openmetadata_user
password: openmetadata_password
# the JDBC URL; the database is called openmetadata_db
url: jdbc:mysql://localhost/openmetadata_db?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
elasticsearch: