$HADOOP_HOME/bin/hdfs namenode -format
启动NameNode(HDFS用户启动)
$HADOOP_HOME/bin/hdfs --daemon start namenode
启动SecondaryNameNode(HDFS用户启动)
$HADOOP_HOME/bin/hdfs --daemon start secondarynamenode
启动DataNode(HDFS用户启动)
$HADOOP_HOME/bin/hdfs --daemon start datanode
启动resourcemanager(yarn用户启动)
$HADOOP_HOME/bin/yarn --daemon start resourcemanager
启动nodemanager(yarn用户启动)
$HADOOP_HOME/bin/yarn --daemon start nodemanager
启动proxyserver
$HADOOP_HOME/bin/yarn --daemon start proxyserver
启动yarn
$HADOOP_HOME/sbin/start-yarn.sh
清理HDFS回收箱
$HADOOP_HOME/bin/hdfs dfs -expunge