I have looked into:
YARN_LOG_DIR
it is not getting set. In fact while running a job there is no env variable YARN_LOG_DIR
in my executors)Where can I find and modify the yarn.nodemanager.log-dirs
property?
To find this, we need to traverse some of Hadoop's source code:
yarn.nodemanager.log-dirs
defaults to ${yarn.log.dir}/userlogs
.yarn.log.dir
defaults to $HADOOP_LOG_DIR
$HADOOP_LOG_DIR
defaults to ${HADOOP_HOME}/logs
So, have a look at $HADOOP_HOME/logs/userlogs
to see whether you find something in there!
If you want to edit it, you can do either of the following:
$HADOOP_HOME
$HADOOP_LOG_DIR
-Dyarn.log.dir=<your_chosen_value>
to your spark application-Dyarn.nodemanager.log-dirs=<your_chosen_value>
to your spark application