<?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: Cannot find SparkR executable running R snippet from Hue Notebook in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/40640#M23007</link>
    <description>&lt;P&gt;Also, this happens in both yarn and process modes. Appreciate any help!&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2016 17:27:01 GMT</pubDate>
    <dc:creator>BhushanK</dc:creator>
    <dc:date>2016-05-09T17:27:01Z</dc:date>
    <item>
      <title>Cannot find SparkR executable running R snippet from Hue Notebook</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/40573#M23006</link>
      <description>&lt;P&gt;I am running hadoop 2.7.2 with spark 1.6.1 on Yarn. I have built hue and livy from the source at &lt;A href="http://github.com/cloudera/hue." target="_blank"&gt;http://github.com/cloudera/hue.&lt;/A&gt; I built livy against spark 1.6.1 using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mvn -DskipTests -Dspark.version=1.6.1 clean package&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run the Hue Notebook Sample (or my simple own code). I am able to run hive queries, pySpark, scala, but not R. I get the following error in the container log on R snippets:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Exception thrown when initializing server: java.lang.Exception: Cannot find sparkR executable&lt;/PRE&gt;&lt;P&gt;SPARK_HOME and other environment variables are set. I am also able to run sparkR shell on yarn or local from the terminal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figured the exception was coming from hue/apps/spark/java/livy-repl/src/main/scala/com/cloudera/hue/livy/repl/sparkr/SparkRInterpreter.scala as it was not finding the executable. I replaced the "sparkR" with the complete path to sparkR to see what happens, built again, but then I get the following error in the container log, after waiting 10000ms for Spark Context to Initialize. Appreciate any hints on what might be going wrong? I do not see any other useful logs on yarn or spark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/tmp/hadoop-root/nm-local-dir/usercache/root/filecache/18/spark-assembly-1.6.1-hadoop2.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/mydh/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
16/05/07 15:59:55 INFO yarn.ApplicationMaster: Registered signal handlers for [TERM, HUP, INT]
16/05/07 15:59:56 INFO yarn.ApplicationMaster: ApplicationAttemptId: appattempt_1462660966341_0003_000001
16/05/07 15:59:57 INFO spark.SecurityManager: Changing view acls to: root
16/05/07 15:59:57 INFO spark.SecurityManager: Changing modify acls to: root
16/05/07 15:59:57 INFO spark.SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(root); users with modify permissions: Set(root)
16/05/07 15:59:57 INFO yarn.ApplicationMaster: Starting the user application in a separate Thread
16/05/07 15:59:57 INFO yarn.ApplicationMaster: Waiting for spark context initialization
16/05/07 15:59:57 INFO yarn.ApplicationMaster: Waiting for spark context initialization ... 
16/05/07 15:59:57 INFO util.log: Logging initialized @2184ms
16/05/07 15:59:57 INFO server.Server: jetty-9.2.z-SNAPSHOT
16/05/07 15:59:57 INFO servlet.ScalatraListener: The cycle class name from the config: com.cloudera.hue.livy.repl.ScalatraBootstrap
16/05/07 15:59:57 INFO servlet.ScalatraListener: Initializing life cycle class: ScalatraBootstrap
16/05/07 15:59:57 ERROR sparkr.SparkRInterpreter: Process has died with 127
16/05/07 15:59:57 INFO repl.ScalatraBootstrap: Notifying http://127.0.0.1:8998/sessions/1/callback that we're up
16/05/07 15:59:57 INFO handler.ContextHandler: Started c.c.h.j.s.ServletContextHandler@168d645d{/,file:/tmp/hadoop-root/nm-local-dir/usercache/root/appcache/application_1462660966341_0003/container_1462660966341_0003_01_000001/src/main/com/cloudera/hue/livy/repl,AVAILABLE}
16/05/07 15:59:57 INFO server.ServerConnector: Started ServerConnector@1bd85653{HTTP/1.1}{0.0.0.0:35014}
16/05/07 15:59:57 INFO server.Server: Started @2697ms
16/05/07 15:59:57 INFO livy.WebServer: Starting server on 35014
16/05/07 16:00:07 INFO yarn.ApplicationMaster: Waiting for spark context initialization ... 
16/05/07 16:00:17 INFO yarn.ApplicationMaster: Waiting for spark context initialization ... 
16/05/07 16:00:27 INFO yarn.ApplicationMaster: Waiting for spark context initialization ... 
16/05/07 16:00:37 INFO yarn.ApplicationMaster: Waiting for spark context initialization ... 
16/05/07 16:00:47 INFO yarn.ApplicationMaster: Waiting for spark context initialization ... 
16/05/07 16:00:57 INFO yarn.ApplicationMaster: Waiting for spark context initialization ... 
16/05/07 16:01:07 INFO yarn.ApplicationMaster: Waiting for spark context initialization ... 
16/05/07 16:01:17 INFO yarn.ApplicationMaster: Waiting for spark context initialization ... 
16/05/07 16:01:27 INFO yarn.ApplicationMaster: Waiting for spark context initialization ... 
16/05/07 16:01:37 ERROR yarn.ApplicationMaster: SparkContext did not initialize after waiting for 100000 ms. Please check earlier log output for errors. Failing the application.
16/05/07 16:01:37 INFO yarn.ApplicationMaster: Final app status: FAILED, exitCode: 13, (reason: Timed out waiting for SparkContext.)
16/05/07 16:01:37 INFO util.ShutdownHookManager: Shutdown hook called
16/05/07 16:01:37 INFO server.ServerConnector: Stopped ServerConnector@1bd85653{HTTP/1.1}{0.0.0.0:0}
16/05/07 16:01:37 INFO servlet.ScalatraListener: Destroying life cycle class: com.cloudera.hue.livy.repl.ScalatraBootstrap
16/05/07 16:01:37 INFO handler.ContextHandler: Stopped c.c.h.j.s.ServletContextHandler@168d645d{/,file:/tmp/hadoop-root/nm-local-dir/usercache/root/appcache/application_1462660966341_0003/container_1462660966341_0003_01_000001/src/main/com/cloudera/hue/livy/repl,UNAVAILABLE}&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:17:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/40573#M23006</guid>
      <dc:creator>BhushanK</dc:creator>
      <dc:date>2022-09-16T10:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find SparkR executable running R snippet from Hue Notebook</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/40640#M23007</link>
      <description>&lt;P&gt;Also, this happens in both yarn and process modes. Appreciate any help!&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 17:27:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/40640#M23007</guid>
      <dc:creator>BhushanK</dc:creator>
      <dc:date>2016-05-09T17:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find SparkR executable running R snippet from Hue Notebook</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/40821#M23008</link>
      <description>&lt;P&gt;Update: Going back to Spark 1.5.0 solved the second problem (I read on another post that 1.6.1 is not supported in notebook). But I still had to change the path to the complete path for sparkR.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 16:47:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/40821#M23008</guid>
      <dc:creator>BhushanK</dc:creator>
      <dc:date>2016-05-13T16:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find SparkR executable running R snippet from Hue Notebook</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/40829#M23009</link>
      <description>&lt;P&gt;I made sparkR available in the path and it works. Also, had to go back to spark 1.5.0&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 04:56:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/40829#M23009</guid>
      <dc:creator>BhushanK</dc:creator>
      <dc:date>2016-05-14T04:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find SparkR executable running R snippet from Hue Notebook</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/40832#M23010</link>
      <description>&lt;P&gt;I'm happy to see you resolved the issue. Thanks for sharing the solution!&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2016 11:23:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/40832#M23010</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2016-05-14T11:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find SparkR executable running R snippet from Hue Notebook</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/44206#M23011</link>
      <description>&lt;P&gt;Hi &amp;nbsp;&lt;A href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/16372" target="_self"&gt;&lt;SPAN class=""&gt;BhushanK&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having the same problem that you reported in your first email.&lt;BR /&gt;Please could give all details, how do you pointed the sparkR path? What files have you configured?&lt;BR /&gt;Because I have tried and doesnt work.&lt;/P&gt;&lt;P&gt;I really appreciate your answer .&lt;BR /&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marcus&lt;/P&gt;&lt;P&gt;marcus@estanislao.com.br&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 16:43:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/44206#M23011</guid>
      <dc:creator>Estannislao</dc:creator>
      <dc:date>2016-08-22T16:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find SparkR executable running R snippet from Hue Notebook</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/44207#M23012</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/18223"&gt;@Estannislao﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like I noted, I had to go back to spark 1.5.0. Next, I added the complete path to spark/bin to my PATH environment variable. I did not have to change anything in code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhushan&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 16:53:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/44207#M23012</guid>
      <dc:creator>BhushanK</dc:creator>
      <dc:date>2016-08-22T16:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find SparkR executable running R snippet from Hue Notebook</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/44212#M23013</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;BhushanK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, How do you setup the path in hue.sh e hue.ini is it like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hue.sh&lt;/P&gt;&lt;P&gt;export HUE_HOME=/opt/mapr/hue/hue-3.9.0&lt;BR /&gt;export HADOOP_CONF_DIR=/opt/mapr/hadoop/hadoop-2.7.0/etc/hadoop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hue.ini&lt;/P&gt;&lt;P&gt;[spark]&lt;BR /&gt;livy_server_host=localhost&lt;BR /&gt;&lt;BR /&gt;# Configure livy to start with 'process', 'thread', or 'yarn' workers.&lt;BR /&gt;livy_server_session_kind=yarn&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 18:51:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cannot-find-SparkR-executable-running-R-snippet-from-Hue/m-p/44212#M23013</guid>
      <dc:creator>Estannislao</dc:creator>
      <dc:date>2016-08-22T18:51:25Z</dc:date>
    </item>
  </channel>
</rss>

