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.sql.SQLException: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask #68

Open
montxo5 opened this issue Aug 29, 2014 · 2 comments

Comments

@montxo5
Copy link

montxo5 commented Aug 29, 2014

Hi,

I'm trying to use RHive and connect but it throws this error:
Error: java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask

My code is:

library(RHive)
Sys.setenv("HIVE_HOME" = "/opt/cloudera/parcels/CDH-4.6.0-1.cdh4.6.0.p0.26/lib/hive/")
Sys.setenv("HADOOP_HOME" = "/opt/cloudera/parcels/CDH-4.6.0-1.cdh4.6.0.p0.26/lib/hadoop/")
Sys.setenv("HADOOP_CONF_DIR" = "/opt/cloudera/parcels/CDH-4.6.0-1.cdh4.6.0.p0.26/etc/hadoop/")
Sys.setenv("RHIVE_FS_HOME" ="/rhive")

rhive.init(hiveLib = "../../rstudio/R/libs/hive",hadoopConf = "/opt/cloudera/parcels/CDH-4.6.0-1.cdh4.6.0.p0.26/etc/hadoop/")
rhive.env()
rhive.connect(host = "xx.xx.xx.xx",port = "10000",user = "xxxx", hiveServer2 = TRUE)

Is there any way to know the exact error?
Thanks.

@samuelzhou
Copy link

Maybe RHive is trying to "create function" for UDFs. You need to check the log of HiveServer2 to find which statement is failed to execute.

@ghost
Copy link

ghost commented Jul 23, 2015

We've had a similar issue that arose due to R not having sufficient permissions in hdfs.

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

2 participants