{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/10207","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10207/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10207/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/10207/events","html_url":"https://github.com/elastic/elasticsearch/issues/10207","id":63517299,"number":10207,"title":"failed to write to elasticsearch from hadoop hive","user":{"login":"sdba2","id":8858060,"avatar_url":"https://avatars.githubusercontent.com/u/8858060?v=3","gravatar_id":"","url":"https://api.github.com/users/sdba2","html_url":"https://github.com/sdba2","followers_url":"https://api.github.com/users/sdba2/followers","following_url":"https://api.github.com/users/sdba2/following{/other_user}","gists_url":"https://api.github.com/users/sdba2/gists{/gist_id}","starred_url":"https://api.github.com/users/sdba2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdba2/subscriptions","organizations_url":"https://api.github.com/users/sdba2/orgs","repos_url":"https://api.github.com/users/sdba2/repos","events_url":"https://api.github.com/users/sdba2/events{/privacy}","received_events_url":"https://api.github.com/users/sdba2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-22T10:06:14Z","updated_at":"2015-03-25T10:12:34Z","closed_at":"2015-03-25T10:12:34Z","body":"I've a table in hive and I want to write it's data to elastic index.\r\n\r\ni created an index in elastic : \r\ncurl -XPOST localhost:9200/aaa -d '{\r\n\"mappings\" : {\r\n\"aaa_type\" : {\r\n\"properties\" : {\r\n\"f1\" : {\"type\" : \"string\"},\r\n\"f2\" : {\"type\" : \"string\"}\r\n}\r\n}\r\n}\r\n},\r\n\r\nI've downloaded the elasticsearch-hadoop-2.0.2 and in hive i did :\r\n\r\n1) add jar elasticsearch-hadoop-2.0.2.jar ;\r\n2) create external table tbl1(f1 string, f2 string) stored by 'org.elasticsearch.hadoop.hive.EsStorageHandler' tblproperties('es.resource'='aaa/aaa_type' , 'es.index.auto.create'='true','es.nodes'='server1') ;\r\n3) insert overwrite table tbl1 select f1,f2 from source_table;\r\n\r\ncommand number 3 get the error :\r\nError during job, obtaining debugging information...\r\nFAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask\r\n\r\nThen i've downloaded a new beta version elasticsearch-hadoop-2.1.0.Beta3 and instead of the above step 1 i've used : \r\nadd jar elasticsearch-hadoop-2.1.0.BUILD-SNAPSHOT.jar;\r\n\r\nbut the error was the same!\r\n\r\nwhat am i missing ?"}}