You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Mark Miller <ma...@gmail.com> on 2017/05/05 01:43:01 UTC

R dataframes printing as plain text

I'm new to Zeppelin, Spark and Scala

According to https://zeppelin.apache.org/docs/0.6.2/interpreter/r.html,
"If you return a data.frame, Zeppelin will attempt to display it using
Zeppelin's built-in visualizations"

But I am just getting a plain text dump from "mtcars"

What am I doing wrong?

thanks,
Mark

---   ---   ---

I installed zeppelin-0.7.1-bin-all.tgz on an Ubuntu 16 system with openjdk
version "1.8.0_121"

I installed spark-2.1.1-bin-hadoop2.7.tgz in /usr/local/share/spark

i.e., I can run
$ /usr/local/share/spark/spark-2.1.1-bin-hadoop2.7/bin/run-example SparkPi
10

I edited zeppelin-env.sh to say:
export SPARK_HOME=/usr/local/share/spark/spark-2.1.1-bin-hadoop2.7

I did
$ cp zeppelin-site.xml.template zeppelin-site.xml

and
$ ./bin/zeppelin-daemon.sh restart

Re: R dataframes printing as plain text

Posted by Jeff Zhang <zj...@gmail.com>.
I don't think it support R's dataframe. Not sure why the document says
it works, may it works before.

https://issues.apache.org/jira/browse/ZEPPELIN-1181





Mark Miller <ma...@gmail.com>于2017年5月5日周五 上午9:43写道:

> I'm new to Zeppelin, Spark and Scala
>
> According to https://zeppelin.apache.org/docs/0.6.2/interpreter/r.html,
> "If you return a data.frame, Zeppelin will attempt to display it using
> Zeppelin's built-in visualizations"
>
> But I am just getting a plain text dump from "mtcars"
>
> What am I doing wrong?
>
> thanks,
> Mark
>
> ---   ---   ---
>
> I installed zeppelin-0.7.1-bin-all.tgz on an Ubuntu 16 system with openjdk
> version "1.8.0_121"
>
> I installed spark-2.1.1-bin-hadoop2.7.tgz in /usr/local/share/spark
>
> i.e., I can run
> $ /usr/local/share/spark/spark-2.1.1-bin-hadoop2.7/bin/run-example SparkPi
> 10
>
> I edited zeppelin-env.sh to say:
> export SPARK_HOME=/usr/local/share/spark/spark-2.1.1-bin-hadoop2.7
>
> I did
> $ cp zeppelin-site.xml.template zeppelin-site.xml
>
> and
> $ ./bin/zeppelin-daemon.sh restart
>
>