Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-24889

Hive CLI not working after upgrading from Oracle JDK 8u112 to 8u281

Log workAgile BoardRank to TopRank to BottomAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: Hive, Tez
    • Labels:
      None

      Description

      After upgrading Oracle JDK version from jdk-8u112 to jdk-8u281, Hive CLI is not working anymore and gives below error when logging in.

      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
      

      Version we are using:

      • Ambari 2.2.2
      • Hive 1.2.1
      • Hadoop 2.7
      • Spark 1.6
      • HDP 2.4
      • Tez 0.7.0.2.4

        Attachments

        Issue Links

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              Unassigned Assign to me
              Reporter:
              norbert.k.b.maclang Norbert Kiam Maclang

              Dates

              • Created:
                Updated:

                Issue deployment