Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mammask opened this issue Mar 31, 2015 · 1 comment
Open

Comments

@mammask
Copy link

mammask commented Mar 31, 2015

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
Copy link

ghost commented Jul 23, 2015

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.

@mammask mammask changed the title rhipe.connect() Error: java.io.IOException: Create failed for file... rhive.connect() Error: java.io.IOException: Create failed for file... Sep 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant