<?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 How to zip file from ExecuteStreamCommand in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-zip-file-from-ExecuteStreamCommand/m-p/286080#M212208</link>
    <description>&lt;P&gt;I'm passing a csv flowfile to ExecuteStreamCommand. How can I zip it with password and pass it to the next processor?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know how to zip file from stdin and pass it to stdout. I'm using python&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2019 14:30:03 GMT</pubDate>
    <dc:creator>lueenavarro</dc:creator>
    <dc:date>2019-12-20T14:30:03Z</dc:date>
    <item>
      <title>How to zip file from ExecuteStreamCommand</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-zip-file-from-ExecuteStreamCommand/m-p/286080#M212208</link>
      <description>&lt;P&gt;I'm passing a csv flowfile to ExecuteStreamCommand. How can I zip it with password and pass it to the next processor?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know how to zip file from stdin and pass it to stdout. I'm using python&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 14:30:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-zip-file-from-ExecuteStreamCommand/m-p/286080#M212208</guid>
      <dc:creator>lueenavarro</dc:creator>
      <dc:date>2019-12-20T14:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to zip file from ExecuteStreamCommand</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-zip-file-from-ExecuteStreamCommand/m-p/286240#M212314</link>
      <description>&lt;P&gt;This is more a Python question than a Nifi one, perhaps this will help:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="kwd"&gt;import&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; pyminizip
pyminizip&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;compress&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"myfile.txt"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="str"&gt;"myzippedfile.zip"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="str"&gt;"mypassword"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; compression_level&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I would recommend you to first see if you can get the python part working, and then worry about how to call it from Nifi.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 11:20:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-zip-file-from-ExecuteStreamCommand/m-p/286240#M212314</guid>
      <dc:creator>DennisJaheruddi</dc:creator>
      <dc:date>2019-12-24T11:20:32Z</dc:date>
    </item>
  </channel>
</rss>

