Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.0
-
None
-
None
Description
It the hadoop.security.credential.provider.path is defined in command line, but the correct HADOOP_CREDSTORE_PASSWORD is not provided the SchemaTool fails, even if the correct metastore password is provided with --passWord
Could be reproduced if the hive-site.xml contains the following:
<property>
<name>hadoop.security.credential.provider.path</name>
<value>localjceks://file//Users/petervary/tmp/conf/creds.localjceks</value>
</property>
$ ../schemaTool --dbType=mysql --info --passWord=pwd
Metastore connection URL: jdbc:mysql://localhost:3306/hive?useUnicode=true&characterEncoding=UTF-8
Metastore Connection Driver : com.mysql.jdbc.Driver
Metastore connection User: hive
org.apache.hadoop.hive.metastore.HiveMetaException: Failed to get schema version.
*** schemaTool failed ***
The --passWord argument should override the errors from the credential provider