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

Beeline: password source though the console reader did not pass to connection param

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      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.

      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)
      

      Attachments

        1. HIVE-21538.02.patch
          1 kB
          Rajkumar Singh
        2. HIVE-21538.01.patch
          1 kB
          Rajkumar Singh
        3. HIVE-21538.patch
          0.9 kB
          Rajkumar Singh

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Rajkumar Singh Rajkumar Singh Assign to me
            Rajkumar Singh Rajkumar Singh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 0.5h
              0.5h

              Slack

                Issue deployment