<?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: Trouble Indexing data to elasticsearch using NIFI in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Trouble-Indexing-data-to-elasticsearch-using-NIFI/m-p/412388#M253424</link>
    <description>&lt;P&gt;If "Infer Schema" isn't working this is likely a bug. Could you provide an example JSON and the error message that happens during schema inference?&lt;/P&gt;</description>
    <pubDate>Sat, 20 Sep 2025 16:15:37 GMT</pubDate>
    <dc:creator>mburgess</dc:creator>
    <dc:date>2025-09-20T16:15:37Z</dc:date>
    <item>
      <title>Trouble Indexing data to elasticsearch using NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Trouble-Indexing-data-to-elasticsearch-using-NIFI/m-p/382799#M244695</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;i'm using NIFI 1.22 and preparing NIFI flow for upgrade to 2.0.0 version.&lt;BR /&gt;Currently, using&amp;nbsp;&amp;nbsp;&lt;A title="PutElasticsearchHttpRecord " href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-elasticsearch-nar/1.7.0/org.apache.nifi.processors.elasticsearch.PutElasticsearchHttpRecord/" target="_self"&gt;&lt;STRONG&gt;PutElasticsearchHttpRecord&lt;/STRONG&gt; &lt;/A&gt;in order to index flowfiles which contain array of nested jsons. This processor sends each flowfile as whole, does not require splits to single jsons or defining schema.&lt;/P&gt;&lt;P&gt;This processor is deprecated and it suggested to move to &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-elasticsearch-restapi-nar/1.24.0/org.apache.nifi.processors.elasticsearch.PutElasticsearchRecord/index.html" target="_self"&gt;PutElasticsearchRecord&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;My data is very much complex and variant so I tried to avoid defining schema and to use&amp;nbsp; the &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-record-serialization-services-nar/1.24.0/org.apache.nifi.json.JsonTreeReader/index.html#:~:text=Infer%20Schema-,Infer%20Schema,-Use%20%27Schema%20Name" target="_self"&gt;&lt;STRONG&gt;Inffer&lt;/STRONG&gt; &lt;STRONG&gt;Schema&lt;/STRONG&gt; strategy of &lt;STRONG&gt;JsonTreeReader&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;in&amp;nbsp; &lt;STRONG&gt;PutElasticsearchRecord&lt;/STRONG&gt;.&lt;BR /&gt;But the processor is failing on&lt;STRONG&gt; type conversion&lt;/STRONG&gt; of the first field in the first json of the array. It seems that it cannot handle nested jsons in array (while splitting it to single jsons worked).&lt;/P&gt;&lt;P&gt;In addition, my implemetation need to deal the following limitation:&amp;nbsp;&lt;BR /&gt;1. Processing a large dataset (TBs), so it need to be fast.&lt;BR /&gt;2. Avoiding spliting the array of jsons into a single json per flow file, as it cause content claim issues (too many large files and small files in the flow).&lt;BR /&gt;3. Avoiding managing schema, as the data is much variant.&lt;/P&gt;&lt;P&gt;Love to hear how is best to Index this data to Elasticsearch.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2024 20:05:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Trouble-Indexing-data-to-elasticsearch-using-NIFI/m-p/382799#M244695</guid>
      <dc:creator>eylon</dc:creator>
      <dc:date>2024-01-28T20:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Indexing data to elasticsearch using NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Trouble-Indexing-data-to-elasticsearch-using-NIFI/m-p/382819#M244705</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108962"&gt;@eylon&lt;/a&gt;,&amp;nbsp;Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts&amp;nbsp; &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103151"&gt;@cotopaul&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31438"&gt;@TimothySpann&lt;/a&gt;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 10:48:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Trouble-Indexing-data-to-elasticsearch-using-NIFI/m-p/382819#M244705</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2024-01-29T10:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Indexing data to elasticsearch using NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Trouble-Indexing-data-to-elasticsearch-using-NIFI/m-p/382846#M244717</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;BR /&gt;Adding more details about my flow configuration and example for the input files&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="putElasticsearchRecord_error" style="width: 926px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39597iCE9E16D9DE7FD5C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="putElasticsearchRecord_error.jpeg" alt="putElasticsearchRecord_error" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;putElasticsearchRecord_error&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="putElasticsearchRecord_config" style="width: 741px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39599i35A87D0D6A0A0123/image-size/large?v=v2&amp;amp;px=999" role="button" title="putElasticsearchRecord_config.jpeg" alt="putElasticsearchRecord_config" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;putElasticsearchRecord_config&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jsonTreeReader_config" style="width: 791px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39600i591DFE276B78DFBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="jsonTreeReader_config.jpeg" alt="jsonTreeReader_config" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;jsonTreeReader_config&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="inputFile smaple" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39598iD33F9D50BE6435B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="inputFile.jpeg" alt="inputFile smaple" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;inputFile smaple&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 07:18:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Trouble-Indexing-data-to-elasticsearch-using-NIFI/m-p/382846#M244717</guid>
      <dc:creator>eylon</dc:creator>
      <dc:date>2024-01-30T07:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Indexing data to elasticsearch using NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Trouble-Indexing-data-to-elasticsearch-using-NIFI/m-p/412382#M253420</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108962"&gt;@eylon&lt;/a&gt;&amp;nbsp;, did you ever find a solution to this problem? We are facing the exact same issue right now where we'd like to write to elastic without records due to a changing schema, yet our files contain batches of jsons and so we can't use PutElasticsearchJson as we'd like.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 13:32:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Trouble-Indexing-data-to-elasticsearch-using-NIFI/m-p/412382#M253420</guid>
      <dc:creator>Green_</dc:creator>
      <dc:date>2025-09-18T13:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble Indexing data to elasticsearch using NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Trouble-Indexing-data-to-elasticsearch-using-NIFI/m-p/412388#M253424</link>
      <description>&lt;P&gt;If "Infer Schema" isn't working this is likely a bug. Could you provide an example JSON and the error message that happens during schema inference?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Sep 2025 16:15:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Trouble-Indexing-data-to-elasticsearch-using-NIFI/m-p/412388#M253424</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2025-09-20T16:15:37Z</dc:date>
    </item>
  </channel>
</rss>

