有关IP有3个文件:
/etc/hosts
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-ethX
有关hadoop环境配置的文件:
/etc/profile(我是配置这个)
~/.bashrc
~/.bash_profile
hadoop文件夹内需要配置的环境文件:
./hadoop-2.7.5/etc/hadoop/hadoop-env.sh
./hadoop-2.7.5/etc/hadoop/mapred-env.sh
./hadoop-2.7.5/etc/hadoop/yarn-env.sh(以上3个加export JAVA_HOME=xxxxxxxx)
以及4个site.xml文件(这个到处都能查的到)
有个挺好的链接:https://blog.csdn.net/gakki_smile/article/details/77198146