logging - Spark streaming on YARN executor's logs not available -
i'm running following code
.map{x => logger.fatal("hello world") x._2 } it's spark streaming applciation runs on yarn. upadted log4j , provided spark-submit (using --files). log4j configuration loaded see logs , applied driver's logs (i see log level , pattern in logs), logs executors not available. can't find "hello word" in logs. also, checked ${yarn.nodemanager.log-dirs} , it's empty looks strange. log?
thank in advance
according official spark documentation (link), there 2 ways yarn manages logging:
- if log aggregation turned on (with
yarn.log-aggregation-enable config):
container logs deleted local machines (executors) , copied hdfs directory. these logs can viewed anywhere on cluster yarn logs command, in following manner:
yarn logs -applicationid <app id> - if log aggregation not turned on:
logs maintained locally on each machine under yarn_app_logs_dir, configured /tmp/logs or $hadoop_home/logs/userlogs depending on hadoop version , installation. according documentation, viewing logs container requires going host contains them , looking in directory.
Comments
Post a Comment