SGC
SGC

Reputation: 190

Date issue in elasticsearch 2.3.3

After upgrading elasticsearch to 2.3.3 i have mapping as:

"startDate": { "type": "date" },

"endDate" : { "type": "date" }

While writing on ES through hadoop,hadoop job failed with log as: org.apache.hadoop.mapred.YarnChild: Exception running child : java.lang.RuntimeException: Error while indexing: failure in bulk execution:MapperParsingException[failed to parse [endDate]]; nested: IllegalArgumentException[Invalid format: "253402214400000" is malformed at "02214400000" MapperParsingException[failed to parse [endDate]]; nested: IllegalArgumentException[Invalid format: "253402214400000" is malformed at "02214400000"]; MapperParsingException[failed to parse [endDate]]; nested: IllegalArgumentException[Invalid format: "253402214400000" is malformed at "02214400000"]; MapperParsingException[failed to parse [endDate]]; nested: IllegalArgumentException[Invalid format: "253402214400000" is malformed at "02214400000"]; MapperParsingException[failed to parse [endDate]]; nested: IllegalArgumentException[Invalid format: "253402214400000" is malformed at "02214400000"]; MapperParsingException[failed to parse [endDate]]; nested: IllegalArgumentException[Invalid format: "253402214400000" is malformed at "02214400000"];

If i change endDate type to long it works. Both startDate and endDate have same type of value and mapping,startDate doesn't have this issue. What might be the reason behind the issue?

Upvotes: 1

Views: 131

Answers (1)

Val
Val

Reputation: 217254

The 13-digit limit for years has been removed.

As of ES 5.0.0-alpha3, it is now possible to specify years above 2286 with the epoch_millis date format.

Upvotes: 2

Related Questions