Problem with Log4j log in Flink cluster?

I have a program in which Log4j is used to record some information. When I test IDE / Intellij, a log file can be generated successfully. For now, I'm submitting this task to enable a standalone cluster. I could not find the corresponding log file in any working node.

+4
source share
1 answer

In offline mode, Flink writes its log files FLINK_DIR/logto the default. FLINK_DIR- Flink home directory. You can control the log behavior by modifying the file FLINK_DIR/conf/log4j.properties. There you can also change the path through log4j.appender.file.file=FILE_PATHwhich the log files are written.

+3

Source: https://habr.com/ru/post/1619765/


All Articles