Details
-
Question
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
3.5.3
-
None
-
None
Description
I want to use a log4j plugin, which would append the logs of Master JVM using classes from some 3rd party JARs:
https://logging.apache.org/log4j/2.x/manual/plugins.html
The Spark configuration documentation says that I should configure the log4j via conf/log4j2.properties.
https://spark.apache.org/docs/latest/configuration.html#configuring-logging
This would require me to add my JARs on the class-path of Master, but it is not customizable and always is $SPARK_HOME/jars:
https://github.com/apache/spark/blob/master/bin/spark-class#L71
Is it intended to add such JARs to the $SPARK_HOME/jars?