[root@beihang3 etc]# chmod a+w sudoers
[root@beihang3 etc]# vi sudoers
[root@beihang3 etc]# chmod a-w sudoers
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
hadoop ALL=(ALL) NOPASSWD: ALL