I've been supplying custom log4j properties to spark-submit in below manner:
spark-submit --master yarn --queue qqqq \
--driver-java-options "-Dlog4j.configuration=file:/absolute path/to properties file/driver-log4j.properties" \
--conf "spark.executor.extraJavaOptions=-Dlog4j.configuration=file:/absolute path/to properties file/executor-log4j.properties" \
--class com.abc.spark.def.MyClass myApp.jar arg1 arg2
Spark logs show that these driver and executor log4j properties are being read correctly. I am able to see the application logs written to driver logs but nothing in executor logs.
I've read this, this,this and this. Has anyone run into this issue earlier? If it helps, this code runs on MapR platform.