<?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: Enabling LZO compression using NiFi PutHDFS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147111#M48515</link>
    <description>&lt;P&gt;Nope, its on the &lt;A target="_blank" href="https://github.com/u39kun/ambari-vagrant"&gt;ambari vagrant box &lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2016 22:30:43 GMT</pubDate>
    <dc:creator>arunak</dc:creator>
    <dc:date>2016-12-15T22:30:43Z</dc:date>
    <item>
      <title>Enabling LZO compression using NiFi PutHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147105#M48509</link>
      <description>&lt;P&gt;Hello All, &lt;/P&gt;&lt;P&gt;
LZO compression codec is enabled on HDFS and we are writing to HDFS using  PutHDFS.  We have run into the issue as in this &lt;A href="https://community.hortonworks.com/questions/33774/puthdfs-processor-not-working-noclassdeffounderror.html"&gt;question&lt;/A&gt;. Workaround to remove the LZO specific line from the core-site works fine. 

However, is there a way that we can still use LZO codec with NiFi PutHDFS. The compression codec section of &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.hadoop.PutHDFS/"&gt;this&lt;/A&gt; document  does not have specifics around NONE, AUTOMATIC and DEFAULT. Could someone share more information around this? &lt;/P&gt;&lt;P&gt;
Thanks,
Arun&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2016 06:09:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147105#M48509</guid>
      <dc:creator>arunak</dc:creator>
      <dc:date>2016-12-10T06:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling LZO compression using NiFi PutHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147106#M48510</link>
      <description>&lt;P&gt;you will have to include the path to lzo codec binaries in the NiFi bootstrap script.&lt;/P&gt;&lt;P&gt;add an entry like so - &lt;/P&gt;&lt;P&gt;  java.arg.15=-Djava.libaray.path=/path/to/your/lzocodec.so in the bootstrap.conf file.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 03:08:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147106#M48510</guid>
      <dc:creator>knarayanan</dc:creator>
      <dc:date>2016-12-13T03:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling LZO compression using NiFi PutHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147107#M48511</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/10180/knarayanan.html" nodeid="10180"&gt;@Karthik Narayanan&lt;/A&gt;, yet to try this, could you also help on the compression codec to be used in this case? I haven't been able to find out what NONE, AUTOMATIC and DEFAULT means. &lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 04:50:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147107#M48511</guid>
      <dc:creator>arunak</dc:creator>
      <dc:date>2016-12-13T04:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling LZO compression using NiFi PutHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147108#M48512</link>
      <description>&lt;P&gt;NONE means don't use a codec at all.&lt;/P&gt;&lt;P&gt;AUTOMATIC is not meant to be used with PutHDFS, it is only for the read side (GetHDFS and FetchHDFS)&lt;/P&gt;&lt;P&gt;DEFAULT means use the DefaultCodec class provided by Hadoop which I believe uses a zlib compression (slide 6 here &lt;A href="http://www.slideshare.net/Hadoop_Summit/kamat-singh-june27425pmroom210cv2)" target="_blank"&gt;http://www.slideshare.net/Hadoop_Summit/kamat-singh-june27425pmroom210cv2)&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 05:55:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147108#M48512</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2016-12-13T05:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling LZO compression using NiFi PutHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147109#M48513</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10180/knarayanan.html" nodeid="10180"&gt;@Karthik Narayanan&lt;/A&gt; : Just to give you an update, this did not work for me. Tried the same with Snappy. Even snappy does not seem to work. Throws an unsatisfied link even though I have the ".so" added to the bootstrap.conf &lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 02:20:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147109#M48513</guid>
      <dc:creator>arunak</dc:creator>
      <dc:date>2016-12-14T02:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling LZO compression using NiFi PutHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147110#M48514</link>
      <description>&lt;P&gt;any chance you are on OS X? &lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 08:35:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147110#M48514</guid>
      <dc:creator>knarayanan</dc:creator>
      <dc:date>2016-12-14T08:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling LZO compression using NiFi PutHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147111#M48515</link>
      <description>&lt;P&gt;Nope, its on the &lt;A target="_blank" href="https://github.com/u39kun/ambari-vagrant"&gt;ambari vagrant box &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 22:30:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147111#M48515</guid>
      <dc:creator>arunak</dc:creator>
      <dc:date>2016-12-15T22:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling LZO compression using NiFi PutHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147112#M48516</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/71719/using-snappy-and-other-compressions-with-nifi-hdfs.html"&gt;https://community.hortonworks.com/articles/71719/using-snappy-and-other-compressions-with-nifi-hdfs....&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I posted the above link on how you can use compression, try and let me know how it goes. I don't think you can use LZO as it is not shipped as part of Nifi. You can try doing a yum install of LZO and then use executestream to compress the file and then do puthdfs, with none for compression codec.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 23:38:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147112#M48516</guid>
      <dc:creator>knarayanan</dc:creator>
      <dc:date>2016-12-15T23:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling LZO compression using NiFi PutHDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147113#M48517</link>
      <description>&lt;P&gt;
 Thanks &lt;A rel="user" href="https://community.cloudera.com/users/10180/knarayanan.html" nodeid="10180" target="_blank"&gt;@Karthik Narayanan&lt;/A&gt;. I was able to resolve the issue.&lt;/P&gt;&lt;P&gt; Before diving into the solutions, I should make the below statement - &lt;/P&gt;&lt;P&gt;With NiFi 1.0 and 1.1,  
 &lt;STRONG&gt;LZO compression cannot be achieved using the P&lt;/STRONG&gt;&lt;STRONG&gt;utHDFS processor&lt;/STRONG&gt;. The only supported compressions are the ones listed in the compression codec drop down.&lt;/P&gt;&lt;P&gt; With the LZO related classes being present in the core-site.xml, the NiFi processor fails to run. The suggestion from the previous HCC post was to remove those classes. It needed to be retained so that  NiFi's copy and HDP's copy of core-site are always in sync.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
NiFi 1.0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;
I created the hadoop-lzo jar by &lt;A target="_blank" href="https://github.com/twitter/hadoop-lzo" rel="nofollow noopener noreferrer"&gt;building it from sources&lt;/A&gt; and added the same to the NiFi lib directory and restarted NiFi.&lt;/P&gt;&lt;P&gt;
 This resolved the issue and I am able to proceed using the PutHDFS without it erroring out.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NiFi 1.1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;
Configure the processor's additional classpath to the jar file. No restart required.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10354-11-classpath.png" style="width: 1248px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21384i06730CEC8250E50C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10354-11-classpath.png" alt="10354-11-classpath.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;
 Note : This does not provide LZO compression, it just can run the processor without ERROR even when you have the LZO classes in the core site.&lt;/P&gt;&lt;P&gt;
 &lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; UNSATISFIED LINK ERROR WITH SNAPPY &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; I also had issue with Snappy Compression codec in NiFi. Was able to resolve it setting the path to the .so file. This did not work on the ambari-vagrant boxes, but I was able to get this working on an openstack cloud instance. The issue on the virtual box could be systemic.&lt;/P&gt;&lt;P&gt;
 To resolve the link error, I copied the .so files from HDP cluster and recreated the links. And as &lt;A rel="user" href="https://community.cloudera.com/users/10180/knarayanan.html" nodeid="10180" target="_blank"&gt;@Karthik Narayanan&lt;/A&gt; suggested, added the java library path to the directory containing the .so files.&lt;/P&gt;&lt;P&gt; Below is the list of .so and links&lt;/P&gt;&lt;P&gt;
 &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10352-so-list.png" style="width: 1192px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21385i07086003F9F9628B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10352-so-list.png" alt="10352-so-list.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; And below is the bootstrap configuration change&lt;/P&gt;&lt;P&gt;
 &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10353-bootstrap-config.png" style="width: 1340px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21386i7638BBD3C97E87D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10353-bootstrap-config.png" alt="10353-bootstrap-config.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 13:20:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Enabling-LZO-compression-using-NiFi-PutHDFS/m-p/147113#M48517</guid>
      <dc:creator>arunak</dc:creator>
      <dc:date>2019-08-18T13:20:28Z</dc:date>
    </item>
  </channel>
</rss>

