Reply
New Contributor
Posts: 1
Registered: ‎08-09-2014

convertTimestamp unixTimeInMillis

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'

 

 

Cloudera Employee
Posts: 146
Registered: ‎08-21-2013

Re: convertTimestamp unixTimeInMillis

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.

Posts: 416
Topics: 51
Kudos: 88
Solutions: 49
Registered: ‎06-26-2013

Re: convertTimestamp unixTimeInMillis

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

Announcements
The Kite SDK is a collection of docs, sample code, APIs, and tools to make Hadoop application development faster. Learn more at http://kitesdk.org.