Unable to create file user /user


i am unable to create user under /user for testing. Could you please provide sufficient privileges for practice in labs.

[sampathkp24@gw03 ~]$ hdfs dfs -mkdir /user/test_user
mkdir: Permission denied: user=sampathkp24, access=WRITE, inode="/user/test_user":hdfs:hdfs:drwxr-xr-x
[sampathkp24@gw03 ~]



“/user” is the directory which hadoop took as home. /sampathkp24 is your username. so you can only create under this location. Refer below command.

hdfs dfs -mkdir /user/sampathkp24/test_user.