简体   繁体   中英

Spark having different logs for each task in worker

Is it possible to have different logs file for task in a single worker? Right now I get all the logs in the same file (for different tasks) in the worker.

I am using spark-standalone and the log directory is in SPARK_HOME/work

You can configure SPARK_WORKER_DIR for each individual worker via the spark-env.sh configuration file. By changing this setting it will change where the logs are output by default.

See the deployment documentation for more information.

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