I installed R on CentOS 6.3 running Hortonworks HDP 2.0.6. After installing RHDFS and RMR2, when I run the command R CMD check rhdfs_1.0.8.tar.gz, I get the following error essage:
## delete multiple files
> hdfs.delete(c(file.path("/tmp", basename(foo1)), file.path("/tmp", basename(foo2))))
13/12/11 20:51:03 INFO fs.TrashPolicyDefault: Namenode trash configuration: Deletion interval = 21600000 minutes, Emptier interval = 0 minutes.
13/12/11 20:51:03 WARN fs.TrashPolicyDefault: Can't create trash directory: hdfs://ip-10-0-0-218.ec2.internal:8020/user/root/.Trash/Current/tmp
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.io.IOException: Failed to move to trash: hdfs://ip-10-0-0-218.ec2.internal:8020/tmp/file70d8490d5008
Calls: hdfs.delete ... <Anonymous> -> .jrcall -> .jcall -> .jcheck -> .Call
Execution halted