Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Flink's log directory

I understand Flink uses log4j to manage log. So I change log setting in log4j.property, where I set the output location. However, when I start job master, it says that the log location is changed, not the default location. So how could I change the log location of Flink gracefully?

like image 468
jsc0218 Avatar asked Jan 06 '16 12:01

jsc0218


People also ask

Where are Flink logs stored?

log. dir defines the directory where the Flink logs are saved. It has to be an absolute path. Log location: the logs are local, i.e. they are produced in the machine(s) running the JobManager(s) / Taskmanager(s).

Does Flink use Log4j?

Flink ships with the Log4j API bridge, allowing existing applications that work against Log4j1 classes to continue working.


1 Answers

The default lib directory is set via bin/config.sh. Look for FLINK_LOG_DIR. You can just update the script to change the default log directory.

like image 89
Matthias J. Sax Avatar answered Oct 05 '22 19:10

Matthias J. Sax