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

beeline does not honor driver mandated key/value pairs for uid & pwd.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1.0
    • Fix Version/s: None
    • Component/s: Beeline
    • Labels:
      None

      Description

      Please confirm and correct if necessary the expectation that beeline program should honor the driver's key/value pairs for UID/PWD.

      Steps to reproduce the issue -
      1. Download latest Impala JDBC driver from - 'https://www.cloudera.com/downloads/connectors/impala/jdbc/2-6-4.html'
      2. Extract, set & export HADOOP_CLASSPATH to: $(hadoop classpath):<location_of_impala_jdbc_driver>
      3. As per the documentation of the driver, we should be setting up: AuthMech=3;UID=<ldap_user>;PWD=<ldap_user_password> for connecting to impala jdbc using LDAP. [1]
      4. However, beeline is unable to successfully connect.
      5. Impala coordinator logs displays the error [2] below.
      6. If we however use "user=<ldap_user>;password=<ldap_user_password>" in the connection string, it works fine. [3]
      7. However, the expectation is that beeline should honor driver's kv pairs for uid/pwd.

      Regards,
      Venu Yanamandra

      [1]:
      beeline -d "com.cloudera.impala.jdbc41.Driver" -u "jdbc:impala://nightly512-3.vpc.cloudera.com:21051/default;SSL=1;SSLTrustStore=/etc/cdep-ssl-conf/CA_STANDARD/truststore.jks;SSLTrustStorePwd=cloudera;AllowSelfSignedCerts=1;CAIssuedCertNamesMismatch=1;AuthMech=3;UID=test1;PWD=Password1;LogLevel=6;LogPath=/root/ijdbc/drvlog"
      
      [2]:
      E1024 04:34:52.694922 29833 authentication.cc:159] SASL message (LDAP): All-whitespace username.
      I1024 04:34:52.696190 29833 thrift-util.cc:123] TThreadPoolServer: Caught TException: SASL(-1): generic failure: All-whitespace username.
      
      [3]:
      beeline -d "com.cloudera.impala.jdbc41.Driver" -u "jdbc:impala://nightly512-3.vpc.cloudera.com:21051/default;SSL=1;SSLTrustStore=/etc/cdep-ssl-conf/CA_STANDARD/truststore.jks;SSLTrustStorePwd=cloudera;AllowSelfSignedCerts=1;CAIssuedCertNamesMismatch=1;AuthMech=3;user=test1;password=Password1;UID=test1;PWD=Password1;LogLevel=6;LogPath=/root/ijdbc/drvlog" -e "show databases;"
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              venu.yanamandra@live.com Venu Yanamandra
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: