Zhihua Deng created HIVE-26402: ---------------------------------- Summary: HiveSchemaTool does not honor metastore-site.xml Key: HIVE-26402 URL: https://issues.apache.org/jira/browse/HIVE-26402 Project: Hive Issue Type: Improvement Components: Metastore Reporter: Zhihua Deng
When using following scripts for initializing metastore schema, {code:java} export HIVE_CONF_DIR='/path/to/metastore_conf' ./bin/schematool -dbType mysql -initSchema{code} the schematool command will be failed though we have a valid metastore-site.xml under the config path, it tries to init the default embeded db. {noformat} Metastore connection URL: jdbc:derby:;databaseName=metastore_db;create=true Metastore connection Driver : org.apache.derby.jdbc.EmbeddedDriver Metastore connection User: APP Initializing the schema to: 4.0.0-alpha-2{noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)