You have created a new user and you want to run hdfs commands with your new user account. But when you try to run some hdfs commands, system is showing an error like that: bash: hdfs: command not found...
chmod -R 777 /home/hadoop/
By doing this, you gave permission your $HADOOP_HOME directory. Now log in with your new user again and try run hdfs commands for example: hdfs dfs -ls /
So you can do anything what you want in new user. When your done, revoke permissions you gave.
SO DON'T SHUT DOWN SERVERS. EVER AND NEVER. NOT YET. Run this code as root:
chmod -R 700 /home/hadoop
chmod -R 644 /home/hadoop/.ssh
If you don't, you won't start your namenodes and datanodes. Because the permission of the subfolder cannot be more than or equal to the parent folder. And it will be a big problem to fix.
So that's all, and it's worked for my case. I hope I could help.

Yorumlar
Yorum Gönder