Unable to execute flume with avro source



I am trying to run the flume configuration file where the source is avro and the sink is hdfs. Below is the file:
a1.sources = r1
a1.sinks = k1
a1.channels = c1

Describe/configure the source

a1.sources.r1.type = avro
a1.sources.r1.bind = localhost
a1.sources.r1.port = 11112

Describe the sink

a1.sinks.k1.hdfs.type = hdfs
a1.sinks.k1.hdfs.path = /user/ritesh321/problem7/sink
a1.sinks.k1.hdfs.fileType = Datastream
a1.sinks.k1.hdfs.fileSuffix = .avro

Use a channel which buffers events in memory

a1.channels.c1.type = jdbc

Bind the source and sink to the channel

a1.sources.r1.channels = c1
a1.sinks.k1.channel = c1

and i use the below commands:

flume-ng agent -n a1 -f /home/ritesh321/flume_demo/test1.conf --conf /etc/flume/conf

flume-ng avro-client -H localhost -p 11112 -F flume-avro/prework/orders/part-m-00000.avro --conf /etc/flume/conf

After i run the second command which is for avro source I am getting below error message:

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.

Thank you.



Could you please provide me the solution for this problem. Thank you