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. Want to know more about what has changed? Check out the Community News blog.

convertTimestamp unixTimeInMillis

convertTimestamp unixTimeInMillis

New Contributor

I want to do this using a morphlines.conf to index with Solr an Hbase date in millis.

 

{
convertTimestamp{
field : date-created
inputFormats : ["unixTimeInMillis"]
inputTimezone : UTC
outputFormat : "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
outputTimezone : UTC
}

 

What should be the correct syntax for inputFormats :  ? The above just ignores my field.  If I don't have a convertTimestamp, I get:

 

Error:java.io.IOException: Batch Write Failure at
...

org.apache.solr.common.SolrException: Invalid Date String:'1406105449972'

 

 

2 REPLIES 2

Re: convertTimestamp unixTimeInMillis

Expert Contributor
Please post questions related to Cloudera Search to search-user@cloudera.org(see http://groups.google.com/a/cloudera.org/group/search-user), not here.

Wolfgang.

Re: convertTimestamp unixTimeInMillis

Master Collaborator

I'd also like to point out that we have a very active Discussion Board here in the community that is dedicated to Cloudera Search:

 

http://community.cloudera.com/t5/Cloudera-Search/bd-p/Search