<?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 Decompress .json.gz inside folder in NIFI in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Decompress-json-gz-inside-folder-in-NIFI/m-p/345245#M234447</link>
    <description>&lt;P&gt;I receive a response from InvokeHTTP as a folder-&amp;gt;another_folder-&amp;gt;file.json.gz and I want to do some operations on the json file using SplitJson processor, so, I need to decompress the&amp;nbsp;file.json.gz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to UpdateAttribute to rename the parent folder to be folder.zip then UnpackContent but it's not supporting .gz format&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, I tried instead of&amp;nbsp;UnpackContent, the&amp;nbsp;&lt;SPAN&gt;ExecuteStreamCommand with unzip command with a plan to use PutFile then ListFile to get the&amp;nbsp;file.json.gz and pass to SplitJson&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;but I got this error in&amp;nbsp;ExecuteStreamCommand step&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Failed to write flow file to stdin due to Broken pipe: java.io.IOException: Broken pipe&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's the solution for this? I tried to set Connection Timeout propriety to 120s but still the same error, What is the best way to get&amp;nbsp;file.json.gz, decompress it and pass it to SplitJson processor?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2022 02:39:06 GMT</pubDate>
    <dc:creator>nada</dc:creator>
    <dc:date>2022-06-09T02:39:06Z</dc:date>
    <item>
      <title>Decompress .json.gz inside folder in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Decompress-json-gz-inside-folder-in-NIFI/m-p/345245#M234447</link>
      <description>&lt;P&gt;I receive a response from InvokeHTTP as a folder-&amp;gt;another_folder-&amp;gt;file.json.gz and I want to do some operations on the json file using SplitJson processor, so, I need to decompress the&amp;nbsp;file.json.gz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to UpdateAttribute to rename the parent folder to be folder.zip then UnpackContent but it's not supporting .gz format&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, I tried instead of&amp;nbsp;UnpackContent, the&amp;nbsp;&lt;SPAN&gt;ExecuteStreamCommand with unzip command with a plan to use PutFile then ListFile to get the&amp;nbsp;file.json.gz and pass to SplitJson&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;but I got this error in&amp;nbsp;ExecuteStreamCommand step&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Failed to write flow file to stdin due to Broken pipe: java.io.IOException: Broken pipe&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's the solution for this? I tried to set Connection Timeout propriety to 120s but still the same error, What is the best way to get&amp;nbsp;file.json.gz, decompress it and pass it to SplitJson processor?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 02:39:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Decompress-json-gz-inside-folder-in-NIFI/m-p/345245#M234447</guid>
      <dc:creator>nada</dc:creator>
      <dc:date>2022-06-09T02:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Decompress .json.gz inside folder in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Decompress-json-gz-inside-folder-in-NIFI/m-p/345250#M234452</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98468"&gt;@nada&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you share a sample of the InvokeHTTP response and also the flow that you currently have?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 03:16:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Decompress-json-gz-inside-folder-in-NIFI/m-p/345250#M234452</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-06-09T03:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Decompress .json.gz inside folder in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Decompress-json-gz-inside-folder-in-NIFI/m-p/345288#M234471</link>
      <description>&lt;P&gt;&lt;SPAN&gt;the InvokeHTTP response:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;from the queue list:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2022-06-09 12-15-25.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34535i92638609D4812264/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2022-06-09 12-15-25.png" alt="Screenshot from 2022-06-09 12-15-25.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;after I download:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2022-06-09 12-17-13.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34536iF515CB407706DD96/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2022-06-09 12-17-13.png" alt="Screenshot from 2022-06-09 12-17-13.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I have a flow file in the nonzero status queue from ExecuteStreamCommand as follows&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2022-06-09 12-20-51.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34537i9C49D215BD433FBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2022-06-09 12-20-51.png" alt="Screenshot from 2022-06-09 12-20-51.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the whole cycle:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2022-06-09 12-22-55.png" style="width: 735px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34538i481CB36CE1D6C155/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2022-06-09 12-22-55.png" alt="Screenshot from 2022-06-09 12-22-55.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 10:24:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Decompress-json-gz-inside-folder-in-NIFI/m-p/345288#M234471</guid>
      <dc:creator>nada</dc:creator>
      <dc:date>2022-06-09T10:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Decompress .json.gz inside folder in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Decompress-json-gz-inside-folder-in-NIFI/m-p/345311#M234482</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98468"&gt;@nada&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You can use the CompressContent processor to decompress gzip files.&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.16.2/org.apache.nifi.processors.standard.CompressContent/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.16.2/org.apache.nifi.processors.standard.CompressContent/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Set "Mode" to "Decompress", "compression format" to "gzip", and "Update Filename" to "True".&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you found this response assisted with your query, please take a moment to login and click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 17:33:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Decompress-json-gz-inside-folder-in-NIFI/m-p/345311#M234482</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-06-09T17:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Decompress .json.gz inside folder in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Decompress-json-gz-inside-folder-in-NIFI/m-p/345445#M234534</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Matt,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my incoming flowfile is basically a folder that contains another folder that contains a .json.jz file&lt;/P&gt;&lt;P&gt;(&lt;SPAN&gt;folder-&amp;gt;another_folder-&amp;gt;file.json.gz),&amp;nbsp;CompressContent processor is meant for .gz incoming file..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How to recursively decompress so it decompresses the .json.jz that is part of the subfolder? or how to unpack the first folder without touching subfolders/files?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 01:43:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Decompress-json-gz-inside-folder-in-NIFI/m-p/345445#M234534</guid>
      <dc:creator>nada</dc:creator>
      <dc:date>2022-06-13T01:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Decompress .json.gz inside folder in NIFI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Decompress-json-gz-inside-folder-in-NIFI/m-p/346170#M234783</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/98468"&gt;@nada&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check this solution:&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Community-Articles/Decompressing-nested-ZIP-files-in-NiFi/ta-p/346169" target="_blank"&gt;https://community.cloudera.com/t5/Community-Articles/Decompressing-nested-ZIP-files-in-NiFi/ta-p/346169&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 23:13:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Decompress-json-gz-inside-folder-in-NIFI/m-p/346170#M234783</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-06-22T23:13:29Z</dc:date>
    </item>
  </channel>
</rss>

