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?
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).
Flink ships with the Log4j API bridge, allowing existing applications that work against Log4j1 classes to continue working.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With