Flume Agent is not starting

Hi , I was trying to start the flume agent using the conf file created on the location :

/home/prakash63/flume_demo/simple_example/example.conf

Flume Script:

flume-ng agent
–name a1
–conf-file /home/prakash63/flume_demo/simple_example/example.conf

Error:

mpl:/usr/hdp/2.6.5.0-292/hadoop/lib/ranger-hdfs-plugin-shim-0.7.0.2.6.5.0-292.jar:/usr/hdp/2.6.5.0-292/hadoop/lib/ranger-plugin-classloader-0.7.0.2.6.5.0-292.jar:/usr/hdp/2.6.5.0-292/hadoop/lib/ranger-yarn-plugin-impl:/usr/hdp/2.6.5.0-292/hadoop/lib/ranger-yarn-plugin-shim-0.7.0.2.6.5.0-292.jar:/usr/hdp/2.6.5.0-292/hadoop/lib/servlet-api-2.5.jar:/usr/hdp/2.6.5.0-292/hadoop/lib/snappy-java-1.0.4.1.jar:/usr/hdp/2.6.5.0-292/hadoop/lib/stax-api-1.0-2.jar:/usr/hdp/2.6.5.0-292/hadoop/lib/xmlenc-0.52.jar:/usr/hdp/2.6.5.0-292/hadoop/lib/xz-1.0.jar:/usr/hdp/2.6.5.0-292/hadoop/lib/zookeeper-3.4.6.2.6.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/prakash63/flume_demo/simple_example/example.conf
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/2.6.5.0-292/flume/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.6.5.0-292/flume/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
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.

Would you please help on this?

@PrakashMohan You have to add the conf file in the command and the conf file location is /etc/flume/conf

Example

flume-ng agent --name a1 --conf-file flume.conf --conf /etc/flume/conf

Hi ,

Still I was not able to start the flume:

flume-ng agent --name a1 --conf-file example.conf
–conf /home/prakash63/flume_demo/simple_example

telnet gw03.itversity.com 32283