You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from(select ip,site from logs) output
INSERT OVERWRITE TABLE count_logs
select ip,site group by ip, site;
running and Hive Thrown a error:
Caused by: java.lang.ArithmeticException: / by zero
at org.elasticsearch.hadoop.mr.EsOutputFormat$EsRecordWrite\
r.initSingleIndex(EsOutputFormat.java:230)
at org.elasticsearch.hadoop.mr.EsOutputFormat$EsRecordWrite\
r.init(EsOutputFormat.java:199)
at org.elasticsearch.hadoop.hive.EsHiveOutputFormat$EsHiveR\
ecordWriter.write(EsHiveOutputFormat.java:58)
at org.apache.hadoop.hive.ql.exec.FileSinkOperator.processO\
p(FileSinkOperator.java:621)
at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator\
.java:796)
at org.apache.hadoop.hive.ql.exec.SelectOperator.processOp(\
SelectOperator.java:87)
I think EsHiveOutputFormat has a bug?
The text was updated successfully, but these errors were encountered:
Indeed, it looks like it. Anything special about your configuration? How are you running Hive - what distro? Is it MR or Tez by any chance?
Anything shows up in the logs with respect to Elasticsearch shards?
@1u4nx Can you post your query (assuming it was created on a fresh index)? It looks like Hive is passing an invalid state to the underlying HiveOutputFormat which leads to the error you are seeing. Logs would also come in handy.
My env:
Hive: 0.13
elasticsearch-hadoop-hive: 2.0.2:
Similar to the following HQL:
running and Hive Thrown a error:
I think EsHiveOutputFormat has a bug?
The text was updated successfully, but these errors were encountered: