Cannot start Flume- ERROR StatusLogger No log4j2 configuration file found

flume

#1

Hello team,

In the itversity lab, I am getting error when starting Flume.

My command
flume-ng agent --name wh --f /home/rizbiece03/flume_demo/wslogstoHDFS/wshdfs.conf

configuration file:

Name the components on this agent

wh.sources = ws
wh.sinks = k1
wh.channels = mem

Describe/configure the source

wh.sources.ws.type = exec
wh.sources.ws.command = tail -F /opt/gen_logs/logs/access.log

Describe the sink

wh.sinks.k1.type = logger

Use a channel which buffers events in memory

wh.channels.mem.type = memory
wh.channels.mem.capacity = 1000
wh.channels.mem.transactionCapacity = 100

Bind the source and sink to the channel

wh.sources.ws.channels = mem
wh.sinks.k1.channel = mem

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


#2

@Rizbi_Hassan Refer this link.