Details
-
Question
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
Using java -1.8 . There was similar problem with 1.9.0 version. Everything was coming to console.
-
Important
Description
I am using Flume-1.10.0 . I have made a custom application and added flume 1.10.0 dependencies in the pom. while running it is printing everything on the console. I want it to be redirected to a file.
I m running - /usr/bin/nohup java -jar -Dlog4j.configurationFile=/disk1/log4j2.xml /disk1/apache-flume-1.5.0-SNAPSHOT-bin/lib/flume-custom-jar-with-dependencies.jar --conf-file /disk1/apache-flume-1.5.0-SNAPSHOT-bin/conf/multiplexing.conf --name adclient > /disk1/flume_out.log 2> /disk1/flume_err.log &
Everything is getting printed to flume_out.log. It is ignoring log4j config. I am not sure what is happening. I am using 1.10.0v because it has log4j2 support.
My pom is attached below. Please have a look-