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.

Spark, Log4J and UNIX_MILLIS

Spark, Log4J and UNIX_MILLIS

New Contributor

Is it possible to use the UNIX_MILLIS date format when running Spark jobs to CDH5?

 

I have this in my log4j.properties file:

 

log4j.appender.console.layout.ConversionPattern=%d{UNIX_MILLIS} %p %c{1}: %m%n

 

...which causes this error:

 

log4j:ERROR Could not instantiate SimpleDateFormat with UNIX_MILLIS