Where can i find the default log4j configuration files for worker and driver?
我在哪里可以找到worker和driver的默认log4j配置文件?
1) Currently Spark is logging Executor/Worker(stdout/stderr) level logs to Work folder and Driver level logs to logs folder.
1)目前Spark正在将Executor / Worker(stdout / stderr)级别日志记录到Work文件夹,将Driver level日志记录到logs文件夹。
where can i find this configuraiton.?
我在哪里可以找到这个配置。?
I am trying to to use Log4j2 for spark instead of log4j. I am trying to get the default properties file so that i can replicate few thing from there to log4j2 properties XML.
我试图使用Log4j2代替log4j而不是log4j。我试图获取默认属性文件,以便我可以从那里复制一些东西到log4j2属性XML。
2) Also, Is it possible to modify log4j properties on a currently running job?
2)此外,是否可以修改当前正在运行的作业的log4j属性?
1 个解决方案
#1
0
Under /conf/log4j.properties.template . Rename the file to log4j.properties and make your configuration changes.
在/conf/log4j.properties.template下。将文件重命名为log4j.properties并进行配置更改。
#1
0
Under /conf/log4j.properties.template . Rename the file to log4j.properties and make your configuration changes.
在/conf/log4j.properties.template下。将文件重命名为log4j.properties并进行配置更改。