Norbert Kiam Maclang created HIVE-24889:
-------------------------------------------

             Summary: Hive CLI not working after upgrading from Oracle JDK 
8u112 to 8u281
                 Key: HIVE-24889
                 URL: https://issues.apache.org/jira/browse/HIVE-24889
             Project: Hive
          Issue Type: Bug
          Components: Hive
    Affects Versions: 1.2.1
            Reporter: Norbert Kiam Maclang


After upgrading Oracle JDK version from jdk-8u112 to jdk-8u281, Hive CLI is not 
working anymore and gives below error when logging in.
{code:java}
WARNING: Use "yarn jar" to launch YARN applications.
21/03/09 11:00:04 WARN conf.HiveConf: HiveConf of name 
hive.server2.enable.impersonation does not existLogging initialized using 
configuration in file:/etc/hive/2.4.3.0-227/0/hive-log4j.properties
Exception in thread "main" java.lang.RuntimeException: java.io.IOException: 
Previous writer likely failed to write 
hdfs://ppcontent-nn1.pp-content.dataplatform.com:8020/tmp/hive/hive/_tez_session_dir/96b21825-63f4-4316-9c43-20ebe641d9c9/hive-hcatalog-core.jar.
 Failing because I am unlikely to write too.
        at 
org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:544)
        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:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.io.IOException: Previous writer likely failed to write 
hdfs://ppcontent-nn1.pp-content.dataplatform.com:8020/tmp/hive/hive/_tez_session_dir/96b21825-63f4-4316-9c43-20ebe641d9c9/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:541)
        ... 8 more
{code}
Version we are using:

Ambari 2.0.0

Hive 1.2.1



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to