From 128f630075c3cc34928d4604dfb45d02ad6c25fa Mon Sep 17 00:00:00 2001 From: juleslagarde <23563133+juleslagarde@users.noreply.github.com> Date: Wed, 5 Apr 2023 15:26:20 +0200 Subject: [PATCH] fix! add postgres * add a default value for METASTORE_TYPE (mysql) * update the readme --- README.md | 1 + scripts/entrypoint.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index a22f4ce..340155d 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,5 @@ purposes. DO NOT use for production. ENV variables: - METASTORE_DB_HOSTNAME - hostname used to ping metastore db during init + - METASTORE_TYPE - type of metastore db (options: mysql, postgres) (default: mysql) \ No newline at end of file diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 364847e..2d37837 100644 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -4,6 +4,7 @@ export HADOOP_HOME=/opt/hadoop-3.2.0 export HADOOP_CLASSPATH=${HADOOP_HOME}/share/hadoop/tools/lib/aws-java-sdk-bundle-1.11.375.jar:${HADOOP_HOME}/share/hadoop/tools/lib/hadoop-aws-3.2.0.jar export JAVA_HOME=/usr/local/openjdk-8 export METASTORE_DB_HOSTNAME=${METASTORE_DB_HOSTNAME:-localhost} +export METASTORE_TYPE=${METASTORE_TYPE:-mysql} MYSQL='mysql' POSTGRES='postgres'