I am trying to use logback.xml
with Apache Livy ReST API and I'm having trouble getting it to work. I've tried submitting the logback.xml
path as follows.
data = {
"file" : "<PATH_TO_JAR_FILE>",
"className" : "<CLASS_NAME>",
"files": ["file:///path/to/log4j.properties", "file:///path/to/logback.xml"],
"conf": {"driver-java-options":"-Dlogback.configurationFile=file:///path/to/logback.xml"}
}
However, I get the warning Ignoring non-spark config property: driver-java-options=-Dlogback.configurationFile
. I can add the logback.xml
file using spark.driver.extraJavaOptions
instead of driver-java-options
, but it doesn't make a difference since the JVM has already started. So my question is, How do I get Livy to use the logback.xml
.