<?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: Apache Spark - Error - Unable to load native-hadoop library in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Apache-Spark-Error-Unable-to-load-native-hadoop-library/m-p/336480#M232261</link>
    <description>&lt;P&gt;This answer may not help the person who asked but still wanted to post it as somebody could benefit from it.&lt;/P&gt;&lt;P&gt;There are multiple ways to solve this that explained in this artilce.&lt;/P&gt;&lt;P&gt;&lt;A href="https://sparkbyexamples.com/hadoop/hadoop-unable-to-load-native-hadoop-library-for-your-platform-warning/" target="_self"&gt;https://sparkbyexamples.com/hadoop/hadoop-unable-to-load-native-hadoop-library-for-your-platform-warning/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me, setting the below environments solved my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;export LD_LIBRARY_PATH=$HADOOP_HOME/lib/native&lt;/P&gt;&lt;P&gt;# (OR) If you have hadoop library installed at /usr/lib/&lt;/P&gt;&lt;P&gt;export LD_LIBRARY_PATH=/usr/lib/hadoop/lib/native&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 02:47:34 GMT</pubDate>
    <dc:creator>Dev123</dc:creator>
    <dc:date>2022-02-17T02:47:34Z</dc:date>
    <item>
      <title>Apache Spark - Error - Unable to load native-hadoop library</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Spark-Error-Unable-to-load-native-hadoop-library/m-p/160968#M123353</link>
      <description>&lt;PRE&gt;Below is what i get when I initiate spark-shell. Can the warning below ignored ?

[root@hdp-m hdfs]# spark-shell
16/02/27 01:52:04 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Welcome to
      ____              __
     / __/__  ___ _____/ /__
    _\ \/ _ \/ _ `/ __/  '_/
   /___/ .__/\_,_/_/ /_/\_\   version 1.5.2
      /_/


Using Scala version 2.10.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_60)
Type in expressions to have them evaluated.
Type :help for more information.
16/02/27 01:52:17 WARN MetricsSystem: Using default name DAGScheduler for source because spark.app.id is not set.
Spark context available as sc.
16/02/27 01:52:25 WARN DomainSocketFactory: The short-circuit local reads feature cannot be used because libhadoop cannot be loaded.
16/02/27 01:52:27 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
16/02/27 01:52:28 WARN DomainSocketFactory: The short-circuit local reads feature cannot be used because libhadoop cannot be loaded.
SQL context available as sqlContext.


&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Feb 2016 09:56:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Spark-Error-Unable-to-load-native-hadoop-library/m-p/160968#M123353</guid>
      <dc:creator>prakashpunj</dc:creator>
      <dc:date>2016-02-27T09:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Spark - Error - Unable to load native-hadoop library</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Spark-Error-Unable-to-load-native-hadoop-library/m-p/160969#M123354</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1277/prakashpunj.html" nodeid="1277"&gt;@Prakash Punj&lt;/A&gt; Yes, you can ignore that warning&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 09:57:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Spark-Error-Unable-to-load-native-hadoop-library/m-p/160969#M123354</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-27T09:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Spark - Error - Unable to load native-hadoop library</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Spark-Error-Unable-to-load-native-hadoop-library/m-p/160970#M123355</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1277/prakashpunj.html" nodeid="1277"&gt;@Prakash Punj&lt;/A&gt;  See this &lt;A href="http://stackoverflow.com/questions/27781187/how-to-stop-messages-displaying-on-spark-console" target="_blank"&gt;http://stackoverflow.com/questions/27781187/how-to-stop-messages-displaying-on-spark-console&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 10:01:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Spark-Error-Unable-to-load-native-hadoop-library/m-p/160970#M123355</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-27T10:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Apache Spark - Error - Unable to load native-hadoop library</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Apache-Spark-Error-Unable-to-load-native-hadoop-library/m-p/336480#M232261</link>
      <description>&lt;P&gt;This answer may not help the person who asked but still wanted to post it as somebody could benefit from it.&lt;/P&gt;&lt;P&gt;There are multiple ways to solve this that explained in this artilce.&lt;/P&gt;&lt;P&gt;&lt;A href="https://sparkbyexamples.com/hadoop/hadoop-unable-to-load-native-hadoop-library-for-your-platform-warning/" target="_self"&gt;https://sparkbyexamples.com/hadoop/hadoop-unable-to-load-native-hadoop-library-for-your-platform-warning/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me, setting the below environments solved my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;export LD_LIBRARY_PATH=$HADOOP_HOME/lib/native&lt;/P&gt;&lt;P&gt;# (OR) If you have hadoop library installed at /usr/lib/&lt;/P&gt;&lt;P&gt;export LD_LIBRARY_PATH=/usr/lib/hadoop/lib/native&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 02:47:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Apache-Spark-Error-Unable-to-load-native-hadoop-library/m-p/336480#M232261</guid>
      <dc:creator>Dev123</dc:creator>
      <dc:date>2022-02-17T02:47:34Z</dc:date>
    </item>
  </channel>
</rss>

