Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-1014

After the 0.21 branch, MapReduce trunk doesn't compile

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.21.0
    • Component/s: None
    • Labels:
      None

      Description

      When ant is run, the build fails with compilation problems. The first of that is:
      compile-mapred-classes:
      [taskdef] log4j:ERROR Could not instantiate class [org.apache.hadoop.metrics.jvm.EventCounter].
      [taskdef] java.lang.ClassNotFoundException: org.apache.hadoop.metrics.jvm.EventCounter
      [taskdef] at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1383)
      [taskdef] at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1324)
      [taskdef] at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1072)
      [taskdef] at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
      [taskdef] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:402)
      [taskdef] at java.lang.Class.forName0(Native Method)
      [taskdef] at java.lang.Class.forName(Class.java:169)
      [taskdef] at org.apache.log4j.helpers.Loader.loadClass(Loader.java:179)
      [taskdef] at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:320)
      [taskdef] at org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:121)
      [taskdef] at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:664)
      [taskdef] at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:647)
      [taskdef] at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:544)
      [taskdef] at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:440)
      [taskdef] at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:476)

        Activity

        Hide
        Hudson added a comment -

        Integrated in Hadoop-Mapreduce-trunk-Commit #60 (See http://hudson.zones.apache.org/hudson/job/Hadoop-Mapreduce-trunk-Commit/60/)
        . Fix the libraries for common and hdfs. (omalley)

        Show
        Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk-Commit #60 (See http://hudson.zones.apache.org/hudson/job/Hadoop-Mapreduce-trunk-Commit/60/ ) . Fix the libraries for common and hdfs. (omalley)
        Hide
        Owen O'Malley added a comment -

        I updated the common and hdfs jars with the current ones.

        Show
        Owen O'Malley added a comment - I updated the common and hdfs jars with the current ones.
        Hide
        Ravi Gummadi added a comment -

        hdfs-trunk seems fine(I don't see the issue Devaraj mentioned above). Could some other JIRA fixed hdfs build issue ?

        Show
        Ravi Gummadi added a comment - hdfs-trunk seems fine(I don't see the issue Devaraj mentioned above). Could some other JIRA fixed hdfs build issue ?
        Hide
        Ravi Gummadi added a comment -

        Issue is only in trunk. Not in 0.21 branch.

        Show
        Ravi Gummadi added a comment - Issue is only in trunk. Not in 0.21 branch.
        Hide
        Ravi Gummadi added a comment -

        build.xml is looking for jars with "0.22.0-dev" as version, but trunk/lib/ has jars with name containing "0.21.0-dev"

        Just renaming the jars in lib/ to have "0.22.0-dev" is solving the build issue.

        Show
        Ravi Gummadi added a comment - build.xml is looking for jars with "0.22.0-dev" as version, but trunk/lib/ has jars with name containing "0.21.0-dev" Just renaming the jars in lib/ to have "0.22.0-dev" is solving the build issue.
        Hide
        Devaraj Das added a comment -

        Seems like hdfs-trunk doesn't compile as well. When ant is run, build fails with:
        BUILD FAILED
        /foo/hdfs-trunk/build.xml:257: Error while expanding /foo/hdfs-trunk/lib/hadoop-mapred-0.22.0-dev.jar

        Show
        Devaraj Das added a comment - Seems like hdfs-trunk doesn't compile as well. When ant is run, build fails with: BUILD FAILED /foo/hdfs-trunk/build.xml:257: Error while expanding /foo/hdfs-trunk/lib/hadoop-mapred-0.22.0-dev.jar

          People

          • Assignee:
            Ravi Gummadi
            Reporter:
            Devaraj Das
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development