<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: insert into Elasticsearch failing in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-into-Elasticsearch-failing/m-p/194692#M65552</link>
    <description>&lt;P&gt;its a 5 node cluster , I am using the curl command where elasticsearch is installed.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2017 04:21:07 GMT</pubDate>
    <dc:creator>aliyesami</dc:creator>
    <dc:date>2017-07-27T04:21:07Z</dc:date>
    <item>
      <title>insert into Elasticsearch failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-into-Elasticsearch-failing/m-p/194690#M65550</link>
      <description>&lt;P&gt;I have created a external table but insert is failing :&lt;/P&gt;&lt;PRE&gt;CREATE EXTERNAL TABLE pa_lane_txn_es (
    txn_id      BIGINT,
    ext_plaza_id    STRING,
    toll_amt_collected BIGINT,
    toll_amt_full BIGINT,
    ext_lane_id   STRING)
STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler'
TBLPROPERTIES('es.resource' = 'lane_txn/txn_id','es.mapping.id'='txn_id','es.nodes' = '127.0.0.1:9200');
&lt;/PRE&gt;&lt;P&gt;curl can get to elastic search port 9200 fine &lt;/P&gt;&lt;PRE&gt;[root@hadoop1 ~]# curl 127.0.0.1:9200
{
  "name" : "node1",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "OXNZn6ImQpK8zlF61FXWiw",
  "version" : {
    "number" : "5.5.0",
    "build_hash" : "260387d",
    "build_date" : "2017-06-30T23:16:05.735Z",
    "build_snapshot" : false,
    "lucene_version" : "6.6.0"
  },
  "tagline" : "You Know, for Search"
}&lt;/PRE&gt;&lt;P&gt;ERROR&lt;/P&gt;&lt;PRE&gt;ERROR : Vertex failed, vertexName=Map 1, vertexId=vertex_1499980645886_0006_1_00, diagnostics=[Task failed, taskId=task_1499980645886_0006_1_00_000001, diagnostics=[TaskAttempt 0 failed, info=[Error: Failure while running task:java.lang.RuntimeException: java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row {"txn_id":2.0891216818E10,"ext_plaza_id":"500092","toll_amt_collected":109.0,"toll_amt_full":109.0,"ext_lane_id":"09"}
        at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.initializeAndRunProcessor(TezProcessor.java:173)
        at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.run(TezProcessor.java:139)
        at org.apache.tez.runtime.LogicalIOProcessorRuntimeTask.run(LogicalIOProcessorRuntimeTask.java:347)
        at org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable$1.run(TezTaskRunner.java:194)
        at org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable$1.run(TezTaskRunner.java:185)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1724)
        at org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable.callInternal(TezTaskRunner.java:185)
        at org.apache.tez.runtime.task.TezTaskRunner$TaskRunnerCallable.callInternal(TezTaskRunner.java:181)
        at org.apache.tez.common.CallableWithNdc.call(CallableWithNdc.java:36)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row {"txn_id":2.0891216818E10,"ext_plaza_id":"500092","toll_amt_collected":109.0,"toll_amt_full":109.0,"ext_lane_id":"09"}
        at org.apache.hadoop.hive.ql.exec.tez.MapRecordSource.processRow(MapRecordSource.java:91)
        at org.apache.hadoop.hive.ql.exec.tez.MapRecordSource.pushRecord(MapRecordSource.java:68)
        at org.apache.hadoop.hive.ql.exec.tez.MapRecordProcessor.run(MapRecordProcessor.java:325)
        at org.apache.hadoop.hive.ql.exec.tez.TezProcessor.initializeAndRunProcessor(TezProcessor.java:150)
        ... 14 more
Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row {"txn_id":2.0891216818E10,"ext_plaza_id":"500092","toll_amt_collected":109.0,"toll_amt_full":109.0,"ext_lane_id":"09"}
        at org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java:565)
        at org.apache.hadoop.hive.ql.exec.tez.MapRecordSource.processRow(MapRecordSource.java:83)
        ... 17 more
Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.hadoop.hive.ql.metadata.HiveException: org.elasticsearch.hadoop.rest.EsHadoopNoNodesLeftException: Connection error (check network and/or proxy settings)- all nodes failed; tried [[127.0.0.1:9200]]
&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jul 2017 23:00:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-into-Elasticsearch-failing/m-p/194690#M65550</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2017-07-26T23:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: insert into Elasticsearch failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-into-Elasticsearch-failing/m-p/194691#M65551</link>
      <description>&lt;P&gt;  Are you trying the curl command from the node where the task failed or is this just a single node cluster?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mastan&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 04:01:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-into-Elasticsearch-failing/m-p/194691#M65551</guid>
      <dc:creator>mshaik</dc:creator>
      <dc:date>2017-07-27T04:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: insert into Elasticsearch failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-into-Elasticsearch-failing/m-p/194692#M65552</link>
      <description>&lt;P&gt;its a 5 node cluster , I am using the curl command where elasticsearch is installed.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 04:21:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-into-Elasticsearch-failing/m-p/194692#M65552</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2017-07-27T04:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: insert into Elasticsearch failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-into-Elasticsearch-failing/m-p/194693#M65553</link>
      <description>&lt;P&gt;this issue is fixed by installing elastic search on all the cluster nodes.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 20:42:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-into-Elasticsearch-failing/m-p/194693#M65553</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2017-07-27T20:42:42Z</dc:date>
    </item>
  </channel>
</rss>

