Uploaded image for project: 'Chukwa'
  1. Chukwa
  2. CHUKWA-250

class not found exception when running agent

    Details

      Description

      Console output is as below:

      hadoop jar for agent is ......../bin/../hadoopjars/hadoop-0.20-dev-core.jar

      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/metrics/Updater

      at java.lang.ClassLoader.defineClass1(Native Method)

      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

      at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)

      at java.net.URLClassLoader.access$000(URLClassLoader.java:56)

      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)

      at java.security.AccessController.doPrivileged(Native Method)

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

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

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

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

      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

      at org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent.<clinit>(ChukwaAgent.java:60)

      Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.metrics.Updater

      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

      at java.security.AccessController.doPrivileged(Native Method)

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

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

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

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

      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

      ... 13 more

        Activity

        Hide
        zhangyongjiang Cheng added a comment -

        Changed hadoop jar file name to hadoop-0.20.0-core.jar

        Show
        zhangyongjiang Cheng added a comment - Changed hadoop jar file name to hadoop-0.20.0-core.jar
        Hide
        eyang Eric Yang added a comment -

        +1 looks good.

        Show
        eyang Eric Yang added a comment - +1 looks good.
        Hide
        eyang Eric Yang added a comment -

        I just committed this, thanks Cheng.

        Show
        eyang Eric Yang added a comment - I just committed this, thanks Cheng.
        Hide
        hudson Hudson added a comment -

        Integrated in Chukwa-trunk #26 (See http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/26/)
        . Updated hadoop jar reference in chukwa config. (Cheng Zhang via Eric Yang)

        Show
        hudson Hudson added a comment - Integrated in Chukwa-trunk #26 (See http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/26/ ) . Updated hadoop jar reference in chukwa config. (Cheng Zhang via Eric Yang)
        Hide
        hudson Hudson added a comment -
        Show
        hudson Hudson added a comment - Integrated in Chukwa-trunk #45 (See http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/45/ )

          People

          • Assignee:
            zhangyongjiang Cheng
            Reporter:
            zhangyongjiang Cheng
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development