Uploaded image for project: 'Apache Tez'
  1. Apache Tez
  2. TEZ-3030

java.lang.NoClassDefFoundError: org/apache/hadoop/mapred/MRVersion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.7.0
    • None
    • None

    Description

      hive (wzhl)> select count(1) from new_user;
      Query ID = root_20160110223939_9394ddfa-e0d0-4bd2-abc4-44dc3c0d3e2a
      Total jobs = 1
      Launching Job 1 out of 1
      Tez session was closed. Reopening...
      Session re-established.

      Status: Running (Executing on YARN cluster with App id application_1449729554133_9102)

      --------------------------------------------------------------------------------
      VERTICES STATUS TOTAL COMPLETED RUNNING PENDING FAILED KILLED
      --------------------------------------------------------------------------------
      Map 1 FAILED -1 0 0 -1 0 0
      Reducer 2 KILLED 1 0 0 1 0 0
      --------------------------------------------------------------------------------
      VERTICES: 00/02 [>>--------------------------] 0% ELAPSED TIME: 0.22 s
      --------------------------------------------------------------------------------
      Status: Failed
      Vertex failed, vertexName=Map 1, vertexId=vertex_1449729554133_9102_1_00, diagnostics=[Vertex vertex_1449729554133_9102_1_00 [Map 1] killed/failed due to:ROOT_INPUT_INIT_FAILURE, Vertex Input: new_user initializer failed, vertex=vertex_1449729554133_9102_1_00 [Map 1], java.lang.NoClassDefFoundError: org/apache/hadoop/mapred/MRVersion
      at org.apache.hadoop.hive.shims.Hadoop23Shims.isMR2(Hadoop23Shims.java:848)
      at org.apache.hadoop.hive.shims.Hadoop23Shims.getHadoopConfNames(Hadoop23Shims.java:919)
      at org.apache.hadoop.hive.conf.HiveConf$ConfVars.<clinit>(HiveConf.java:356)
      at org.apache.hadoop.hive.ql.exec.Utilities.getBaseWork(Utilities.java:371)
      at org.apache.hadoop.hive.ql.exec.Utilities.getMapWork(Utilities.java:296)
      at org.apache.hadoop.hive.ql.exec.tez.HiveSplitGenerator.initialize(HiveSplitGenerator.java:106)
      at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable$1.run(RootInputInitializerManager.java:245)
      at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable$1.run(RootInputInitializerManager.java:239)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:415)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1628)
      at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable.call(RootInputInitializerManager.java:239)
      at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable.call(RootInputInitializerManager.java:226)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.mapred.MRVersion
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      ... 17 more
      ]
      Vertex killed, vertexName=Reducer 2, vertexId=vertex_1449729554133_9102_1_01, diagnostics=[Vertex received Kill in INITED state., Vertex vertex_1449729554133_9102_1_01 [Reducer 2] killed/failed due to:null]
      DAG did not succeed due to VERTEX_FAILURE. failedVertices:1 killedVertices:1
      FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask

      Attachments

        Activity

          People

            Unassigned Unassigned
            whgcxq gewenhui
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: