Search code examples
client-serverflumelog4j2

Log is not getting printed in Flume server console


I have a standalone java application which uses log4j2 to print the logger statements. I have configured flume client and flume server. Flume server is working fine. When I run the java application, I get the connection created in server but the logger statements are not getting printed.

Here is the logger statements in Flume server console:

INFO  [lifecycleSupervisor-1-5] (org.apache.flume.source.AvroSource.start:168)  - Avro source r1 started.
INFO  [pool-7-thread-1] (org.apache.avro.ipc.NettyServer$NettyServerAvroHandler.handleUpstream:171)  - [id: 0x00633e5e, /127.0.0.1:56177 => /127.0.0.1:8800] OPEN
INFO  [pool-8-thread-1] (org.apache.avro.ipc.NettyServer$NettyServerAvroHandler.handleUpstream:171)  - [id: 0x00633e5e, /127.0.0.1:56177 => /127.0.0.1:8800] BOUND: /127.0.0.1:8800
INFO  [pool-8-thread-1] (org.apache.avro.ipc.NettyServer$NettyServerAvroHandler.handleUpstream:171)  - [id: 0x00633e5e, /127.0.0.1:56177 => /127.0.0.1:8800] CONNECTED: /127.0.0.1:56177

Please help me with this issue. How should I get the logger statements from java standalone application in Flume server console?

Thanks in advance.


Solution

  • I got the answer. The downloaded files for Flume server was not complete. I was missing Flume.bat in D:\apache-flume-1.3.1-bin\bin folder. So I got the window based apache flume server file downloaded once again. You can download it here

    Set FLUME_HOME in flume.bat file which is available into D:\apache-flume-1.3.1-bin\bin folder. Now in command prompt, under D:\apache-flume-1.3.1-bin\bin run flume.bat to start flume server.

    Now when I run the client application, all the logger statements are shown in flume server console and the file appender mentioned in flume server log4j.properties.