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

Unable to start Hive - java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/hadoop/crypto/key/KeyProvider

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.3.7
    • Fix Version/s: None
    • Component/s: CLI
    • Labels:
      None
    • Environment:

      Description

      My Hadoop version is Hadoop 2.3.0-cdh5.0.0 and my Hive 2.3.7, while executive Hive, i'm getting the following error message. I could sense that there is some JAR file missing in the classpath. But could not get the relevant classpath.

       

      Logging initialized using configuration in jar:file:/usr/local/hive/apache-hive-2.3.7-bin/lib/hive-common-2.3.7.jar!/hive-log4j2.properties Async: true

      Exception in thread "main" java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/hadoop/crypto/key/KeyProvider

      at org.apache.hadoop.hive.shims.ShimLoader.getHadoopShims(ShimLoader.java:91)

      at org.apache.hadoop.hive.ql.exec.Utilities.createDirsWithPermission(Utilities.java:3323)

      at org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:709)

      at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:654)

      at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:586)

      at org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:553)

      at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:750)

      at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:686)

      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.main(RunJar.java:212)

      Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/crypto/key/KeyProvider

      at java.lang.Class.forName0(Native Method)

      at java.lang.Class.forName(Class.java:264)

      at org.apache.hadoop.hive.shims.ShimLoader.createShim(ShimLoader.java:129)

      at org.apache.hadoop.hive.shims.ShimLoader.loadShims(ShimLoader.java:124)

      at org.apache.hadoop.hive.shims.ShimLoader.getHadoopShims(ShimLoader.java:88)

      ... 12 more

      Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.crypto.key.KeyProvider

      at java.net.URLClassLoader.findClass(URLClassLoader.java:382)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:418)

      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:351)

      ... 17 more

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sathyatsr2002 sathyanarayanan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: