You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Peter Vary (JIRA)" <ji...@apache.org> on 2017/02/28 14:07:45 UTC
[jira] [Updated] (HIVE-16057) SchemaTool ignores --passWord
argument if hadoop.security.credential.provider.path is configured
[ https://issues.apache.org/jira/browse/HIVE-16057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Vary updated HIVE-16057:
------------------------------
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:
{code}
<property>
<name>hadoop.security.credential.provider.path</name>
<value>localjceks://file//Users/petervary/tmp/conf/creds.localjceks</value>
</property>
{code}
{code}
$ ../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 ***
{code}
The {{--passWord}} argument should override the errors from the credential provider
was: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}}
> SchemaTool ignores --passWord argument if hadoop.security.credential.provider.path is configured
> ------------------------------------------------------------------------------------------------
>
> Key: HIVE-16057
> URL: https://issues.apache.org/jira/browse/HIVE-16057
> Project: Hive
> Issue Type: Bug
> Affects Versions: 2.2.0
> Reporter: Peter Vary
> Assignee: Peter Vary
>
> 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:
> {code}
> <property>
> <name>hadoop.security.credential.provider.path</name>
> <value>localjceks://file//Users/petervary/tmp/conf/creds.localjceks</value>
> </property>
> {code}
> {code}
> $ ../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 ***
> {code}
> The {{--passWord}} argument should override the errors from the credential provider
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)