I have a few hundreds of GB in my hdfs for userA (single node configuration). I would like to transfer all that data to userB wich will be more appropriate for the multi-node configuration I'm setting up.
I tried the following without success:
hadoop fs -chown -R userB:hadoop PATH
, when logged as userB I can't see the data, fine with userA although userB is set as hdfs owner.- tried
start-all.sh
as userB, needed to change a few access controls to that. Same thing I see nothing. - tried to force
<name>hadoop.tmp.dir</name>
on userA - tried to rename
hadoop-userA
dir intohadoop-userB
When listing the directory I have the following
drwxr-xr-x - userB hadoop 0 2011-05-29 18:17 /user/userA/tmp
Looks like the data is still owned by userA. Any idea how to fix that?
ADDITION userB is in the group hadoop (of course).
To make it work you need to do the following:
hadoop fs -chown userB:hadoop
Data will stay at /user/userA/ so you need to query using absolute path
hadoop fs -ls /user/userA/<path>
Using relative path is going to point you at different location
hadoop fs -ls
Try setting read permissions:
You have to copy the data to your local disk and then reupload with the other user.