Support Questions
Find answers, ask questions, and share your expertise

Spark, Log4J and UNIX_MILLIS

Highlighted

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

Don't have an account?