简体   繁体   中英

change log files output path for flink jobs that run on yarn

We have a few flink jobs that run on yarn. We would like to upload flink job logs to ELK to simplify debugging/analysis. Currently flink task managers write logs to /mnt/flinklogs/$application_id/$container_id . We want to have it write to a directory without $applicatoin_id/$container_id nested structure.

I tried with env.log.dir: /mnt/flink . With this setting, the configuration is not passed correctly.

 -Dlog.file=/mnt/flinklogs/application_1560449379756_1312/\
    container_e02_1560449379756_1312_01_000619/taskmanager.log

我认为解决此问题的最佳方法是使用纱线日志聚合将日志写入磁盘,并使用弹性文件位将其发送到弹性。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM