Rstutio黑科技Sparklyr于Ubantu系统的部署安装与调试
2017-07-10 15:13
369 查看
配置镜像源
deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu zesty/ or deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu yakkety/ or deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu xenial/ or deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu trusty/ or deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu precise/
在 /etc/apt/sources.list 中添加以上条目之一,
<my.favorite.cran.mirror>
要改成连通性最好的镜像源,关于镜像源可以在R官网上找到
例如: https://mirrors.tuna.tsinghua.edu.cn/CRAN/
安装 R
sudo apt-get updatesudo apt-get install r-base
输入 R 测试
成功安装的话会出现如下字样
R version 3.4.1 (2017-06-30) -- "Single Candle" Copyright (C) 2017 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) ...... 用'demo()'来看一些示范程序,用'help()'来阅读在线帮助文件,或 用'help.start()'通过HTML浏览器来看帮助文件。 用'q()'退出R.
输入q() 退出R
安装Rstutio
sudo apt-get install gdebi-core wget https://download2.rstudio.org/rstudio-server-1.0.143-amd64.deb sudo gdebi rstudio-server-1.0.143-amd64.deb rstutio-server start
安装完成后通过host:8787打开ui页面
账号密码为linux的登陆账号密码,不能为root账号
登陆root
将/usr/local/lib/R/site-library目录的文件主赋给rstutio登陆账号
chown rstutio_login_user /usr/local/lib/R/site-library
在rstutio中输入 如下 安装sparklyr
install.packages("sparklyr")
输入如下命令,连接到本地或指定host的spark
library(sparklyr) sc <- spark_connect(master = "local")
远程链接Spark需要在spark环境中的 R配置文件 Renviron.site 中配置SPARK_HOME
例如:SPARK_HOME=/opt/spark/spark-2.0.0-bin-hadoop2.6
关于本地与集群链接spark http://spark.rstudio.com/deployment.html
关于sparklyr的安装与示例 http://spark.rstudio.com/
相关文章推荐
- jsp案例分析(一)-在线投票系统-1-部署安装调试
- ubuntu 下cobbler 安装调试与系统自动化部署
- BugFree基于XP系统的安装部署
- 怎样调试、部署Oxite 开源系统
- 基于Panabit免费流控系统的安装与部署
- Ubantu系统下安装Mysql问题:configure: error: No curses/termcap library found
- VS2005安装后,启动调试时,提示“无法启动程序 系统找不到指定文件”的解决方案
- Weblogic9与Hibernate应用系统的安装与部署
- centos5.4 64位系统安装部署squid
- xx系统安装部署报告
- Hadoop Hdfs 分布文件系统安装与部署
- Mac OS X: 系统部署后程序安装的用户提示
- 调试、部署Oxite 开源系统
- VS2008-其他引导程序包(安装部署项目的系统必备)
- 调试、部署Oxite 开源系统
- Exchange2003+SP2的部署和安装系统管理工具
- 网络分析系统安装部署介绍
- 调试、部署Oxite 开源系统
- ClickOnce部署出现 系统必备的安装位置未设置为组件供应商的网站,无法在磁盘上找到 dotNetFx40LP_Client_x86_x64cs.exe 问题的解决方案