how to setup a new user to hdfs

In any case, the user identity mechanism is extrinsic to HDFS itself. There is no provision within HDFS for creating user identities, establishing groups, or processing user credentials.

If we do not want to disable permission, we can do something like this.

Firstly, who is the super owner? The super owner is the user who starts the namenode process.

The super user can add a user like this.

hadoop fs -mkdir /home/userabc
hadoop fs -chown -R userabc:userabc /home/userabc

Then test

sudo -u userabc fs -put ./localfile /home/userabc

That's ok.


你可能感兴趣的:(hadoop)