Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

user not found error when invoking hive

avatar
Super Collaborator

hive works fine under other accounts but when invoked under "sugu" account gives error as shown below even though I have a Kerberos ticket for it and this account is also in ambari and also belongs to the unix hadoop group.

[root@hadoop1 ~]# su - sugu
[sugu@hadoop1 ~]$ klist
Ticket cache: FILE:/tmp/krb5cc_602
Default principal: sugu@ABC.COM
Valid starting     Expires            Service principal
01/03/17 11:07:17  01/04/17 11:07:17  krbtgt/ABC.COM@ABC.COM
        renew until 01/03/17 11:07:17
[sugu@hadoop1 ~]$ hive
Logging initialized using configuration in file:/etc/hive/2.5.0.0-1245/0/hive-log4j.properties
Exception in thread "main" java.lang.RuntimeException: org.apache.tez.dag.api.SessionNotRunning: TezSession has already shutdown. Application application_1482968526131_0010 failed 2 times due to AM Container for appattempt_1482968526131_0010_000002 exited with  exitCode: -1000
For more detailed output, check the application tracking page: http://hadoop2.abc.com:8088/cluster/app/application_1482968526131_0010 Then click on links to logs of each attempt.
Diagnostics: Application application_1482968526131_0010 initialization failed (exitCode=255) with output: main : command provided 0
main : run as user is sugu
main : requested yarn user is sugu
User sugu not found
Failing this attempt. Failing the application.
        at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:536)
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:680)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:624)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:233)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:148)
Caused by: org.apache.tez.dag.api.SessionNotRunning: TezSession has already shutdown. Application application_1482968526131_0010 failed 2 times due to AM Container for appattempt_1482968526131_0010_000002 exited with  exitCode: -1000
For more detailed output, check the application tracking page: http://hadoop2.abc.com:8088/cluster/app/application_1482968526131_0010 Then click on links to logs of each attempt.
Diagnostics: Application application_1482968526131_0010 initialization failed (exitCode=255) with output: main : command provided 0
main : run as user is sugu
main : requested yarn user is sugu
User sugu not found

1 ACCEPTED SOLUTION

avatar
Super Guru
@Sami Ahmad

Can you make sure if the user is present on all nodes in the cluster?

Suspected that the application where its running on the node the user sugu is not present.

View solution in original post

3 REPLIES 3

avatar
Super Guru
@Sami Ahmad

Can you make sure if the user is present on all nodes in the cluster?

Suspected that the application where its running on the node the user sugu is not present.

avatar
Super Guru

Also is sugu ldap/AD user? or local user?

Can you check the uid and gid for the user on all nodes and confirm if its same across all nodes?

avatar
Super Collaborator

thank you that exactly was the issue, I added the user to all the nodes of the cluster and now hive works.