<?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: Adding libraries to Zeppelin in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155785#M32861</link>
    <description>&lt;P&gt;Hi @Adel Quazani,&lt;/P&gt;&lt;P&gt;You can add the libraries in Zepplin with import statements. &lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;import org.apache.spark.rdd._&lt;/P&gt;&lt;P&gt;import scala.collection.JavaConverters._&lt;/P&gt;&lt;P&gt;import au.com.bytecode.opencsv.CSVReader&lt;/P&gt;&lt;P&gt;Hope that answers your question.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sujitha Sanku&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2016 06:05:43 GMT</pubDate>
    <dc:creator>ssanku</dc:creator>
    <dc:date>2016-06-24T06:05:43Z</dc:date>
    <item>
      <title>Adding libraries to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155784#M32860</link>
      <description>&lt;P&gt;I want to add a library and use it in Zeppelin (ex. Spark-csv). I succeeded in adding it to Spark and using it by putting my Jar in all nodes and adding spark.jars='path-to-jar' in conf/spark-defaults.conf.&lt;/P&gt;&lt;P&gt;However when I call the library from Zeppelin it doesn't work (class not found). From my understanding Zeppelin do a Spark-submit so if the package is already added in Spark it should work. Also, I tried adding using export
SPARK_SUBMIT_OPTIONS=”--jars
/path/mylib1.jar,/path/mylib2.jar" to zeppelin-env.sh but same problem.&lt;/P&gt;&lt;P&gt;Has anyone suceeded in adding libraries to Zeppelin ? have you seen this problem ?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 05:14:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155784#M32860</guid>
      <dc:creator>adel_ouzani</dc:creator>
      <dc:date>2016-06-24T05:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding libraries to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155785#M32861</link>
      <description>&lt;P&gt;Hi @Adel Quazani,&lt;/P&gt;&lt;P&gt;You can add the libraries in Zepplin with import statements. &lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;import org.apache.spark.rdd._&lt;/P&gt;&lt;P&gt;import scala.collection.JavaConverters._&lt;/P&gt;&lt;P&gt;import au.com.bytecode.opencsv.CSVReader&lt;/P&gt;&lt;P&gt;Hope that answers your question.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sujitha Sanku&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 06:05:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155785#M32861</guid>
      <dc:creator>ssanku</dc:creator>
      <dc:date>2016-06-24T06:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding libraries to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155786#M32862</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3915/ssanku.html" nodeid="3915"&gt;@sujitha sanku&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks
&lt;A rel="user" href="https://community.cloudera.com/users/3915/ssanku.html" nodeid="3915"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I am talking about libraries that doesn't come with Spark by default like spark-csv. This code works with Spark-shell but not with Zeppelin (same thing if I use Pyspark):&lt;/P&gt;&lt;PRE&gt;import org.apache.spark.sql.SQLContext
val df = sqlContext.read.format("com.databricks.spark.csv").option("header", "true").option("inferSchema", "true").load("/tmp/sales.csv")
df.printSchema()
val selectedData = df.select("customerId", "itemId")
selectedData.collect()&lt;/PRE&gt;&lt;P&gt;Should I add import statement ? why this is working in Spark directly&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 12:44:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155786#M32862</guid>
      <dc:creator>adel_ouzani</dc:creator>
      <dc:date>2016-06-24T12:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding libraries to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155787#M32863</link>
      <description>&lt;P&gt;See import external library section of &lt;A href="https://community.hortonworks.com/articles/34424/apache-zeppelin-on-hdp-242.html" target="_blank"&gt;https://community.hortonworks.com/articles/34424/apache-zeppelin-on-hdp-242.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Since databricks csv is published to maven, you can just add the following as the first note before any other note. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%dep
z.load("com.databricks:spark-csv_2.10:1.2.0")&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Jun 2016 06:46:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155787#M32863</guid>
      <dc:creator>vshukla</dc:creator>
      <dc:date>2016-06-25T06:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding libraries to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155788#M32864</link>
      <description>&lt;P&gt;Since Zeppelin has evolved so has the answer to this question.  In newer versions it is possible to deploy jar files to the local-repo directory if set properly.  &lt;/P&gt;&lt;PRE&gt;zeppelin.interpreter.localRepo	/usr/hdp/current/zeppelin-server/lib/local-repo/2BS9Q4FMD&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Aug 2016 02:31:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155788#M32864</guid>
      <dc:creator>jhorsch</dc:creator>
      <dc:date>2016-08-27T02:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding libraries to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155789#M32865</link>
      <description>&lt;P&gt;You can add jar files straight under Interpreter dependencies &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load Dependencies to Interpreter &lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;Click 'Interpreter' menu in navigation bar.&lt;/LI&gt;&lt;LI&gt;Click 'edit' button of the interpreter which you want to load dependencies to.&lt;/LI&gt;&lt;LI&gt;Fill artifact and exclude field to your needs. &lt;STRONG&gt;Add the path to the respective jar file&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Press 'Save' to restart the interpreter with loaded libraries.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Regards,
George Davy&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2017 03:55:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155789#M32865</guid>
      <dc:creator>gdavy</dc:creator>
      <dc:date>2017-01-07T03:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding libraries to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155790#M32866</link>
      <description>&lt;P&gt;I use Zeppelin and worked for me thanks &lt;A rel="user" href="https://community.cloudera.com/users/12973/gdavy.html" nodeid="12973"&gt;@gdavy&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 21:21:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155790#M32866</guid>
      <dc:creator>erkansirin78</dc:creator>
      <dc:date>2018-03-14T21:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding libraries to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155791#M32867</link>
      <description>&lt;P&gt;Adel,&lt;/P&gt;&lt;P&gt;I have the same issue, I have spark1.6 and I need to use spark-csv, can you tell me what I need to do please.&lt;/P&gt;&lt;P&gt;and for Zeppelin, does it work fot you?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 00:52:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155791#M32867</guid>
      <dc:creator>bsaoula</dc:creator>
      <dc:date>2018-04-10T00:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adding libraries to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155792#M32868</link>
      <description>&lt;P&gt;I looked in the maven repository, searched for my library XMLHttpRequest in my case and there is the required info (groupId:artifactId:version)... Then I added the artifact to my interpreter as org.webjars.npm:xmlhttprequest:1.8.0 and restarted the interpreter (mongodb) but I don't know how to use the artifact, I tried to import it, but it won't let me, it also doesn't detect the XMLHttpRequest class automatically. How can I use artifacts?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 16:55:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/155792#M32868</guid>
      <dc:creator>ext-roxana_tapi</dc:creator>
      <dc:date>2018-04-10T16:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding libraries to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/316859#M32869</link>
      <description>&lt;P&gt;Thx, this works for me also.&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 08:33:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/316859#M32869</guid>
      <dc:creator>TomMonkeyMan</dc:creator>
      <dc:date>2021-05-21T08:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding libraries to Zeppelin</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/411294#M32870</link>
      <description>&lt;P&gt;how to use Numpy?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 11:35:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-libraries-to-Zeppelin/m-p/411294#M32870</guid>
      <dc:creator>LSIMS</dc:creator>
      <dc:date>2025-07-09T11:35:40Z</dc:date>
    </item>
  </channel>
</rss>

