Rajkumar Singh created HIVE-21538:
-------------------------------------

             Summary: Beeline: password source though the console reader did 
not pass to connection param
                 Key: HIVE-21538
                 URL: https://issues.apache.org/jira/browse/HIVE-21538
             Project: Hive
          Issue Type: Bug
          Components: HiveServer2
    Affects Versions: 3.1.0
         Environment: Hive-3.1 auth set to LDAP
            Reporter: Rajkumar Singh


Beeline: password source through the console reader do not pass to connection 
param, this will yield into the Authentication failure in case of LDAP 
authentication.
{code}
beeline -n USER -u 
"jdbc:hive2://host:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2"
 -p

Connecting to 
jdbc:hive2://host:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;user=USER
Enter password for jdbc:hive2://host:2181/: ************
19/03/26 19:49:44 [main]: WARN jdbc.HiveConnection: Failed to connect to 
host:10000
19/03/26 19:49:44 [main]: ERROR jdbc.Utils: Unable to read HiveServer2 configs 
from ZooKeeper
Unknown HS2 problem when communicating with Thrift server.
Error: Could not open client transport for any of the Server URI's in 
ZooKeeper: Peer indicated failure: PLAIN auth failed: 
javax.security.sasl.AuthenticationException: Error validating LDAP user [Caused 
by javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: 
LdapErr: DSID-0C0903C8, comment: AcceptSecurityContext error, data 52e, v2580]] 
(state=08S01,code=0)
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to