How to use my custom log4j.properties when running minicluster in idea

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to use my custom log4j.properties when running minicluster in idea

peibin wang

Hi,

       I am running flink job in the Intellij IDEA  with mini cluster (not submit it to the flink cluster ) for  convenience .

Now I have put my custom log config file ( both log4j.properties and logback.xml)  in src/main/resources/. But it does not work. Is there any solutions

Reply | Threaded
Open this post in threaded view
|

Re: How to use my custom log4j.properties when running minicluster in idea

Yun Tang
Hi Peibin

I believe you could refer to the directory structure of flink/flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/wordcount/WordCount.java, and the its log4j.properties file located at flink/flink-examples/flink-examples-streaming/src/main/resources/log4j.properties .

You could compare your directory structure and the file contents with those I mentioned above and I believe you could finally make it work.

Best
Yun Tang

From: peibin wang <[hidden email]>
Sent: Tuesday, February 19, 2019 12:04
To: [hidden email]
Subject: How to use my custom log4j.properties when running minicluster in idea
 

Hi,

       I am running flink job in the Intellij IDEA  with mini cluster (not submit it to the flink cluster ) for  convenience .

Now I have put my custom log config file ( both log4j.properties and logback.xml)  in src/main/resources/. But it does not work. Is there any solutions