Hi All,
I have met a strange problem as below:
Steps1:
- Create one hive table with only index (like 'es.resource' = 'tomcat' without _type)
- Query the table
Results1:
I got null data occasionally! And sometimes the reponse data is correct.
steps2:
- Create one hive table with index and type ( like 'es.resource' = 'tomcat/err')
- Query the table
Results2:
I got correct data and no null data any more.
Question:
Does it have to set index and type in es.resource ? Is there any solution to set multiple _type with index such as "tomcat/err", "tomcat/std"
Notice:
elasticsearch version is 2.4.5
elasticsearch-hadoop-jar is 2.4.5
hadoop is 2.7.2
hive is 2.0.1
Thanks,
Dante