You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Thejas M Nair (JIRA)" <ji...@apache.org> on 2019/04/02 17:24:00 UTC

[jira] [Commented] (HIVE-21538) Beeline: password source though the console reader did not pass to connection param

    [ https://issues.apache.org/jira/browse/HIVE-21538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16807936#comment-16807936 ] 

Thejas M Nair commented on HIVE-21538:
--------------------------------------

I think its better to have a separate check for user and separate one for password instead of combining both into same (the way it is right now).



> 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.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)