很多人在配置好了hadoop集群后,输入启动命令 start-all.sh 时,报错:This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh 如下:
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
很多人以为是hadoop文件的权限问题,其实主要是环境变量没有设置好,修改~/.bash_profile或者/etc/profile文件即可。
解决办法如下:
然后用source重新编译使之生效
source ~/.bash_profile