VMware Tanzu Archive

 View Only

 Unable to login to hive

Navyarani Angadimath's profile image
Navyarani Angadimath posted Sep 10, 2018 11:28 AM

We are seeing below error in the logs of hive server log and in /var/log/secure.log and unable to connect to hive shell

 

Hiveserver log:

 

2018-09-10 02:56:36,631 ERROR [HiveServer2-Handler-Pool: Thread-55]: transport.TSaslTransport (TSaslTransport.java:open(315)) - SASL negotiation failure

javax.security.sasl.SaslException: Error validating the login [Caused by javax.security.sasl.AuthenticationException: Error authenticating with the PAM service: login]

    at org.apache.hive.service.auth.PlainSaslServer.evaluateResponse(PlainSaslServer.java:109)

    at org.apache.thrift.transport.TSaslTransport$SaslParticipant.evaluateChallengeOrResponse(TSaslTransport.java:539)

    at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:283)

    at org.apache.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.java:41)

    at org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:216)

    at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:268)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

    at java.lang.Thread.run(Thread.java:745)

 

 

/var/log/secure.log

 

Sep 9 16:41:32 bdlhdcdev02 java: pam_faillock(login:auth): User unknown

Sep 9 16:41:32 bdlhdcdev02 java: pam_unix(login:auth): check pass; user unknown

Sep 9 16:41:32 bdlhdcdev02 java: pam_unix(login:auth): authentication failure; logname= uid=495 euid=495 tty= ruser= rhost=

Sep 9 16:41:32 bdlhdcdev02 java: pam_faillock(login:auth): User unknown

Sep 9 16:41:34 bdlhdcdev02 java: pam_securetty(login:auth): cannot determine user's tty

Sep 9 16:41:34 bdlhdcdev02 java: pam_faillock(login:auth): User unknown

Sep 9 16:41:34 bdlhdcdev02 java: pam_unix(login:auth): check pass; user unknown

 

---------------------------------------------------------------------------------------------------

UID:495 highlighted above is "hive" user

 

[hdpadmin@bdlhdcdev02 ~]$ id 495

uid=495(hive) gid=10900(hadoop) groups=10900(hadoop),495(hive)