Install RHadoop
install.packages(c('RCurl','rJava','RJSONIO', 'itertools', 'digest','Rcpp','httr','functional','devtools','plyr','reshape2','R.methodsS3','hydroPSO','pryr',"bitops","functional","reshape2","stringr","caTools"))
Sys.setenv(HADOOP_CMD="/usr/bin/hadoop")
Sys.setenv(HADOOP_STREAMING="/usr/hdp/2.2.0.0-2041/hadoop-mapreduce/hadoop-streaming.jar")
library("devtools")
install_github("RevolutionAnalytics/rmr2/pkg")
install_github("RevolutionAnalytics/rhdfs/pkg")
install_github("RevolutionAnalytics/plyrmr/pkg")
install_github("RevolutionAnalytics/ravro/pkg/ravro")