Support Questions

Find answers, ask questions, and share your expertise

No R interpreter in Zeppelin, HDP 2.5

avatar
Explorer

Version Information:

CentOS release 6.7 (Final)
Ambari 2.4.0.1
HDP 2.5.0.0
Zeppelin 0.6.0.2.5.0.0-1245
R version 3.2.3 is installed on all data nodes.

I followed the below directions to install Zeppelin on data node 01.

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_zeppelin-component-guide/content/ch_over...

When I view the interpreters tab, the following interpreters appear.

- angular - jdbc - livy - markdown - sh - spark

By using the example notebooks, I can see that the %sh, %md, and %pyspark interpreters work, but no %r interpreter exists.

No %r interpreter.

7402-selection-003.png

No %sparkr interpreter.

7403-selection-004.png

Does the ambari deployed Zeppelin not support R? This says it does. https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_zeppelin-component-guide/content/using-i...

Or is there some hook that only invokes it if it detects a certain version ?

1 ACCEPTED SOLUTION

avatar
Expert Contributor

@justin kuspa

In HDP 2.5, r is provided in Zeppelin via the Livy interpreter.

Try using the following:

%livy.sparkr

Note, you will need to make sure you have R installed on your machine first.

If you haven't already, install it with the following (on all nodes):

yum install R R-devel libcurl-devel openssl-devel

Validate it was installed correctly:

R -e "print(1+1)"

Once it is installed, test out sparkr in Zeppelin with Livy to confirm it is working:

%livy.sparkr
foo <- TRUE
print(foo)

View solution in original post

15 REPLIES 15

avatar
Super Collaborator

I'll follow up on that and correct or clarify.

avatar
Super Collaborator

Quick update: the R interpreter has been removed from the list for now. SparkR via Livy remains on the list.

avatar
Explorer

Thanks!

avatar

Out of curiosity, why is R/SparkR only provided through Livy in HDP 2.5 as it is provided as standard with the standalone Zeppelin package? Thanks.

avatar

Hi, @Laurence Da Luz

I have some problem

I use

%livy.sparkr

but it tell me that

"Cannot start sparkr."

how can I solve it?

where can I check SparkR has installed?

avatar
Contributor

@lgeorge @justin kuspa @Rick Moritz

Any further updates on why the R interpreter was removed in 2016? Will functionality differ from RStudio in terms of running R Code through the Livy interpreter in Zeppelin?