Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-98

Zeppelin does not work on YARN after deps moved from pom.xml to spark/pom.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 0.5.0
    • None
    • None

    Description

      Zeppelin does not work on YARN after https://github.com/apache/incubator-zeppelin/commit/109b0807fce6453b7543c68069f30b7cece0f20e because of Hadoop version missmatch

      in runtime exception looks like

      Exception in thread "main" java.lang.AbstractMethodError: org.apache.hadoop.yarn.api.records.ContainerId.setContainerId(J)V
          at org.apache.hadoop.yarn.api.records.ContainerId.newInstance(ContainerId.java:60)
          at org.apache.hadoop.yarn.util.ConverterUtils.toContainerId(ConverterUtils.java:178)
          at org.apache.spark.deploy.yarn.YarnSparkHadoopUtil.getContainerId(YarnSparkHadoopUtil.scala:142)
          at org.apache.spark.deploy.yarn.YarnRMClient.getAttemptId(YarnRMClient.scala:92)
          at org.apache.spark.deploy.yarn.ApplicationMaster.run(ApplicationMaster.scala:82)
          at org.apache.spark.deploy.yarn.ApplicationMaster$$anonfun$main$1.apply$mcV$sp(ApplicationMaster.scala:587)
      ...
      

      The reason looks like version Hadoop yarn artefacts version mismatch from below:

      Spark 1.4 with Hadoop 2.6

      mvn dependency:tree -Pspark-1.4 -Dspark.version=1.4.0-SNAPSHOT -Phadoop-2.6 -Pyarn | grep "org.apache.hadoop:hadoop-yarn-*"
      [INFO] |  +- org.apache.hadoop:hadoop-yarn-common:jar:2.4.0:compile
      [INFO] |  +- org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:2.4.0:compile
      [INFO] |  |  +- org.apache.hadoop:hadoop-yarn-server-common:jar:2.4.0:compile
      [INFO] |  \- org.apache.hadoop:hadoop-yarn-client:jar:2.4.0:compile
      [INFO] \- org.apache.hadoop:hadoop-yarn-api:jar:2.6.0:compile
      

      Default spark

      mvn dependency:tree -Pyarn | grep "org.apache.hadoop:hadoop-yarn-*"                                    
      [INFO] |  +- org.apache.hadoop:hadoop-yarn-common:jar:2.2.0:compile
      [INFO] |  +- org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:2.2.0:compile
      [INFO] |  |  \- org.apache.hadoop:hadoop-yarn-server-common:jar:2.2.0:compile
      [INFO] |  \- org.apache.hadoop:hadoop-yarn-client:jar:2.2.0:compile
      [INFO] \- org.apache.hadoop:hadoop-yarn-api:jar:2.3.0:compile
      

      Spark 1.4

      mvn dependency:tree -Pspark-1.4 -Pyarn | grep "org.apache.hadoop:hadoop-yarn-*"
      

      ???

      Spark 1.2

      mvn dependency:tree -Pspark-1.2 -Pyarn | grep "org.apache.hadoop:hadoop-yarn-*"
      [INFO] |  +- org.apache.hadoop:hadoop-yarn-common:jar:2.2.0:compile
      [INFO] |  +- org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:2.2.0:compile
      [INFO] |  |  \- org.apache.hadoop:hadoop-yarn-server-common:jar:2.2.0:compile
      [INFO] |  \- org.apache.hadoop:hadoop-yarn-client:jar:2.2.0:compile
      [INFO] \- org.apache.hadoop:hadoop-yarn-api:jar:2.3.0:compile
      

      Attachments

        Activity

          People

            bzz Alexander Bezzubov
            bzz Alexander Bezzubov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: