Hi,
Where can I change the username the HDFS is accessed with?
> hdfs.defaults("fs")
[1] "Java-Object{DFS[DFSClient[clientName=DFSClient_NONMAPREDUCE_1313042347_1, ugi=rstudio (auth:SIMPLE)]]}"
It is using HDFS with username "rstudio".
As a result I obviously get an error (admin is the owner here):
> hdfs.mkdir("/home/rstudio/rstudiocsv")
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
org.apache.hadoop.security.AccessControlException: Permission denied: user=rstudio, access=WRITE, inode="/":hdfs:supergroup:drwxr-xr-x
The HDFS superuser is "hdfs".
How can I change this setting or have ability to switch between different accounts?
I would like to run hdfs.* commands with admin or hdfs username.
Cheers
S