<?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: HDP, Zeppelin Notebook, Livy, Spark &amp; R: &amp;quot;requirement failed: sparkr.zip not found; cannot run sparkr application.&amp;quot; in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP-Zeppelin-Notebook-Livy-Spark-R-quot-requirement-failed/m-p/127025#M47463</link>
    <description>&lt;P&gt;It looks like you have R installed; is it on all nodes in your cluster? There is also a requirement to set JAVA_HOME. &lt;/P&gt;&lt;P&gt;If you have access to Spark directly you might want to try accessing R from Spark first, to help isolate the issue. &lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_spark-component-guide/content/ch_spark-r.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_spark-component-guide/content/ch_spark-r.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2016 07:37:29 GMT</pubDate>
    <dc:creator>lgeorge</dc:creator>
    <dc:date>2016-11-30T07:37:29Z</dc:date>
    <item>
      <title>HDP, Zeppelin Notebook, Livy, Spark &amp; R: "requirement failed: sparkr.zip not found; cannot run sparkr application."</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP-Zeppelin-Notebook-Livy-Spark-R-quot-requirement-failed/m-p/127022#M47460</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I want to use R in Zeppelin Notebook. This is my environment:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1 Server (single node cluster)&lt;/LI&gt;&lt;LI&gt;SUSE Linux Enterprise Server 12 SP1&lt;/LI&gt;&lt;LI&gt;HDP 2.5.0.0-1245 (installed and managed with Ambari 2.4.1.0)&lt;/LI&gt;&lt;LI&gt;JDK 1.8.0 (102)&lt;/LI&gt;&lt;LI&gt;Python 2.7.9&lt;/LI&gt;&lt;LI&gt;Spark 1.6.x.2.5 (installed and managed with Ambari)&lt;/LI&gt;&lt;LI&gt;Zeppelin 0.6.0.2.5.0.0-1245 (installed and managed with Ambari)&lt;/LI&gt;&lt;LI&gt;R 3.3.0 Patched (2016-05-26 r70684)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;
I followed the instruction from this site (https://zeppelin.apache.org/docs/0.6.0/interpreter/r.html) to install &lt;EM&gt;R-*&lt;/EM&gt;, &lt;EM&gt;libcurl-devel&lt;/EM&gt; and &lt;EM&gt;openssl-devel&lt;/EM&gt;. I also installed the recommended R packages.&lt;/P&gt;&lt;P&gt;The following interpreters are available in my installation of Zeppelin Notebook (http://host:9995/#/interpreter):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;  AngularJS (%angular)&lt;/LI&gt;&lt;LI&gt;JDBC (%jdbc)&lt;/LI&gt;&lt;LI&gt;Livy (%livy, %livy.pyspark, %livy.sparkr, %livy.sql)&lt;/LI&gt;&lt;LI&gt;MarkDown (%md)&lt;/LI&gt;&lt;LI&gt;Shell (%sh)&lt;/LI&gt;&lt;LI&gt;Spark (%spark, %spark.pyspark, %spark.sql, %spark.dep)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;
As far as I understand I cannot add a new interpreter with the prefix "%r" to use R in Zeppelin Notebook. Instead I have to use Livy and the prefix "%livy.sparkr", right? One server instance of Livy is running and i can successfully execute commands like&lt;/P&gt;&lt;PRE&gt;%livy.spark
sc.version&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;%livy.pyspark
print "1"&lt;/PRE&gt;&lt;P&gt;but when I try to run a simple R command like&lt;/P&gt;&lt;PRE&gt;%livy.sparkr
hello &amp;lt;- function( name ) {
  sprintf( "Hello, %s", name );
}
hello("livy")&lt;/PRE&gt;&lt;P&gt;I'm getting the following error message: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error with 400 StatusCode: "requirement failed: sparkr.zip not found; cannot run sparkr application."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Did I miss something? Is there an error in my setup or environment? Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 16:32:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP-Zeppelin-Notebook-Livy-Spark-R-quot-requirement-failed/m-p/127022#M47460</guid>
      <dc:creator>rbr</dc:creator>
      <dc:date>2016-11-29T16:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: HDP, Zeppelin Notebook, Livy, Spark &amp; R: "requirement failed: sparkr.zip not found; cannot run sparkr application."</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP-Zeppelin-Notebook-Livy-Spark-R-quot-requirement-failed/m-p/127023#M47461</link>
      <description>&lt;P&gt;do you use yarn-cluster mode ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 17:21:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP-Zeppelin-Notebook-Livy-Spark-R-quot-requirement-failed/m-p/127023#M47461</guid>
      <dc:creator>jzhang</dc:creator>
      <dc:date>2016-11-29T17:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: HDP, Zeppelin Notebook, Livy, Spark &amp; R: "requirement failed: sparkr.zip not found; cannot run sparkr application."</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP-Zeppelin-Notebook-Livy-Spark-R-quot-requirement-failed/m-p/127024#M47462</link>
      <description>&lt;P&gt;I made no specific configurations in that area. How can I check if Spark is running in yarn-cluster mode and what does it mean?&lt;/P&gt;&lt;P&gt;The zeppelin-env.sh file contains the line:&lt;/P&gt;&lt;PRE&gt; export MASTER=yarn-client&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Nov 2016 17:29:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP-Zeppelin-Notebook-Livy-Spark-R-quot-requirement-failed/m-p/127024#M47462</guid>
      <dc:creator>rbr</dc:creator>
      <dc:date>2016-11-29T17:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: HDP, Zeppelin Notebook, Livy, Spark &amp; R: "requirement failed: sparkr.zip not found; cannot run sparkr application."</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP-Zeppelin-Notebook-Livy-Spark-R-quot-requirement-failed/m-p/127025#M47463</link>
      <description>&lt;P&gt;It looks like you have R installed; is it on all nodes in your cluster? There is also a requirement to set JAVA_HOME. &lt;/P&gt;&lt;P&gt;If you have access to Spark directly you might want to try accessing R from Spark first, to help isolate the issue. &lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_spark-component-guide/content/ch_spark-r.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_spark-component-guide/content/ch_spark-r.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 07:37:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP-Zeppelin-Notebook-Livy-Spark-R-quot-requirement-failed/m-p/127025#M47463</guid>
      <dc:creator>lgeorge</dc:creator>
      <dc:date>2016-11-30T07:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: HDP, Zeppelin Notebook, Livy, Spark &amp; R: "requirement failed: sparkr.zip not found; cannot run sparkr application."</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP-Zeppelin-Notebook-Livy-Spark-R-quot-requirement-failed/m-p/127026#M47464</link>
      <description>&lt;P&gt;After further investigation I found the solution.&lt;/P&gt;&lt;P&gt;The installation of Spark was missing the archive "sparkr.zip". This archive should be in the folder "SPARK_HOME/R/lib". I downloaded a pre-build version of Spark for Hadoop 2.6 from &lt;A href="http://spark.apache.org/downloads.html" target="_blank"&gt;http://spark.apache.org/downloads.html&lt;/A&gt;. The download (spark-1.6.2-bin-hadoop2.6.tgz) contains the folder "R/lib" and it contains the archive "sparkr.zip". I moved the folder into the installation path of Spark on my HDP cluster. After restarting the Spark service I was able to use the prefix "%livy.sparkr" in Zeppelin Notebook.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 15:53:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDP-Zeppelin-Notebook-Livy-Spark-R-quot-requirement-failed/m-p/127026#M47464</guid>
      <dc:creator>rbr</dc:creator>
      <dc:date>2016-11-30T15:53:36Z</dc:date>
    </item>
  </channel>
</rss>

