1. 执行libexec/yarn-config.sh
2. 启动ResourceManager
sbin/yarn-daemon.sh --config $YARN_CONF_DIR start resourcemanager
3. 启动NodeManager
sbin/yarn-daemons.sh --config $YARN_CONF_DIR start nodemanager