String being converted to date in Hadoop-Es Java map reduce job


(David She) #1

I'm trying to load via a mapreduce job in Java using Hadoop-Es. The issue is it tries to load it as a date but I want a string "yyyy-MM-dd". Any idea? I tried a date but it converts to a different format


(Jimmy Kuang) #2

ES will dynamically create the field type it think best suits the value. Since YYYY-MM-dd you're using is a date, it will automatically create a type date. If you want to use "string", you will have to manually create the ES mapping yourself first.


(system) #3