<?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: Spark saveAsTextFile with SnappyCodec on YARN getting : &amp;quot;native snappy library not available: this version of libhadoop was built without snappy support.&amp;quot; in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-saveAsTextFile-with-SnappyCodec-on-YARN-getting-quot/m-p/127365#M31151</link>
    <description>&lt;P&gt;spark.executor.extraLibraryPath did the job. Thanks! &lt;A rel="user" href="https://community.cloudera.com/users/2311/davidtam.html" nodeid="2311"&gt;@David Tam&lt;/A&gt; and &lt;A rel="user" href="https://community.cloudera.com/users/2528/jyadav.html" nodeid="2528"&gt;@Jitendra Yadav&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Dec 2018 20:24:35 GMT</pubDate>
    <dc:creator>imartinez</dc:creator>
    <dc:date>2018-12-07T20:24:35Z</dc:date>
    <item>
      <title>Spark saveAsTextFile with SnappyCodec on YARN getting : "native snappy library not available: this version of libhadoop was built without snappy support."</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-saveAsTextFile-with-SnappyCodec-on-YARN-getting-quot/m-p/127360#M31146</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a spark job that is run by spark-submit and at the end it saves some output using SparkContext saveAsTextFile with SnappyCodec.  To test I am using sandbox 2.3.4&lt;/P&gt;&lt;P&gt;This is running fine using master = local[x], after following &lt;A href="https://community.hortonworks.com/questions/18903/this-version-of-libhadoop-was-built-without-snappy.html" rel="nofollow noopener noreferrer" target="_blank"&gt;the suggestion in this thread.&lt;/A&gt;  However Once I changed master = yarn-client I am getting the same "native snappy library not available: this version of libhadoop was built without snappy support." on YARN.&lt;/P&gt;&lt;P&gt;However I thought I have done all the necessary setup - any suggestions welcome!&lt;/P&gt;&lt;P&gt;When I check the Spark History server I can see the following in the environment:&lt;/P&gt;&lt;P&gt;Spark properties:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4819-2016-06-08-09-52-43-comlbglakeingestbatchsparkfile.png" style="width: 871px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22605i5C82C63F96BEE1DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4819-2016-06-08-09-52-43-comlbglakeingestbatchsparkfile.png" alt="4819-2016-06-08-09-52-43-comlbglakeingestbatchsparkfile.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4820-2016-06-08-09-52-52-comlbglakeingestbatchsparkfile.png" style="width: 951px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22606iC5D9963778C52F61/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4820-2016-06-08-09-52-52-comlbglakeingestbatchsparkfile.png" alt="4820-2016-06-08-09-52-52-comlbglakeingestbatchsparkfile.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;system properties:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4841-2016-06-08-09-54-13-comlbglakeingestbatchsparkfile.png" style="width: 991px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22607i2E8CA7E562A07F54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4841-2016-06-08-09-54-13-comlbglakeingestbatchsparkfile.png" alt="4841-2016-06-08-09-54-13-comlbglakeingestbatchsparkfile.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Furthermore in Ambari -&amp;gt; Yarn -&amp;gt; config -&amp;gt; Advanced yarn-env -&amp;gt; yarn-env template -&amp;gt; LD_LIBRARY_PATH:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4842-2016-06-08-09-57-55-ambari-sandbox.png" style="width: 888px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22608i9AFDDE7D6EC9B215/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4842-2016-06-08-09-57-55-ambari-sandbox.png" alt="4842-2016-06-08-09-57-55-ambari-sandbox.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anything else I could do to make snappy available as a compression codec on YARN?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:00:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-saveAsTextFile-with-SnappyCodec-on-YARN-getting-quot/m-p/127360#M31146</guid>
      <dc:creator>David_Tam</dc:creator>
      <dc:date>2019-08-19T10:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Spark saveAsTextFile with SnappyCodec on YARN getting : "native snappy library not available: this version of libhadoop was built without snappy support."</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-saveAsTextFile-with-SnappyCodec-on-YARN-getting-quot/m-p/127361#M31147</link>
      <description>&lt;P&gt;can you check whether snappy lib is installed on the cluster nodes using command 'hadoop checknative'?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 16:08:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-saveAsTextFile-with-SnappyCodec-on-YARN-getting-quot/m-p/127361#M31147</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-06-08T16:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Spark saveAsTextFile with SnappyCodec on YARN getting : "native snappy library not available: this version of libhadoop was built without snappy support."</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-saveAsTextFile-with-SnappyCodec-on-YARN-getting-quot/m-p/127362#M31148</link>
      <description>&lt;P&gt;yes it is - as I said I was able to save in local mode.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4843-2016-06-08-10-09-33-root.png" style="width: 892px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22604iED6591A8C8445EAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4843-2016-06-08-10-09-33-root.png" alt="4843-2016-06-08-10-09-33-root.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:00:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-saveAsTextFile-with-SnappyCodec-on-YARN-getting-quot/m-p/127362#M31148</guid>
      <dc:creator>David_Tam</dc:creator>
      <dc:date>2019-08-19T10:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Spark saveAsTextFile with SnappyCodec on YARN getting : "native snappy library not available: this version of libhadoop was built without snappy support."</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-saveAsTextFile-with-SnappyCodec-on-YARN-getting-quot/m-p/127363#M31149</link>
      <description>&lt;P&gt;can you add the following  parameters in spark conf and see if it works&lt;/P&gt;&lt;PRE&gt;  spark.executor.extraClassPath /usr/hdp/current/hadoop-client/lib/snappy-java-*.jar 
  spark.executor.extraLibraryPath /usr/hdp/current/hadoop-client/native 
  spark.executor.extraJavaOptions -Djava.library.path=/usr/hdp/current/hadoop-client/lib/native/lib&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jun 2016 16:21:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-saveAsTextFile-with-SnappyCodec-on-YARN-getting-quot/m-p/127363#M31149</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-06-08T16:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Spark saveAsTextFile with SnappyCodec on YARN getting : "native snappy library not available: this version of libhadoop was built without snappy support."</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-saveAsTextFile-with-SnappyCodec-on-YARN-getting-quot/m-p/127364#M31150</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/8919/rajkumarsingh.html" nodeid="8919" target="_blank"&gt;@Rajkumar Singh&lt;/A&gt; I have tried the mapred.child.java.opts and a few of the mapreduce settings suggested by &lt;A rel="user" href="https://community.cloudera.com/users/2528/jyadav.html" nodeid="2528" target="_blank"&gt;@Jitendra Yadav&lt;/A&gt; but at the end just adding this spark.executor.extraLibraryPath would do the job.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4844-2016-06-08-14-03-37-ambari-sandbox.png" style="width: 767px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22603i03B12ABABD625435/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4844-2016-06-08-14-03-37-ambari-sandbox.png" alt="4844-2016-06-08-14-03-37-ambari-sandbox.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:00:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-saveAsTextFile-with-SnappyCodec-on-YARN-getting-quot/m-p/127364#M31150</guid>
      <dc:creator>David_Tam</dc:creator>
      <dc:date>2019-08-19T10:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Spark saveAsTextFile with SnappyCodec on YARN getting : "native snappy library not available: this version of libhadoop was built without snappy support."</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-saveAsTextFile-with-SnappyCodec-on-YARN-getting-quot/m-p/127365#M31151</link>
      <description>&lt;P&gt;spark.executor.extraLibraryPath did the job. Thanks! &lt;A rel="user" href="https://community.cloudera.com/users/2311/davidtam.html" nodeid="2311"&gt;@David Tam&lt;/A&gt; and &lt;A rel="user" href="https://community.cloudera.com/users/2528/jyadav.html" nodeid="2528"&gt;@Jitendra Yadav&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 20:24:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-saveAsTextFile-with-SnappyCodec-on-YARN-getting-quot/m-p/127365#M31151</guid>
      <dc:creator>imartinez</dc:creator>
      <dc:date>2018-12-07T20:24:35Z</dc:date>
    </item>
  </channel>
</rss>

