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

[CDH 5.8.3] Spark log4j custom log class

[CDH 5.8.3] Spark log4j custom log class

Rising Star

Hi everybody,


I'm trying to use a custom log class for log4j application logs. I tried to include my class both in a fat-jar and in a separate jar added via the --jars option. But none of them works, I always get a ClassNotFound exception. I found this JIRA ( on Spark but it is fixed in Spark 1.5 and I'm using Spark 1.6.


Moreover I found that I'm not the only one experiencing this issue, since I found this question on stackoverflow about the same issue:


Do you have any idea?


Thank you,



Re: [CDH 5.8.3] Spark log4j custom log class

I have always used --files to send my properties to each executor.
Don't have an account?
Coming from Hortonworks? Activate your account here