有人试图将R解释器添加到Apache Zeppelin上吗? [英] Anyone tried to add R interpreter onto Apache Zeppelin?

查看:110
本文介绍了有人试图将R解释器添加到Apache Zeppelin上吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Apache Zeppelin进行一些数据可视化工作,只是很好奇为什么没有人为R提供解释器.从文档中看来,创建一个新的解释器应该不太难,但是如果真的很容易,应该已经有各种语言的口译员,所以我错了吗?

I'm currently using Apache Zeppelin to do some data visualization stuff, just curious why there're no one providing an interpreter for R. From the documentation it seems that creating a new interpreter shouldn't be too hard, but if it is really that easy, there should already be the interpreters for various languages, so am I wrong?

推荐答案

编辑

在新的齐柏林飞艇中,集成了两个R解释器.因此,对于最新版本,我们不需要执行以下步骤.

In new zeppelin, two R Interpreters are integrated into it. So we don't need below steps for latest versions.

由于未发布0.6.0,我们需要对其进行克隆和构建

Since 0.6.0 is not released we need to clone and built it

R解释器1(来自数据层)

$git clone https://github.com/apache/incubator-zeppelin.git
$mvn clean package -Pspark-1.6 -Ppyspark -Phadoop-2.4 -Psparkr -DskipTests

R解释器2

$git clone https://github.com/apache/incubator-zeppelin.git
$mvn clean package -Pspark-1.6 -Ppyspark -Phadoop-2.4 -Pr -DskipTests

有关这些R解释器的更多信息,请参见这里

More information about these R Interpreters can be found here

对于低于0.6.0的齐柏林飞艇,请遵循LaurentH步骤

从数据层尝试此R解释器.我们已经尝试过并能够使用它做东西.

Try this R Interpreter from datalayer. We've tried it and able to do stuffs with it.

我们能够连接spark并使用它进行可视化. 说,有一些小故障,如

We were able to connect spark and do visualization using it. Said that, there are some few glitches like

  1. 它没有表格支持.请参考 https://github.com/datalayer/zeppelin-R/issues/1
  2. 无法使用默认的Spark上下文.您必须在R解释器中创建一个Spark上下文并使用它

添加R解释器的步骤

  1. git clone https://github.com/datalayer/zeppelin-R.git
  2. 导航至Zeppelin-R并运行mvn install
  3. 在孵化器-齐柏林飞艇/解释器中创建R文件夹
  4. 将Zeppelin-R/target/zeppelin-R-1.0.0-SNAPSHOT.jar复制到孵化器-zeppelin/interpreter/R
  5. https下载REngine jar ://oss.sonatype.org/content/repositories/snapshots/org/rosuda/REngine/REngine/2.1.1-SNAPSHOT/并将其添加到incubator-zeppelin/interpreter/R文件夹中
  6. https下载RServe jar. ://oss.sonatype.org/content/repositories/snapshots/org/rosuda/REngine/Rserve/1.8.2-SNAPSHOT/并将其添加到incubator-zeppelin/interpreter/R文件夹中
  7. 将incubator-zeppelin/conf/zeppelin-env.sh.template复制到incubator-zeppelin/conf/zeppelin-site.xml
  8. 编辑incubator-zeppelin/conf/zeppelin-site.xml并将"io.datalayer.zeppelin.R.RInterpreter"添加到zeppelin.interpreters
  9. 重新启动齐柏林飞艇
  10. 打开Zeppelin用户界面,然后单击解释器"
  11. 点击创建"按钮并添加R解释器
  12. 现在您可以在笔记本中使用R解释器
  1. git clone https://github.com/datalayer/zeppelin-R.git
  2. Navigate to zeppelin-R and run mvn install
  3. Create R folder in incubator-zeppelin/interpreter
  4. Copy zeppelin-R/target/zeppelin-R-1.0.0-SNAPSHOT.jar to incubator-zeppelin/interpreter/R
  5. Download REngine jar from https://oss.sonatype.org/content/repositories/snapshots/org/rosuda/REngine/REngine/2.1.1-SNAPSHOT/ and add it in incubator-zeppelin/interpreter/R folder
  6. Download RServe jar from https://oss.sonatype.org/content/repositories/snapshots/org/rosuda/REngine/Rserve/1.8.2-SNAPSHOT/ and add it in incubator-zeppelin/interpreter/R folder
  7. Copy incubator-zeppelin/conf/zeppelin-env.sh.template to incubator-zeppelin/conf/zeppelin-site.xml
  8. Edit incubator-zeppelin/conf/zeppelin-site.xml and add "io.datalayer.zeppelin.R.RInterpreter" to zeppelin.interpreters
  9. Restart zeppelin
  10. Open Zeppelin UI and click Interpreter
  11. Click "Create" button and add R interpreter
  12. Now you can use R interpreter in notebook

希望有帮助

这篇关于有人试图将R解释器添加到Apache Zeppelin上吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆