Appearance time
An error occurs when executing start-dfs.sh
Cause of error
Because starting the hdfs cluster requires logging in to other machines through the ssh command, we directly use ssh node02 to do this. We
will find that we can log in, but due to an error in the environment variable, an error is reported
/usr/libexec/grepconf.sh: Line 5: grep: not The command found
caused the basic ls login command to fail to execute.
solution
Modify profile file
# 在/etc/profile中最后一行添加下述代码,回复ls,vim,等基本命令
export PATH=$PATH:/usr/bin:/usr/sbin:/bin:/sbin