incubator-chukwa-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Yang <ey...@yahoo-inc.com>
Subject Re: NoClassDefFoundError: org/apache/hadoop/metrics/Updater
Date Fri, 21 May 2010 19:19:34 GMT
Hi Alan,

I think you need to be more explicit with the hadoop-0.20.2-core.jar.  The
wild card doesn┬╣t work.  The example config was a little misleading.  Sorry
about that.

Regards,
Eric

On 5/21/10 7:48 AM, "Ratner, Alan S (IS)" <Alan.Ratner@ngc.com> wrote:

> I have chukwa 0.4.0 and hadoop 0.20.2 installed on a small cluster.  When I
> run bin/start-agents.sh I get the following:
> 
> (much more like this above)
> 
> 10.64.147.22: starting agent, logging to
> /tmp/chukwa/log/chukwa-chukwa-agent-hadoop21.out
> 
> 10.64.147.30: starting agent, logging to
> /tmp/chukwa/log/chukwa-chukwa-agent-hadoop29.out
> 
> 10.64.147.27: starting agent, logging to
> /tmp/chukwa/log/chukwa-chukwa-agent-hadoop26.out
> 
> 10.64.147.40: starting agent, logging to
> /tmp/chukwa/log/chukwa-chukwa-agent-hadoop39.out
> 
> 10.64.147.39: starting agent, logging to
> /tmp/chukwa/log/chukwa-chukwa-agent-hadoop38.out
> 
> 10.64.147.37: starting agent, logging to
> /tmp/chukwa/log/chukwa-chukwa-agent-hadoop36.out
> 
> 10.64.147.31: starting agent, logging to
> /tmp/chukwa/log/chukwa-chukwa-agent-hadoop30.out
> 
> 10.64.147.34: starting agent, logging to
> /tmp/chukwa/log/chukwa-chukwa-agent-hadoop33.out
> 
> 10.64.147.36: starting agent, logging to
> /tmp/chukwa/log/chukwa-chukwa-agent-hadoop35.out
> 
> 10.64.147.33: starting agent, logging to
> /tmp/chukwa/log/chukwa-chukwa-agent-hadoop32.out
> 
> 10.64.147.38: starting agent, logging to
> /tmp/chukwa/log/chukwa-chukwa-agent-hadoop37.out
> 
> 10.64.147.35: starting agent, logging to
> /tmp/chukwa/log/chukwa-chukwa-agent-hadoop34.out
> 
> 10.64.147.41: starting agent, logging to
> /tmp/chukwa/log/chukwa-chukwa-agent-hadoop40.out
> 
> 10.64.147.42: starting agent, logging to
> /tmp/chukwa/log/chukwa-chukwa-agent-hadoop41.out
> 
> 10.64.147.5: starting agent, logging to
> /tmp/chukwa/log/chukwa-chukwa-agent-hadoop4.out
> 
> 10.64.147.8: Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/hadoop/metrics/Updater
> 
> 10.64.147.8:    at java.lang.ClassLoader.defineClass1(Native Method)
> 
> 10.64.147.8:    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
> 
> 10.64.147.8:    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
> 
> 10.64.147.8:    at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
> 
> 10.64.147.8:    at
> java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
> 
> 10.64.147.8:    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
> 
> 10.64.147.8:    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
> 
> 10.64.147.8:    at java.security.AccessController.doPrivileged(Native Method)
> 
> 10.64.147.8:    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> 
> 10.64.147.2: Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/hadoop/metrics/Updater
> 
> 10.64.147.2:    at java.lang.ClassLoader.defineClass1(Native Method)
> 
> 10.64.147.2:    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
> 
> 10.64.147.2:    at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
> 
> 10.64.147.2:    at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
> 
> 10.64.147.2:    at
> java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
> 
> 10.64.147.2:    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
> 
> 10.64.147.2:    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
> 
> 10.64.147.2:    at java.security.AccessController.doPrivileged(Native Method)
> 
> 10.64.147.2:    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> 
> (much more like this below)
> 
> A similar error reported last year seemed to be related to the Hadoop path.
> This is what I have changed from the chukwa-env.sh defaults:
> 
> export HADOOP_HOME="/home/ngc/hadoop-0.20.2"
> 
> export HADOOP_CONF_DIR="/home/ngc/hadoop-0.20.2/conf"
> 
> export HADOOP_JAR=${HADOOP_HOME}/hadoop-*-core.jar
> 
> export JAVA_PLATFORM=Linux-amd64-64
> 
> Any idea as to what I am doing wrong?
> 
> Alan
> 


Mime
View raw message