Permission issues using some HDFS Commands


4 Answer(s)


Hi Robert,
I am using cloudera in virtual box. As a part of assignment1, I was trying to run the following command in the terminal window:
sudo addgroup dezyre_group

I get the error:
sudo: addgroup command not found.

I was wondering if you have any insights on this.
Thanks,
Kapil

hi Kapil,

"addgroup" is specific to Ubuntu, try these

groupadd hadoop
usermod -a -G hadoop hduser

As Shobhanc said but make sure to su to root, then run the commands:

groupadd hadoop
usermod -a -G hadoop hduser

Please also look at the post titled "need help with permission" for more information.

I now understand what to do regarding the hadoop jar command for the hadoop-examples.jar file (see post titled "need help with permission").

In regards to creating a directory; if I am within a folder where cloudera owns the folder like the /user/cloudera folder, then there is no need to make permission changes to make a directory/folder. But if we want to make the /dezyre directory like in the page 2 of the HDFS command assignment, then we must change permissions since hdfs is the user that owns that folder.

My question in regards to this situation where we want to make a directory where hdfs is the user that owns the folder; What is the best practice; my Solution 1 or my Solution 2 as stated previously or something different?

Thank you