Unable to connect to hive

Hi,
Hope you are doing great!

I am trying to connect to Hive after logging in to web console, below is the error.

Logging initialized using configuration in file:/etc/hive/2.3.4.0-3485/0/hive-log4j.properties
Exception in thread “main” java.lang.RuntimeException: org.apache.tez.dag.api.SessionNotRunning: TezSession has already shutdown. Application applica
tion_1517296050843_5845 failed 2 times due to AM Container for appattempt_1517296050843_5845_000002 exited with exitCode: -1000
For more detailed output, check application tracking page:http://a.cloudxlab.com:8088/cluster/app/application_1517296050843_5845Then, click on links
to logs of each attempt.
Diagnostics: Could not find any valid local directory for nmPrivate/container_e123_1517296050843_5845_02_000001.tokens
Failing this attempt. Failing the application.
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:507)
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:497)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: org.apache.tez.dag.api.SessionNotRunning: TezSession has already shutdown. Application application_1517296050843_5845 failed 2 times due t
o AM Container for appattempt_1517296050843_5845_000002 exited with exitCode: -1000
For more detailed output, check application tracking page:http://a.cloudxlab.com:8088/cluster/app/application_1517296050843_5845Then, click on links
to logs of each attempt.
Diagnostics: Could not find any valid local directory for nmPrivate/container_e123_1517296050843_5845_02_000001.tokens
Failing this attempt. Failing the application.
at org.apache.tez.client.TezClient.waitTillReady(TezClient.java:726)
at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:217)
at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:117)
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:504)
… 8 more
please help.

Thanks
Sai.

Hi @jspsai4061,

Can you check now? I have restarted the Hive server

Thanks Abhinav, it is working now.!