{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/409","labels_url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/409/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/409/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/409/events","html_url":"https://github.com/elastic/elasticsearch-hadoop/issues/409","id":65491740,"number":409,"title":"Hive- Elasticsearch Write Operation","user":{"login":"sandesh2014","id":11374119,"avatar_url":"https://avatars.githubusercontent.com/u/11374119?v=3","gravatar_id":"","url":"https://api.github.com/users/sandesh2014","html_url":"https://github.com/sandesh2014","followers_url":"https://api.github.com/users/sandesh2014/followers","following_url":"https://api.github.com/users/sandesh2014/following{/other_user}","gists_url":"https://api.github.com/users/sandesh2014/gists{/gist_id}","starred_url":"https://api.github.com/users/sandesh2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandesh2014/subscriptions","organizations_url":"https://api.github.com/users/sandesh2014/orgs","repos_url":"https://api.github.com/users/sandesh2014/repos","events_url":"https://api.github.com/users/sandesh2014/events{/privacy}","received_events_url":"https://api.github.com/users/sandesh2014/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-03-31T16:26:58Z","updated_at":"2015-04-01T12:30:49Z","closed_at":"2015-04-01T12:30:49Z","body":"Hello,\r\n\r\nI have been trying to write data from hive to elastic search. I have followed the following steps.\r\n1. Add Jar to hive session (Using elasticsearch-hadoop-2.1.0.BUILD-SNAPSHOT.jar)\r\n2. Created External table\r\n3. INSERT OVERWRITE table existing_table select * from table1\r\n\r\nBut i'm getting the following error.\r\nQuery ID = hdfs_20150331103131_511875c9-efff-4e16-a12f-9f98f0931ade\r\nTotal jobs = 1\r\nLaunching Job 1 out of 1\r\nNumber of reduce tasks is set to 0 since there's no reduce operator\r\nStarting Job = job_1427797951492_0015, Tracking URL = http://126.32.16.10:8088/proxy/application_1427797951492_0015/\r\nKill Command = /usr/hdp/2.2.0.0-2041/hadoop/bin/hadoop job -kill job_1427797951492_0015\r\nHadoop job information for Stage-0: number of mappers: 0; number of reducers: 0\r\n2015-03-31 10:31:39,953 Stage-0 map = 0%, reduce = 0%\r\nEnded Job = job_1427797951492_0015 with errors\r\nError during job, obtaining debugging information...\r\nFAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask\r\nMapReduce Jobs Launched:\r\nStage-Stage-0: HDFS Read: 0 HDFS Write: 0 FAIL\r\nTotal MapReduce CPU Time Spent: 0 msec"}}