Reply
New Contributor
Posts: 1
Registered: ‎06-16-2016

Spark, Log4J and UNIX_MILLIS

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