2016-06-17 1 views
1

2.3.3에 elasticsearch를 업그레이드 한 후 내가 매핑이 같은 :날짜 문제 2.3.3

"의 startDate": { "유형": "날짜" },

"endDate가": { "유형": "날짜" } 하둡을 통해 ES에 쓰는 동안

는 하둡 작업으로 로그에 실패 : 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"];

endDate으로 변경하면 작동합니다. startDateendDate에는 동일한 유형의 값 및 매핑이 있습니다. startDate에는이 문제가 없습니다. 문제의 원인은 무엇일까요?

+1

기본 날짜 형식은'strict_date_optional_time || epoch_millis'입니다. 분명히 '253402214400000'은 그 형식이 아닙니다. – Val

+0

맞춤 검색을 통해 탄성 검색 2.3.3 지원 날짜가 2286보다 클 수 있습니까? – Novice

답변

2

연도 13 자리 제한 has been removed입니다.

ES 5.0.0-alpha3부터 epoch_millis 날짜 형식으로 2286 년을 초과하는 연도를 지정할 수 있습니다.