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?