<?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: Zeppelin R Interpreter in Master fails in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-R-Interpreter-in-Master-fails/m-p/152015#M32674</link>
    <description>&lt;P&gt;Found that the options -Pspark-X.X &amp;amp; -Psparkr are required for the build&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2016 21:24:31 GMT</pubDate>
    <dc:creator>wsalazar</dc:creator>
    <dc:date>2016-06-23T21:24:31Z</dc:date>
    <item>
      <title>Zeppelin R Interpreter in Master fails</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-R-Interpreter-in-Master-fails/m-p/152014#M32673</link>
      <description>&lt;P&gt;After building Zeppelin 0.6.0 and I test the %spark.r %r interpreters and receive the error shown in &lt;A href="https://issues.apache.org/jira/browse/ZEPPELIN-983" target="_blank"&gt;https://issues.apache.org/jira/browse/ZEPPELIN-983&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It seems to boil down to class not found for SparkRInterpreter&lt;/P&gt;&lt;P&gt;I use the most simple build process as it seems there is no need to use -Pr or Psparkr anymore&lt;/P&gt;&lt;PRE&gt;git clone &lt;A href="https://github.com/apache/zeppelin" target="_blank"&gt;https://github.com/apache/zeppelin&lt;/A&gt;
cd zeppelin
mvn clean package -DskipTests&lt;/PRE&gt;&lt;P&gt;from zeppelin-interpreter-spark-root-hostname.log&lt;/P&gt;&lt;PRE&gt;ERROR [2016-06-17 04:16:18,990] ({pool-1-thread-2} ProcessFunction.java[process]:41) - Internal error processing createInterpreter
org.apache.thrift.TException: java.lang.ClassNotFoundException: org.apache.zeppelin.spark.SparkRInterpreter
        at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer.createInterpreter(RemoteInterpreterServer.java:175)
        at org.apache.zeppelin.interpreter.thrift.RemoteInterpreterService$Processor$createInterpreter.getResult(RemoteInterpreterService.java:1409)
        at org.apache.zeppelin.interpreter.thrift.RemoteInterpreterService$Processor$createInterpreter.getResult(RemoteInterpreterService.java:1394)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
        at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.apache.zeppelin.spark.SparkRInterpreter
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:190)
        at org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer.createInterpreter(RemoteInterpreterServer.java:148)
        ... 8 more&lt;/PRE&gt;&lt;P&gt;When I check the dependency jars I find no class SparkRInterpreter though it does exist in the src folder of ~/zeppelin/spark&lt;/P&gt;&lt;PRE&gt;[root@hostname zeppelin]# jar -tf spark/target/zeppelin-spark-0.6.0-SNAPSHOT.jar | grep SparkR


[root@hostname zeppelin]# ls spark/src/main/java/org/apache/zeppelin/spark/ | grep SparkR
SparkRInterpreter.java&lt;/PRE&gt;&lt;P&gt;Every other interpreter works as expected and can be found in the same dependency jar for Spark Interpreter &lt;/P&gt;&lt;PRE&gt;[root@rings hostname]# jar -tf spark/target/zeppelin-spark-0.6.0-SNAPSHOT.jar | grep PySpark
org/apache/zeppelin/spark/PySparkInterpreter.class


org/apache/zeppelin/spark/PySparkInterpreter$PythonInterpretRequest.class
[root@rings hostname]# jar -tf spark/target/zeppelin-spark-0.6.0-SNAPSHOT.jar | grep SparkSql
org/apache/zeppelin/spark/SparkSqlInterpreter.class


[root@rings hostname]# jar -tf spark/target/zeppelin-spark-0.6.0-SNAPSHOT.jar | grep DepInterpreter
org/apache/zeppelin/spark/DepInterpreter.class&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Jun 2016 02:51:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-R-Interpreter-in-Master-fails/m-p/152014#M32673</guid>
      <dc:creator>wsalazar</dc:creator>
      <dc:date>2016-06-23T02:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin R Interpreter in Master fails</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-R-Interpreter-in-Master-fails/m-p/152015#M32674</link>
      <description>&lt;P&gt;Found that the options -Pspark-X.X &amp;amp; -Psparkr are required for the build&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 21:24:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-R-Interpreter-in-Master-fails/m-p/152015#M32674</guid>
      <dc:creator>wsalazar</dc:creator>
      <dc:date>2016-06-23T21:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin R Interpreter in Master fails</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-R-Interpreter-in-Master-fails/m-p/152016#M32675</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/234/wsalazar.html" nodeid="234"&gt;@wsalazar&lt;/A&gt; This is what i use to build the zeppelin:&lt;/P&gt;&lt;PRE&gt;mvn clean package -Pspark-1.X -Dhadoop.version=2.X.0 -Phadoop-2.X -Pyarn -DskipTests&lt;/PRE&gt;&lt;P&gt;swap .X for the version you are building against.&lt;/P&gt;&lt;P&gt;It makes it YARN compatible.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 02:51:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-R-Interpreter-in-Master-fails/m-p/152016#M32675</guid>
      <dc:creator>azeltov</dc:creator>
      <dc:date>2016-08-02T02:51:04Z</dc:date>
    </item>
  </channel>
</rss>

