Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

R package installtion

avatar
Expert Contributor

Hi in my new project i have HDP 2.1.5 and R package is installed already they want me to add some more R packages i have download all required R packages..how can i add this new packages to existing R..actually i am not aware of R..plz suggest me..

tq

1 ACCEPTED SOLUTION

avatar
Super Guru

@sankar rao

Generally to install R dependent packages we use below command on R shell.

install.packages(c("rJava", "Rcpp", "RJSONIO", "bitops", "digest","functional", "stringr", "plyr", "reshape2", "dplyr","R.methodsS3", "caTools", "Hmisc"))

For R hdfs packages you need to download the package and installed it like below.

Download packages rhdfs, rhbase, rmr2 and plyrmr from https://github.com/RevolutionAnalytics/RHadoop/wiki and install them

install.packages("<path>/rhdfs_<version>.tar.gz", repos=NULL, type="source")
install.packages("<path>/rmr2<version>.tar.gz", repos=NULL, type="source")
install.packages("<path>plyrmr_<version>.tar.gz", repos=NULL, type="source")
install.packages("<path>/rhbase_<version>.tar.gz", repos=NULL, type="source")

Here is good doc link for R on hadoop.

http://www.rdatamining.com/big-data/r-hadoop-setup-guide

View solution in original post

2 REPLIES 2

avatar
Super Guru

@sankar rao

Generally to install R dependent packages we use below command on R shell.

install.packages(c("rJava", "Rcpp", "RJSONIO", "bitops", "digest","functional", "stringr", "plyr", "reshape2", "dplyr","R.methodsS3", "caTools", "Hmisc"))

For R hdfs packages you need to download the package and installed it like below.

Download packages rhdfs, rhbase, rmr2 and plyrmr from https://github.com/RevolutionAnalytics/RHadoop/wiki and install them

install.packages("<path>/rhdfs_<version>.tar.gz", repos=NULL, type="source")
install.packages("<path>/rmr2<version>.tar.gz", repos=NULL, type="source")
install.packages("<path>plyrmr_<version>.tar.gz", repos=NULL, type="source")
install.packages("<path>/rhbase_<version>.tar.gz", repos=NULL, type="source")

Here is good doc link for R on hadoop.

http://www.rdatamining.com/big-data/r-hadoop-setup-guide

avatar
Expert Contributor

Thanks you for reply Jitendra Yadav so i my case i should go for second one like this ?

  1. install.packages("<path>/rhdfs_<version>.tar.gz", repos=NULL, type="source")

and one more thing Jitendra Yadav how can open R GUI through my server CLI?

thanks