<?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 Loop and SplitJson iteration in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Loop-and-SplitJson-iteration/m-p/372629#M241321</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;hope someone can help me with this point.&lt;/P&gt;&lt;P&gt;I have a json wich has been splitted into 4 fragments.&lt;/P&gt;&lt;P&gt;For every fragment an EvaluateJsonPath is grabbing some attributes from it.&lt;/P&gt;&lt;P&gt;Next, for every fragment, i need to fetch a file from local folder and do an UpdateRecord or QueryRecord(Update Statement) with attribute values contained in every fragment and retrieved by EvaluateJsonPath.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So based on my understanding, and sequentially for every fragment, i should:&lt;/P&gt;&lt;P&gt;1 - fetch the local file&lt;/P&gt;&lt;P&gt;2 - UpdateRecord or QueryRecord by updating fields values with fragment attribue&lt;/P&gt;&lt;P&gt;3 - Save file into disk&lt;/P&gt;&lt;P&gt;and repeat(loop) each step for every fragment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However i think this is wrong cause the next fragment could fetch the local file before the previous one is finished(saved to disk updated)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i achieve this? Which is the best way to sequentially loop over every fragments and do some stuff?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;appreciate&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 21:27:47 GMT</pubDate>
    <dc:creator>Ray82</dc:creator>
    <dc:date>2023-06-14T21:27:47Z</dc:date>
  </channel>
</rss>

