Reply
New Contributor
Posts: 3
Registered: ‎09-13-2016

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

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?

Posts: 642
Topics: 3
Kudos: 121
Solutions: 67
Registered: ‎08-16-2016

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

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.
Highlighted
New Contributor
Posts: 3
Registered: ‎09-13-2016

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

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

Announcements