Skip to content

Commit

Permalink
fix! add postgres
Browse files Browse the repository at this point in the history
* add a default value for METASTORE_TYPE (mysql)
* update the readme
  • Loading branch information
juleslagarde authored Apr 5, 2023
1 parent 71ec256 commit 128f630
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

1 change: 1 addition & 0 deletions scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 128f630

Please sign in to comment.