Flume + HDFS startup error [Four Errors & How to Solve]

1. Error reporting

Failed to start agent because dependencies were not found in classpath. Error follows.
java.lang.NoClassDefFoundError: org/apache/hadoop/io/SequenceFile$CompressionType

Solution:
cp {HADOOP_HOME}share/hadoop/common/hadoop-common-2.4.0.jar {flume}/lib/

2. Error reporting

java.lang.NoClassDefFoundError: org/apache/commons/configuration/Configuration
Solution:
cp {HADOOP_HOME}share/hadoop/common/lib/commons-configuration-1.6.jar ${FLUME_HOME}/lib/

3. Error reporting

java.lang.NoClassDefFoundError: org/apache/hadoop/util/PlatformName
Solution:
cp {HADOOP_HOME}share/hadoop/common/lib/hadoop-auth-2.4.0.jar {FLUME_HOME}/lib/

4. Error reporting

java.lang.NoClassDefFoundError: org/apache/htrace/SamplerBuilder

Copy all jars in

cp {HADOOP_HOME}share/hadoop/common/lib/*.jar {FLUME_HOME}/lib/

Similar Posts: