We've got a fairly simple Hive pipeline setup for basic reporting. Just recently updated the ES adapter and ES cluster.
We've been trying to run an import job from ES (5.3.0, 3 data nodes) to Hive (Hive 1.1.0-cdh5.7.0) using the elasticsearch-hadoop-5.4.0 adapter but have noticed that multiple documents are missing. Previously, we were using version 2.3.2 of the adapter with version 1.7 of ES (also 3 data nodes).
STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler'
TBLPROPERTIES('es.resource' = '${esIndex}',
'es.nodes' = '${esHost}',
'es.scroll.size' = '2000',
'es.mapping.names' = '${esMappings}',
'es.nodes.wan.only' = 'false',
'es.query' = '?q=${esQuery}');
I've been hitting our ES instance directly using the query for a small subset of the import and get all expected documents. When I do a simple select query against the table, I seem to be missing between 1-10 documents (expected 32).
ADD JAR hdfs:///path/to/jars/elasticsearch-hadoop-5.4.0.jar;
select * from myDB.myTable where ;
Additionally, the documents which are missing are not consistent. If I run the hive query multiple times, different documents will be missing each time.