<?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: Unable to use lzo codec in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-use-lzo-codec/m-p/155634#M44803</link>
    <description>&lt;P&gt;I was missing com.hadoop.compression.lzo.LzopCodec in the compression codecs listing...  Grrr.  The error message proved to be utterly misleading.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2016 02:12:43 GMT</pubDate>
    <dc:creator>hirschs</dc:creator>
    <dc:date>2016-11-01T02:12:43Z</dc:date>
    <item>
      <title>Unable to use lzo codec</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-use-lzo-codec/m-p/155633#M44802</link>
      <description>&lt;P&gt;I'm trying to get LZO compression to work on our HDP 2.3.2 cluster and getting nowhere.  Here's what I've done:&lt;/P&gt;&lt;P&gt;  - Installed the hadooplzo and hadoop-lzo-native RPMs&lt;/P&gt;&lt;P&gt;  - Made the documented changes to add the codec and the lzo class spec to core-site.xml&lt;/P&gt;&lt;P&gt;When I try to run a job thusly:&lt;/P&gt;&lt;PRE&gt;yarn jar /usr/hdp/2.3.2.0-2950/hadoop/lib/hadoop-lzo-0.6.0.2.3.2.0-2950.jar com.hadoop.compression.lzo.LzoIndexer /path/to/lzofiles&lt;/PRE&gt;&lt;P&gt;It tells me:&lt;/P&gt;&lt;PRE&gt;[hirschs@sees24-lin ~]$ yarn jar /usr/hdp/2.3.2.0-2950/hadoop/lib/hadoop-lzo-0.6.0.2.3.2.0-2950.jar com.hadoop.compression.lzo.LzoIndexer /xxxx/yyy
16/10/28 16:44:56 ERROR lzo.GPLNativeCodeLoader: Could not load native gpl library
java.lang.UnsatisfiedLinkError: no gplcompression in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
        at java.lang.Runtime.loadLibrary0(Runtime.java:849)
        at java.lang.System.loadLibrary(System.java:1088)
        at com.hadoop.compression.lzo.GPLNativeCodeLoader.&amp;lt;clinit&amp;gt;(GPLNativeCodeLoader.java:32)
        at com.hadoop.compression.lzo.LzoCodec.&amp;lt;clinit&amp;gt;(LzoCodec.java:71)
        at com.hadoop.compression.lzo.LzoIndexer.&amp;lt;init&amp;gt;(LzoIndexer.java:36)
        at com.hadoop.compression.lzo.LzoIndexer.main(LzoIndexer.java:134)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
16/10/28 16:44:56 ERROR lzo.LzoCodec: Cannot load native-lzo without native-hadoop
16/10/28 16:44:57 INFO lzo.LzoIndexer: LZO Indexing directory /xxxxx/yyyyy...
16/10/28 16:44:57 INFO lzo.LzoIndexer:   [INDEX] LZO Indexing file hdfs://correct_path_to_file, size 1.08 GB...
16/10/28 16:44:57 INFO compress.LzoCodec: Bridging org.apache.hadoop.io.compress.LzoCodec to com.hadoop.compression.lzo.LzoCodec.
16/10/28 16:44:57 ERROR lzo.LzoIndexer: Error indexing hdfs://correct_path_to_file
java.io.IOException: Could not find codec for file hdfs://correct_path_to_file - you may need to add the LZO codec to your io.compression.codecs configuration in core-site.xml
        at com.hadoop.compression.lzo.LzoIndex.createIndex(LzoIndex.java:212)
        at com.hadoop.compression.lzo.LzoIndexer.indexSingleFile(LzoIndexer.java:117)
        at com.hadoop.compression.lzo.LzoIndexer.indexInternal(LzoIndexer.java:98)
        at com.hadoop.compression.lzo.LzoIndexer.indexInternal(LzoIndexer.java:86)
        at com.hadoop.compression.lzo.LzoIndexer.index(LzoIndexer.java:52)
        at com.hadoop.compression.lzo.LzoIndexer.main(LzoIndexer.java:137)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

&lt;/PRE&gt;&lt;P&gt;I get the feeling I'm missing a step somewhere.  The shared libraries appear to be in place:&lt;/P&gt;&lt;PRE&gt;[hirschs@sees24-lin native]$ rpm -ql hadoop-lzo-native
/usr/hdp/current/share/lzo/0.6.0/lib/native
/usr/hdp/current/share/lzo/0.6.0/lib/native/Linux-amd64-64
/usr/hdp/current/share/lzo/0.6.0/lib/native/Linux-amd64-64/libgplcompression.a
/usr/hdp/current/share/lzo/0.6.0/lib/native/Linux-amd64-64/libgplcompression.la
/usr/hdp/current/share/lzo/0.6.0/lib/native/Linux-amd64-64/libgplcompression.so
/usr/hdp/current/share/lzo/0.6.0/lib/native/Linux-amd64-64/libgplcompression.so.0
/usr/hdp/current/share/lzo/0.6.0/lib/native/Linux-amd64-64/libgplcompression.so.0.0.0
/usr/hdp/current/share/lzo/0.6.0/lib/native/docs
&lt;/PRE&gt;&lt;P&gt;In core-site.xml:&lt;/P&gt;&lt;PRE&gt;    &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;io.compression.codecs&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;org.apache.hadoop.io.compress.GzipCodec,org.apache.hadoop.io.compress.DefaultCodec,org.apache.hadoop.io.compress.SnappyCodec,com.hadoop.compression.lzo.LzoCodec&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
&lt;/PRE&gt;&lt;P&gt;In hdfs-site.xml:&lt;/P&gt;&lt;PRE&gt;   &amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;io.compression.codec.lzo.class&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;com.hadoop.compression.lzo.LzoCodec&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
&lt;/PRE&gt;&lt;P&gt;What more do I need to do in order for this to run?&lt;/P&gt;&lt;P&gt;Even a guess would be helpful at this point.  &lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:46:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-use-lzo-codec/m-p/155633#M44802</guid>
      <dc:creator>hirschs</dc:creator>
      <dc:date>2022-09-16T10:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use lzo codec</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-use-lzo-codec/m-p/155634#M44803</link>
      <description>&lt;P&gt;I was missing com.hadoop.compression.lzo.LzopCodec in the compression codecs listing...  Grrr.  The error message proved to be utterly misleading.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 02:12:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-use-lzo-codec/m-p/155634#M44803</guid>
      <dc:creator>hirschs</dc:creator>
      <dc:date>2016-11-01T02:12:43Z</dc:date>
    </item>
  </channel>
</rss>

