Created
August 1, 2017 01:48
-
-
Save priancho/9a8d27584099b6ff0b9cb65ac3f90db0 to your computer and use it in GitHub Desktop.
Command-line options to use a custom log4j.properties file for both driver and executors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use file:///my/absolute/path/to/log4j.proerties or file:my/relative/path/to/log4j.properties | |
spark-submit \ | |
--driver-java-options "-Dlog4j.configuration=file:conf/log4j.properties" \ | |
--files conf/log4j.properties \ | |
--conf "spark.executor.extraJavaOptions='-Dlog4j.configuration=log4j.properties'" \ | |
... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment