dengzhhu653 commented on code in PR #5629: URL: https://github.com/apache/hive/pull/5629#discussion_r1947548451
########## packaging/src/docker/README.md: ########## @@ -210,3 +210,14 @@ docker compose down select count(distinct a) from hive_example; select sum(b) from hive_example; ``` + +#### Hive Schema Tool + +`Hive Schema Tool` is located in the Docker Image at `/opt/hive/bin/schematool`. +Possible use cases are as follows, + +```shell +docker run -d --env SERVICE_NAME=hiveserver2 --name hive4 apache/hive:${HIVE_VERSION} +docker exec -it hive4 /bin/bash +/opt/hive/bin/schematool -info -dbType hive -metaDbType derby -url jdbc:hive2://localhost:10000/default Review Comment: The HS2 also needs to configure these properties in order to read the data stored remotely, ``` -Djavax.jdo.option.ConnectionDriverName=org.postgresql.Driver -Djavax.jdo.option.ConnectionURL=jdbc:postgresql://some-postgres:5432/postgres -Djavax.jdo.option.ConnectionUserName=postgres -Djavax.jdo.option.ConnectionPassword=example ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org