hadoop - 常用命令

启动NameNode
hadoop-daemon.sh start namenode
hdfs --daemon start namenode
关闭NameNode
hadoop-daemon.sh stop namenode
hdfs --daemon stop namenode

启动DataNode
hadoop-daemons.sh start datanode
hdfs --workers --daemon start datanode
关闭DataNode
hadoop-daemons.sh stop datanode
hdfs --workers --daemon stop datanode

启动SecondaryNameNode
hadoop-daemon.sh start secondarynamenode
hdfs --daemon start secondarynamenode
关闭SecondaryNameNode
hadoop-daemon.sh stop secondarynamenode
hdfs --daemon stop secondarynamenode

启动ResourceManager
yarn-daemon.sh start resourcemanager
yarn --daemon start resourcemanager
关闭ResourceManager
yarn-daemon.sh stop resourcemanager
yarn --daemon stop resourcemanager

启动NodeManager
yarn-daemons.sh start nodemanager
yarn --workers --daemon start nodemanager
关闭NodeManager
yarn-daemons.sh start nodemanager
yarn --workers --daemon start nodemanager

你可能感兴趣的:(hadoop - 常用命令)