You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Korayya Suresh Kumar (Jira)" <ji...@apache.org> on 2021/03/09 11:41:00 UTC

[jira] [Updated] (AMBARI-25628) Hive cli not working after upgrading jdk version from jdk-8u112 to jdk-8u281

     [ https://issues.apache.org/jira/browse/AMBARI-25628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Korayya Suresh Kumar updated AMBARI-25628:
------------------------------------------
    Description: 
Hi Team,

After upgrading jdk version from jdk-8u112 to jdk-8u281 hive cli is not working, and gives below error while login.

 
{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}
please provide the JDK versions which supports Ambari 2.0 

Please suggest how to fix the issue.

 

  was:
Hi Team,

After upgrading jdk version from jdk-8u112 to jdk-8u281 hive cli is not working, and gives below error while login.

 
{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}
 Please suggest how to fix the issue.

 


> Hive cli not working after upgrading jdk version from jdk-8u112 to jdk-8u281
> ----------------------------------------------------------------------------
>
>                 Key: AMBARI-25628
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25628
>             Project: Ambari
>          Issue Type: Bug
>          Components:  HiveServer2, Metastore, and Client Heap Sizes to Smart Configs, ambari-server
>    Affects Versions: 2.0.0
>         Environment: For all environments
>            Reporter: Korayya Suresh Kumar
>            Priority: Blocker
>              Labels: ambari, hive
>
> Hi Team,
> After upgrading jdk version from jdk-8u112 to jdk-8u281 hive cli is not working, and gives below error while login.
>  
> {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}
> please provide the JDK versions which supports Ambari 2.0 
> Please suggest how to fix the issue.
>  



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