让普通用户拥有

让普通用户拥有sudo执行权限。

切换到root 

然后 vi /etc/sudoers  加入一行

root  ALL = (ALL)  ALL

hadoop ALL=(ALL)  ALL