Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-16057

SchemaTool ignores --passWord argument if hadoop.security.credential.provider.path is configured

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 3.0.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

      Attachments

        1. HIVE-16057.patch
          2 kB
          Peter Vary
        2. HIVE-16057.03.patch
          3 kB
          Peter Vary
        3. HIVE-16057.02.patch
          2 kB
          Peter Vary

        Activity

          People

            pvary Peter Vary
            pvary Peter Vary
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: