Apache Flume Error while running Flume-ng

#1

Hi,

While running flume-ng agent I am getting the below error

[cjoseph48@gw02 ~]$ cd flume_demo/

[cjoseph48@gw02 flume_demo]$ vi example.conf

[cjoseph48@gw02 flume_demo]$ flume-ng agent --name a1 --conf-file /home/cjoseph48/flume_demo/example.conf

Warning: No configuration directory set! Use --conf to override.

Warning: JAVA_HOME is not set!

Info: Including Hadoop libraries found via (/bin/hadoop) for HDFS access

Info: Excluding /usr/hdp/2.6.5.0-292/hadoop/lib/slf4j-api-1.7.10.jar from classpath

Info: Excluding /usr/hdp/2.6.5.0-292/hadoop/lib/slf4j-log4j12-1.7.10.jar from classpath

Info: Excluding /usr/hdp/2.6.5.0-292/tez/lib/slf4j-api-1.7.5.jar from classpath

Info: Including HBASE libraries found via (/bin/hbase) for HBASE access

Info: Excluding /usr/hdp/2.6.5.0-292/hadoop/lib/slf4j-api-1.7.10.jar from classpath

Info: Excluding /usr/hdp/2.6.5.0-292/hadoop/lib/slf4j-log4j12-1.7.10.jar from classpath

Info: Excluding /usr/hdp/2.6.5.0-292/tez/lib/slf4j-api-1.7.5.jar from classpath

Info: Excluding /usr/hdp/2.6.5.0-292/hadoop/lib/slf4j-api-1.7.10.jar from classpath

Info: Excluding /usr/hdp/2.6.5.0-292/hadoop/lib/slf4j-log4j12-1.7.10.jar from classpath

Info: Including Hive libraries found via () for Hive access

  • exec /usr/lib/jvm/java-openjdk/bin/java -Xmx20m -cp '/usr/hdp/2.6.5.0-292/flume/lib/*:/usr/hdp/2.6.5.0-292/hadoop/conf:/usr/hdp/2.6.5.0-292/hadoop/lib/activation-1.1.jar:/usr/hdp/

Atlast I am not getting the running message.

The last line of the server is the below:

.5.0-292.jar:/usr/hdp/2.6.5.0-292/zookeeper/bin:/usr/hdp/2.6.5.0-292/zookeeper/conf:/usr/hdp/2.6.5.0-292/zookeeper/doc:/usr/hdp/2.6.5.0-292/zookeeper/etc:/usr/hdp/2.6.5.0-292/zookeeper/lib:/usr/hdp/2.6.5.0-292/zookeeper/man:/usr/hdp/2.6.5.0-292/zookeeper/usr:/usr/hdp/2.6.5.0-292/zookeeper/zookeeper-3.4.6.2.6.5.0-292.jar:/usr/hdp/2.6.5.0-292/zookeeper/zookeeper.jar:/conf:/lib/*’ -Djava.library.path=::/usr/hdp/2.6.5.0-292/hadoop/lib/native/Linux-amd64-64:/usr/hdp/2.6.5.0-292/hadoop/lib/native::/usr/hdp/2.6.5.0-292/hadoop/lib/native/Linux-amd64-64:/usr/hdp/2.6.5.0-292/hadoop/lib/native org.apache.flume.node.Application --name a1 --conf-file /home/cjoseph48/flume_demo/example.conf

ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property ‘log4j2.debug’ to show Log4j2 internal initialization logging.

Kindly advice.

thanks
Joseph

0 Likes

#2

Thanks it is working after following the below link

0 Likes

closed #3
0 Likes