dengzhhu653 commented on PR #5629: URL: https://github.com/apache/hive/pull/5629#issuecomment-2647270394
> * I found a potential drawback of the current PR is that due to the use of remote HMS, the startup of HS2 is particularly long and requires at least 2 minutes of waiting. According to my test results at [Add unit tests for `information_schema` database with custom tablesĀ linghengqian/hive-server2-jdbc-driver#23](https://github.com/linghengqian/hive-server2-jdbc-driver/pull/23), should I adjust `compose.yaml` to the following? > > ```yaml > services: > some-postgres: > image: postgres:17.2-bookworm > environment: > POSTGRES_PASSWORD: "example" > hiveserver2-standalone: > image: apache/hive:4.0.1 > depends_on: > - some-postgres > environment: > SERVICE_NAME: hiveserver2 > DB_DRIVER: postgres > SERVICE_OPTS: >- > -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 > volumes: > - ~/.m2/repository/org/postgresql/postgresql/42.7.5/postgresql-42.7.5.jar:/opt/hive/lib/postgres.jar > ``` > > ```shell > mvn dependency:get -Dartifact=org.postgresql:postgresql:42.7.5 > docker compose up -d > docker compose exec hiveserver2-standalone /bin/bash > /opt/hive/bin/schematool -initSchema -dbType hive -metaDbType postgres -url jdbc:hive2://localhost:10000/default > exit > ``` It also works -- 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