I'm already having a table(test) in hive, with a single column (logtype) which has around 5 rows.
And I created another table(hive_to_elastic) with ES properties as such:
CREATE EXTERNAL TABLE hive_to_elastic(logtype string)
STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler'
TBLPROPERTIES('es.resource'='my_index/my_type','es.nodes'='10.2.2.47','es.port'='9200');
Now I'm simply trying to copy the data from test to hive_to_elastic by executing the below query:
INSERT OVERWRITE TABLE hive_to_elastic SELECT * FROM test;
But what I can see is this:
And it's frozen after that point. I couldn't see the no of docs count increasing in my ES index.After a long time since I've started executed the query, I get this exception:
Where am I going wrong? Any help could be appreciated.