Description
If HIVE_OPTS is set schematool command fails to start. To repro this set HIVE_AUX_JARS_PATH
$ export HIVE_AUX_JARS_PATH=/path/lib.jar
Above export adds a --hiveconf option to the commandline args to HiveSchemaTool which doesn't recognize it.
$ hive-install-dir/bin/schematool -dbType derby -info
HiveSchemaTool:Parsing failed. Reason: Unrecognized option: -hiveconf
usage: schemaTool
-dbType <databaseType> Metastore database type
-dryRun list SQL scripts (no execute)
-help print this message
-info Show config and schema details
-initSchema Schema initialization
-initSchemaTo <initTo> Schema initialization to a version
-passWord <password> Override config file password
-upgradeSchema Schema upgrade
-upgradeSchemaFrom <upgradeFrom> Schema upgrade from a version
-userName <user> Override config file user name
-verbose only print SQL statements
Attachments
Attachments
Issue Links
- duplicates
-
HIVE-5677 Beeline warns about unavailable files if HIVE_OPTS is set
- Closed