Hey Brock, I'm not (at least that IO know of). Here's the output when I start it:
Info: Including Hadoop libraries found via (/Users/dyoung/hadoop/bin/hadoop) for HDFS access Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/flume/tools/GetJavaProperty Caused by: java.lang.ClassNotFoundException: org.apache.flume.tools.GetJavaProperty at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Info: Excluding /Users/dyoung/hadoop-1.0.4/libexec/../lib/slf4j-api-1.4.3.jar from classpath Info: Excluding /Users/dyoung/hadoop-1.0.4/libexec/../lib/slf4j-log4j12-1.4.3.jar from classpath + exec /Library/Java/Home/bin/java -Xms100m -Xmx200m -Dcom.sun.management.jmxremote -Dflume.root.logger=DEBUG,console -cp '/Users/dyoung/flume/conf:/Users/dyoung/flume/lib/*:/Users/dyoung/hadoop-1.0.4/libexec/../conf:/Library/Java/Home/lib/tools.jar:/Users/dyoung/hadoop-1.0.4/libexec/..:/Users/dyoung/hadoop-1.0.4/libexec/../hadoop-core-1.0.4.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/asm-3.2.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/aspectjrt-1.6.5.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/aspectjtools-1.6.5.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/commons-beanutils-1.7.0.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/commons-beanutils-core-1.8.0.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/commons-cli-1.2.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/commons-codec-1.4.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/commons-collections-3.2.1.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/commons-configuration-1.6.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/commons-daemon-1.0.1.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/commons-digester-1.8.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/commons-el-1.0.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/commons-httpclient-3.0.1.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/commons-io-2.1.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/commons-lang-2.4.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/commons-logging-1.1.1.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/commons-logging-api-1.0.4.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/commons-math-2.1.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/commons-net-1.4.1.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/core-3.1.1.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/hadoop-capacity-scheduler-1.0.4.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/hadoop-fairscheduler-1.0.4.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/hadoop-thriftfs-1.0.4.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/hsqldb-1.8.0.10.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/jackson-core-asl-1.8.8.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/jackson-mapper-asl-1.8.8.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/jasper-compiler-5.5.12.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/jasper-runtime-5.5.12.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/jdeb-0.8.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/jersey-core-1.8.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/jersey-json-1.8.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/jersey-server-1.8.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/jets3t-0.6.1.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/jetty-6.1.26.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/jetty-util-6.1.26.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/jsch-0.1.42.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/junit-4.5.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/kfs-0.2.2.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/log4j-1.2.15.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/mockito-all-1.8.5.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/oro-2.0.8.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/pig-0.11.0-SNAPSHOT-withouthadoop.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/piggybank.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/servlet-api-2.5-20081211.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/xmlenc-0.52.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/jsp-2.1/jsp-2.1.jar:/Users/dyoung/hadoop-1.0.4/libexec/../lib/jsp-2.1/jsp-api-2.1.jar:/Users/dyoung/hadoop/lib' -Djava.library.path= org.apache.flume.node.Application -n agent1 -f conf/spooldir.conf ...... ...... ...... Here's my conf/flume-env.sh #JAVA_HOME=/usr/lib/jvm/java-6-sun # Give Flume more memory and pre-allocate, enable remote monitoring via JMX JAVA_OPTS="-Xms100m -Xmx200m -Dcom.sun.management.jmxremote" # Note that the Flume conf directory is always included in the classpath. #FLUME_CLASSPATH="" I don't have any classpath settings in my env as well.... Should I be checking for anything else to confirm? Regards, Dano On Thu, Nov 15, 2012 at 9:53 AM, Brock Noland <[email protected]> wrote: > The script changes just un-hide that error message. I do wonder why > you canot find that class it's in the core jar. Are you overriding the > classpath or anything? > > On Thu, Nov 15, 2012 at 10:10 AM, Dan Young <[email protected]> wrote: > > I'm testing the spooling directory source in 1.3. Last night I did a git > > pull/mvn install on the 1.3 branch, and now I'm getting the following > error > > when I run /bin/flume-ng > > > > Exception in thread "main" java.lang.NoClassDefFoundError: > > org/apache/flume/tools/GetJavaProperty > > Caused by: java.lang.ClassNotFoundException: > > org.apache.flume.tools.GetJavaProperty > > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > > > > > > > > I did a diff on the previous flume-ng script, copied it over and ran > > bin/flume-ng without any such error. Here's the diff > > > > diff flume-ng flume-ng.PREVIOUS > > 74c74 > > < java.library.path) > > --- > >> java.library.path 2>/dev/null) > > 93c93 > > < HADOOP_CLASSPATH=$($HADOOP_IN_PATH classpath) > > --- > >> HADOOP_CLASSPATH=$($HADOOP_IN_PATH classpath 2>/dev/null) > > 123c123 > > < java.library.path) > > --- > >> java.library.path 2>/dev/null) > > 142c142 > > < HBASE_CLASSPATH=$($HBASE_IN_PATH classpath) > > --- > >> HBASE_CLASSPATH=$($HBASE_IN_PATH classpath 2>/dev/null) > > > > > > Regards, > > > > Dano > > > > > > -- > Apache MRUnit - Unit testing MapReduce - > http://incubator.apache.org/mrunit/ >
