[ https://issues.apache.org/jira/browse/HIVE-21538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rajkumar Singh updated HIVE-21538: ---------------------------------- Status: Open (was: Patch Available) > 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 > Assignee: Rajkumar Singh > Priority: Major > Attachments: HIVE-21538.01.patch, HIVE-21538.patch > > > 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)