Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1. Rhdfs
2. Rmr
3. Rhbase
Rhdfs:
Rmr:
2. Installing R
rJava
RJSONIO
itertools
digest
Rcpp
httr
functional
devtools
plyr
reshape2
We will discuss installing of all this packages in two different ways. They
are as follows:
Link: https://drive.google.com/open?
id=0B5dejdhAYHztRkgzbGZOeUdXdVE
After downloading the packages, extract them and use the below
command:
1 unzip Rhadoop_packages.zip
Now we will be Installing rJava ,refer the below command for the same.
1 sudo R CMD INSTALL rJava_0.9-6.tar.gz
We need to follow the same command to install all the other required packages .
1 sudo R CMD INSTALL <package.rar>
For accessing HDFS we should start hadoop demons, make sure that all your HDFS daemons
are up.
After loading the rhdfs package we should initiate the connection using hdfs.init()
File manipulation
hdfs.put: This is used to copy files from the local filesystem to the HDFS
filesystem.
1 hdfs.put('localfile source','hdfs destination')
Hope this blog helped you in learning how to integrate R with Hadoop.
Keep visiting our site for more updates on BigData and other
technologies. Click Here to learn more.