<?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: Nifi error with PutElasticsearch in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-error-with-PutElasticsearch/m-p/123083#M26654</link>
    <description>&lt;P&gt;I tried to change the flow but still get the same two errors &lt;/P&gt;Auto refresh started
&lt;DIV&gt;10:07:10 CDT
ERROR
d3887b11-5c51-4ab3-b520-1c52a6fb6204
&lt;PRE&gt;PutElasticsearch[id=d3887b11-5c51-4ab3-b520-1c52a6fb6204] No value in identifier attribute account1_rec.json for StandardFlowFileRecord[uuid=47d795d9-1aa0-4aad-a197-a5811708685b,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1461936514797-1, container=default, section=1], offset=1442, length=206],offset=0,name=account1_rec.json,size=206], transferring to failure&lt;/PRE&gt;
&lt;/DIV&gt;&lt;DIV&gt;10:07:10 CDT
ERROR
d3887b11-5c51-4ab3-b520-1c52a6fb6204
&lt;/DIV&gt;&lt;P&gt;PutElasticsearch[id=d3887b11-5c51-4ab3-b520-1c52a6fb6204] Failed to insert into Elasticsearch due to None of the configured nodes are available: [{#transport#-1}{127.0.0.1}{localhost/127.0.0.1:9200}]. More detailed information may be available in the NiFi logs.: NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{127.0.0.1}{localhost/127.0.0.1:9200}]]&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2016 22:07:52 GMT</pubDate>
    <dc:creator>csankaraiah1</dc:creator>
    <dc:date>2016-04-29T22:07:52Z</dc:date>
    <item>
      <title>Nifi error with PutElasticsearch</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-error-with-PutElasticsearch/m-p/123081#M26652</link>
      <description>&lt;P&gt;I have a simple JSON file that i am trying to index using elastic search. &lt;/P&gt;&lt;P&gt;Here is my JSON file: &lt;/P&gt;&lt;P&gt;{"account_number":1,"balance":39225,"firstname":"Amber","lastname":"Duke","age":32,"gender":"M","address":"880 Holmes Lane","employer":"Pyrami","email":"amberduke@pyrami.com","city":"Brogan","state":"IL"}&lt;/P&gt;&lt;P&gt;I have elastic search running on my local machine. &lt;/P&gt;&lt;P&gt;Localhost:9200&lt;/P&gt;&lt;PRE&gt;{
  "name" : "node-01",
  "cluster_name" : "lol_es",
  "version" : {
    "number" : "2.3.1",
    "build_hash" : "bd980929010aef404e7cb0843e61d0665269fc39",
    "build_timestamp" : "2016-04-04T12:25:05Z",
    "build_snapshot" : false,
    "lucene_version" : "5.5.0"
  },
  "tagline" : "You Know, for Search"
}

&lt;/PRE&gt;&lt;P&gt;I am using two Nifi processor GetFile (getting the json file) and PutElastic (trying to index it to elastic search)&lt;/P&gt;&lt;P&gt;I get the following error in Nifi&lt;/P&gt;&lt;DIV&gt;09:41:57 CDT
ERROR
d3887b11-5c51-4ab3-b520-1c52a6fb6204
&lt;PRE&gt;PutElasticsearch[id=d3887b11-5c51-4ab3-b520-1c52a6fb6204] No value in identifier attribute ${filename} for StandardFlowFileRecord[uuid=0ced3305-469b-4474-aa26-d14190f2fb2b,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1461936514797-1, container=default, section=1], offset=1236, length=206],offset=0,name=account1_rec.json,size=206], transferring to failure&lt;/PRE&gt;
&lt;/DIV&gt;&lt;DIV&gt;09:41:57 CDT
ERROR
d3887b11-5c51-4ab3-b520-1c52a6fb6204
&lt;PRE&gt;PutElasticsearch[id=d3887b11-5c51-4ab3-b520-1c52a6fb6204] Failed to insert into Elasticsearch due to None of the configured nodes are available: [{#transport#-1}{127.0.0.1}{localhost/127.0.0.1:9200}]. More detailed information may be available in the NiFi logs.: NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{127.0.0.1}{localhost/127.0.0.1:9200}]]&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Here is my configuration for PutElastic processor &lt;/P&gt;&lt;P&gt;ElasticSearchHost : localhost:9200&lt;/P&gt;&lt;P&gt;IdentifierAttribute: ${filename}&lt;/P&gt;&lt;P&gt;Please let me know what i am missing. Appreciate your help. &lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 12:31:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-error-with-PutElasticsearch/m-p/123081#M26652</guid>
      <dc:creator>csankaraiah1</dc:creator>
      <dc:date>2026-04-21T12:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi error with PutElasticsearch</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-error-with-PutElasticsearch/m-p/123082#M26653</link>
      <description>&lt;P&gt;Hi Chakra,&lt;/P&gt;&lt;P&gt;In fact the identifier attribute only requires the name of the attribute you want to reference and not the value of the attribute itself.&lt;/P&gt;&lt;P&gt;I think that if you replace ${filename} by filename, it will work as you expect.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 21:56:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-error-with-PutElasticsearch/m-p/123082#M26653</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-04-29T21:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi error with PutElasticsearch</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-error-with-PutElasticsearch/m-p/123083#M26654</link>
      <description>&lt;P&gt;I tried to change the flow but still get the same two errors &lt;/P&gt;Auto refresh started
&lt;DIV&gt;10:07:10 CDT
ERROR
d3887b11-5c51-4ab3-b520-1c52a6fb6204
&lt;PRE&gt;PutElasticsearch[id=d3887b11-5c51-4ab3-b520-1c52a6fb6204] No value in identifier attribute account1_rec.json for StandardFlowFileRecord[uuid=47d795d9-1aa0-4aad-a197-a5811708685b,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1461936514797-1, container=default, section=1], offset=1442, length=206],offset=0,name=account1_rec.json,size=206], transferring to failure&lt;/PRE&gt;
&lt;/DIV&gt;&lt;DIV&gt;10:07:10 CDT
ERROR
d3887b11-5c51-4ab3-b520-1c52a6fb6204
&lt;/DIV&gt;&lt;P&gt;PutElasticsearch[id=d3887b11-5c51-4ab3-b520-1c52a6fb6204] Failed to insert into Elasticsearch due to None of the configured nodes are available: [{#transport#-1}{127.0.0.1}{localhost/127.0.0.1:9200}]. More detailed information may be available in the NiFi logs.: NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{127.0.0.1}{localhost/127.0.0.1:9200}]]&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 22:07:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-error-with-PutElasticsearch/m-p/123083#M26654</guid>
      <dc:creator>csankaraiah1</dc:creator>
      <dc:date>2016-04-29T22:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi error with PutElasticsearch</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-error-with-PutElasticsearch/m-p/123084#M26655</link>
      <description>&lt;P&gt;Could you check that the issue is not on Elasticsearch side by sending your JSON message manually? (see &lt;A href="https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html%29"&gt;https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html)&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;curl -XPUT 'http://localhost:9200/twitter/tweet/1' -d '{
    "user" : "kimchy",
    "post_date" : "2009-11-15T14:12:12",
    "message" : "trying out Elasticsearch"
}'
&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Apr 2016 22:13:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-error-with-PutElasticsearch/m-p/123084#M26655</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-04-29T22:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi error with PutElasticsearch</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-error-with-PutElasticsearch/m-p/123085#M26656</link>
      <description>&lt;P&gt;I have tried the the curl for the file that i am using and it works fine &lt;/P&gt;&lt;P&gt;curl -XPOST &lt;A href="http://127.0.0.1:9200/bankman/accountman/1"&gt;http://127.0.0.1:9200/bankman/accountman/1&lt;/A&gt; -d @account1_rec.json
{"_index":"bankman","_type":"accountman","_id":"1","_version":1,"_shards":{"total":2,"successful":1,"failed":0},"created":true}&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 23:19:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-error-with-PutElasticsearch/m-p/123085#M26656</guid>
      <dc:creator>csankaraiah1</dc:creator>
      <dc:date>2016-04-29T23:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi error with PutElasticsearch</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-error-with-PutElasticsearch/m-p/123086#M26657</link>
      <description>&lt;P&gt;I am sorry... I didn't look carefully the first time...&lt;/P&gt;&lt;P&gt;In NiFi we are using the 'transport' port (9300 by default) to exchange with elasticsearch and not the 'http' port (9200 by default). Can you check if it is working with port 9300?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 23:27:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-error-with-PutElasticsearch/m-p/123086#M26657</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-04-29T23:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi error with PutElasticsearch</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-error-with-PutElasticsearch/m-p/123087#M26658</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/8176/csankaraiah-1.html" nodeid="8176"&gt;@Chakra Sankaraiah&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As pointed in the previous comment you need to use 9300 as a port number since putElasticsearch processors uses the trasport client which is running on 9300. &lt;/P&gt;&lt;P&gt;So, your ElasticSearch Hosts: localhost:9300&lt;/P&gt;&lt;P&gt;And if have filename property set by GetFile processor, then you should be able to use it (filename) as value for identifier attribute. Otherwise, if you dont care the value of identifier attribute and just want to unique value for each flowfile then simple use uuid of the flow file, as:&lt;/P&gt;&lt;P&gt;Identifier Attribute: uuid&lt;/P&gt;&lt;P&gt;Let me know if this helps!.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amarnath&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 17:14:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-error-with-PutElasticsearch/m-p/123087#M26658</guid>
      <dc:creator>amar_cs06</dc:creator>
      <dc:date>2016-05-03T17:14:29Z</dc:date>
    </item>
  </channel>
</rss>

