nexr / RHive

RHive is an R extension facilitating distributed computing via Apache Hive.
http://nexr.github.io/RHive
122 stars 63 forks source link

rhive.connect() Error: java.io.IOException: Create failed for file... #86

Open mammask opened 9 years ago

mammask commented 9 years ago

Hi all,

I am facing the following issue:

Sys.setenv(HADOOP_HOME="/opt/mapr/hadoop/hadoop-0.20.2/")
Sys.setenv(HADOOP_CMD="/opt/mapr/hadoop/hadoop-0.20.2/bin/hadoop") Sys.setenv(HADOOP_CONF="/opt/mapr/hadoop/conf") Sys.setenv(HADOOP_STREAMING="/opt/mapr/hadoop/hadoop-0.20.2/contrib/streaming/hadoop-0.20.2-dev-streaming.jar") Sys.setenv(HADOOP_CONF_DIR="/opt/mapr/hadoop/hadoop-0.20.2/conf/") Sys.setenv(HIVE_HOME="/opt/mapr/hive") Sys.setenv(RHIVE_FS_HOME="/opt/mapr/hive/hive-0.13")

library(RHive) rhive.init(hiveHome="/opt/mapr/hive/hive-0.13", hiveLib=NULL, hadoopHome="/opt/mapr/hadoop/hadoop-0.20.2/", hadoopConf=NULL, hadoopLib=NULL, verbose=F) rhive.env(ALL=FALSE) rhive.connect(host="hostname", port=10000,hiveServer2=NA,defaultFS=NULL,updateJar=FALSE, user=NULL, password=NULL)

And I am getting the following error:

Error: java.io.IOException: Create failed for file: /opt/mapr/hive/hive-0.13/lib/2.0-0.2/rhive_udf.jar, error: Permission denied (13)

Any Ideas?

Thanks!

ghost commented 9 years ago

I think this has to do with HDFS permission, especially if it happens only when trying to create a new table as a result of a query.