when executes start-all.sh (or start-dfs.sh,start-mapred.sh) ,some config files listed below will be loaded:
libexec/hadoop-config.sh ( use bin/hadoop-config.sh if without previor)
config/hadoop-env.sh
and if start NN or JT,it will invoke
hadoop-daemon.sh
and when starts DN or TT,it will invoke
hadoop-daemons.sh
to run the cluster by ssh respectively