You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run examples from the RHive manual (I have just installed the latest version from github). The connection works, the UDF function gets installed into correct location (/rhive/udf/myuserid/sumCrimes.RData) but rhive.query fails:
rhive.query("SELECT urbanpop, R('sumCrimes', murder, assault, rape, 0.0) FROM usarrests")
Error: java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask
The job's log file shows that it tries to load the file not from my user's subdirectory but from /rhive/udf:
Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: java.io.FileNotFoundException: Requested file /rhive/udf/sumCrimes.RData does not exist.
When I copied the sumCrimes.RData manually to that directory, everything worked.
I am trying to run examples from the RHive manual (I have just installed the latest version from github). The connection works, the UDF function gets installed into correct location (/rhive/udf/myuserid/sumCrimes.RData) but rhive.query fails:
The job's log file shows that it tries to load the file not from my user's subdirectory but from /rhive/udf:
When I copied the sumCrimes.RData manually to that directory, everything worked.
Here is what rhive.env() returns:
Here is the value of mapred.child.env on the nodes (from the Job Configuration page):
RHIVE_UDF_DIR=/rhive/udf/myuserid
The text was updated successfully, but these errors were encountered: