Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-3430

How to stop flume 1.10.0 from logging logs to console

    XMLWordPrintableJSON

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- 
       

      Attachments

        1. pom
          6 kB
          Kaushik Dutta

        Activity

          People

            Unassigned Unassigned
            kaushikdutta Kaushik Dutta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: