其中slave文件如果换行不对,可能认不出来主机名,参考,报错为 name or service not knownstname注意环境变量在hadoop-env.sh yarn-env.sh mapred-env.sh中设置,不能直接引用.bash_profile /etc/profile之类的定义,只能在这些文件中指定路径