Re: Problem to show logs in task managers

Posted by Till Rohrmann on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Problem-to-show-logs-in-task-managers-tp4077p4080.html

Hi Ana,

you can simply modify the `log4j.properties` file in the `conf` directory. It should be automatically included in the Yarn application.

Concerning your logging problem, it might be that you have set the logging level too high. Could you share the code with us?

Cheers,
Till

On Thu, Dec 17, 2015 at 1:56 PM, Ana M. Martinez <[hidden email]> wrote:
Hi flink community,

I am trying to show log messages using log4j.
It works fine overall except for the messages I want to show in an inner class that implements org.apache.flink.api.common.aggregators.ConvergenceCriterion.
I am very new to this, but it seems that I’m having problems to show the messages included in the isConverged function, as it runs in the task managers?
E.g. the log messages in the outer class (before map-reduce operations) are properly shown.

I am also interested in providing my own log4j.properties file. I am using the ./bin/flink run -m yarn-cluster on Amazon clusters.

Thanks,
Ana