Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to use the custom log4j in mapreduce job when i use oozie-java-program to submit a job?

How to use the custom log4j in mapreduce job when i use oozie-java-program to submit a job?

New Contributor

i want to use log4j in my mapreduce job for logging the log to a linux file and it doesn't override the default log4j.properties file ,how can i do this?

2 REPLIES 2

Re: How to use the custom log4j in mapreduce job when i use oozie-java-program to submit a job?

Champion
There isn't anyway to provide your own but not override the default log4j settings. You can either copy the default, make you changes/additions and use it with the MR job. Or update the defaults in YARN config. I don't have the exact name for the setting but you should find it by searching for log4j.

werRe: How to use the custom log4j in mapreduce job when i use oozie-java-program to submit a job?

New Contributor

OK,Thans for your answer,I will try it.