Need help to copy files into my directory


#1

Hello,
I am trying to create directory like /user/deivanaivenkat through below command but it is saying that I am not in the sudoers file
Can you please help me

[deivanaivenkat@gw01 ~]$ sudo -u hdfs hadoop fs mkdir /user/root; sudo -u hdfs hadoop fs -chown -R root/user
[sudo] password for deivanaivenkat:
deivanaivenkat is not in the sudoers file. This incident will be reported.
[sudo] password for deivanaivenkat:

Thanks,
Venkat


#2

@deivanaivenkat If you want to create directory in HDFS, You should use the command like below. No need of any sudo or chown command. It by default creates with required permissions.

hadoop fs -mkdir /user/deivanaivenkat/directoryname


#3