Hive Not working

Hi,

I am trying to access Hive and getting below error. Could you please check and reply me ASAP…

[maheshharuvaiah8134@ip-172-31-60-179 ~]$ hive
WARNING: Use “yarn jar” to launch YARN applications.
Logging initialized using configuration in file:/etc/hive/2.3.4.0-3485/0/hive-log4j.properties
Exception in thread “main” java.lang.RuntimeException: java.io.IOException: Previous writer likely failed to write hdfs://ip-172-31-53-48.e
c2.internal:8020/tmp/hive/maheshharuvaiah8134/_tez_session_dir/66db9943-57ca-4eb1-ae54-243a6fbe78e6/hive-hcatalog-core.jar. Failing because
I am unlikely to write too.
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: java.io.IOException: Previous writer likely failed to write hdfs://ip-172-31-53-48.ec2.internal:8020/tmp/hive/maheshharuvaiah813
4/_tez_session_dir/66db9943-57ca-4eb1-ae54-243a6fbe78e6/hive-hcatalog-core.jar. Failing because I am unlikely to write too.
at org.apache.hadoop.hive.ql.exec.tez.DagUtils.localizeResource(DagUtils.java:982)
at org.apache.hadoop.hive.ql.exec.tez.DagUtils.addTempResources(DagUtils.java:862)
at org.apache.hadoop.hive.ql.exec.tez.DagUtils.localizeTempFilesFromConf(DagUtils.java:805)
at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.refreshLocalResourcesFromConf(TezSessionState.java:233)
at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:158)
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

Thanks,
Mahesh .H

Hi Mahesh,

Did you get a solution for this.I face the same issue

Please share if you got a solution

Thanks