I am using log4j.properties for logging my spark application, which is executed in yarn client mode. I need to use single log4j.properties for multiple applications. The problem is I can not pass the file name to executors log4j.properties file during spark-submit. driver log is coming as expected. Help me to solve this problem. Whether i can able to add a unique Id to the file name?