<?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: Getting null device message while displaying ggplots in Zeppelin 0.6.0 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Getting-null-device-message-while-displaying-ggplots-in/m-p/142343#M104936</link>
    <description>&lt;P&gt;&lt;A href="https://support.rstudio.com/hc/en-us/articles/200488548-Problem-with-Plots-or-Graphics-Device"&gt;https://support.rstudio.com/hc/en-us/articles/200488548-Problem-with-Plots-or-Graphics-Device&lt;/A&gt;&lt;/P&gt;&lt;P&gt;post your notebook&lt;/P&gt;&lt;P&gt;also make sure you are doing your code in a &lt;/P&gt;&lt;P&gt;%spark.r&lt;/P&gt;&lt;P&gt;hist(ed) is the format&lt;/P&gt;&lt;P&gt;Almost all issues with the R interpreter turned out to be caused by an incorrectly set &lt;CODE&gt;SPARK_HOME&lt;/CODE&gt;. The R interpreter must load a version of the &lt;CODE&gt;SparkR&lt;/CODE&gt; package that matches the running version of Spark, and it does this by searching &lt;CODE&gt;SPARK_HOME&lt;/CODE&gt;. If Zeppelin isn't configured to interface with Spark in &lt;CODE&gt;SPARK_HOME&lt;/CODE&gt;, the R interpreter will not be able to connect to Spark.&lt;/P&gt;&lt;P&gt;see:   &lt;A href="https://github.com/datalayer/zeppelin-datalayer/issues/2"&gt;https://github.com/datalayer/zeppelin-datalayer/issues/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Try to run this notebook&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/zeppelin/blob/de4049725d2d9565f04a981c34c3dbe18e0ecd35/notebook/2BWJFTXKJ/note.json" target="_blank"&gt;https://github.com/apache/zeppelin/blob/de4049725d2d9565f04a981c34c3dbe18e0ecd35/notebook/2BWJFTXKJ/note.json&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Dec 2016 13:06:54 GMT</pubDate>
    <dc:creator>TimothySpann</dc:creator>
    <dc:date>2016-12-19T13:06:54Z</dc:date>
    <item>
      <title>Getting null device message while displaying ggplots in Zeppelin 0.6.0</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-null-device-message-while-displaying-ggplots-in/m-p/142340#M104933</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I am trying to display ggplots from Zeppelin Livy SparkR interpreter. I get something like &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/10175-ggplot-nullmessage.png"&gt;ggplot-nullmessage.png&lt;/A&gt;. I also tried using ggsave to save the plots to the disk and it is working fine,&lt;/P&gt;&lt;PRE&gt;ggplot(delay_r, aes(x=STATUS,y=Percentage,fill=STATUS)) + geom_bar(stat="identity") + geom_text(aes(label=STATUS), size = 7) + ylim(0,100)
ggsave(file="/tmp/plot.png")
&lt;/PRE&gt;&lt;P&gt;Can someone please guide me to display this plot in Zeppelin only?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 06:18:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-null-device-message-while-displaying-ggplots-in/m-p/142340#M104933</guid>
      <dc:creator>mrizvi</dc:creator>
      <dc:date>2016-12-08T06:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting null device message while displaying ggplots in Zeppelin 0.6.0</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-null-device-message-while-displaying-ggplots-in/m-p/142341#M104934</link>
      <description>&lt;P&gt;Please help guys, I am kind of stuck here.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 01:31:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-null-device-message-while-displaying-ggplots-in/m-p/142341#M104934</guid>
      <dc:creator>mrizvi</dc:creator>
      <dc:date>2016-12-13T01:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting null device message while displaying ggplots in Zeppelin 0.6.0</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-null-device-message-while-displaying-ggplots-in/m-p/142342#M104935</link>
      <description>&lt;P&gt;Make sure R and it's libraries are installed:   &lt;A href="https://zeppelin.apache.org/docs/0.6.0/interpreter/r.html" target="_blank"&gt;https://zeppelin.apache.org/docs/0.6.0/interpreter/r.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;stop zeppelin!&lt;/P&gt;&lt;P&gt;yum install R R-devel libcurl-devel openssl-devel&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;+ devtools with `R -e "install.packages('devtools', repos = 'http://cran.us.r-project.org')"`
+ knitr with `R -e "install.packages('knitr', repos = 'http://cran.us.r-project.org')"`
+ ggplot2 with `R -e "install.packages('ggplot2', repos = 'http://cran.us.r-project.org')"`
+ Other vizualisation librairies: `R -e "install.packages(c('devtools','mplot', 'googleVis'), repos = 'http://cran.us.r-project.org'); require(devtools); install_github('ramnathv/rCharts')"`&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;then restart zeppelin&lt;/P&gt;&lt;P&gt;test R scripts from the command line&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 13:02:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-null-device-message-while-displaying-ggplots-in/m-p/142342#M104935</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2016-12-19T13:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting null device message while displaying ggplots in Zeppelin 0.6.0</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-null-device-message-while-displaying-ggplots-in/m-p/142343#M104936</link>
      <description>&lt;P&gt;&lt;A href="https://support.rstudio.com/hc/en-us/articles/200488548-Problem-with-Plots-or-Graphics-Device"&gt;https://support.rstudio.com/hc/en-us/articles/200488548-Problem-with-Plots-or-Graphics-Device&lt;/A&gt;&lt;/P&gt;&lt;P&gt;post your notebook&lt;/P&gt;&lt;P&gt;also make sure you are doing your code in a &lt;/P&gt;&lt;P&gt;%spark.r&lt;/P&gt;&lt;P&gt;hist(ed) is the format&lt;/P&gt;&lt;P&gt;Almost all issues with the R interpreter turned out to be caused by an incorrectly set &lt;CODE&gt;SPARK_HOME&lt;/CODE&gt;. The R interpreter must load a version of the &lt;CODE&gt;SparkR&lt;/CODE&gt; package that matches the running version of Spark, and it does this by searching &lt;CODE&gt;SPARK_HOME&lt;/CODE&gt;. If Zeppelin isn't configured to interface with Spark in &lt;CODE&gt;SPARK_HOME&lt;/CODE&gt;, the R interpreter will not be able to connect to Spark.&lt;/P&gt;&lt;P&gt;see:   &lt;A href="https://github.com/datalayer/zeppelin-datalayer/issues/2"&gt;https://github.com/datalayer/zeppelin-datalayer/issues/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Try to run this notebook&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/zeppelin/blob/de4049725d2d9565f04a981c34c3dbe18e0ecd35/notebook/2BWJFTXKJ/note.json" target="_blank"&gt;https://github.com/apache/zeppelin/blob/de4049725d2d9565f04a981c34c3dbe18e0ecd35/notebook/2BWJFTXKJ/note.json&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 13:06:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-null-device-message-while-displaying-ggplots-in/m-p/142343#M104936</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2016-12-19T13:06:54Z</dc:date>
    </item>
  </channel>
</rss>

