伪分布式 CentOS 7部署Hadoop( 三 )


启动
执行命令:
start-all.sh#或者是使用如下两条命令启动hadoop,第一条命令实际上操作的就是下面两条命令start-dfs.shstart-yarn.sh
出现如下信息:
[hadoop@master100 hadoop]$ start-all.sh#执行上述命令会出现如下信息This script is Deprecated. Instead use start-dfs.sh and start-yarn.shStarting namenodes on [localhost]localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-hadoop-namenode-master100.outlocalhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-hadoop-datanode-master100.outStarting secondary namenodes [0.0.0.0]The authenticity of host '0.0.0.0 (0.0.0.0)' can't be established.ECDSA key fingerprint is SHA256:smnjN2nAXE9l/kx1fQ2r3KBQt14TMjgaVlh+65clSrA.ECDSA key fingerprint is MD5:75:f5:c8:d0:06:c2:c8:0d:25:8b:b9:d5:47:8c:3a:f5.#到这里时注意输入yes后回车Are you sure you want to continue connecting (yes/no)? yes0.0.0.0: Warning: Permanently added '0.0.0.0' (ECDSA) to the list of known hosts.0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/logs/hadoop-hadoop-secondarynamenode-master100.outstarting yarn daemonsstarting resourcemanager, logging to /usr/local/hadoop/logs/yarn-hadoop-resourcemanager-master100.outlocalhost: starting nodemanager, logging to /usr/local/hadoop/logs/yarn-hadoop-nodemanager-master100.out
查看启动的进程:
jps
出现如下进程说明安装并启动成功
[hadoop@master100 hadoop]$ jps6566 NameNode7399 Jps6664 DataNode7016 ResourceManager7114 NodeManager6862 SecondaryNameNode
可以进入如下网页查看与
192.168.33.100:50070

伪分布式  CentOS 7部署Hadoop

文章插图
192.168.33.100:8088
伪分布式  CentOS 7部署Hadoop

文章插图
关闭
【伪分布式CentOS 7部署Hadoop】[hadoop@master100 sbin]$ stop-all.shThis script is Deprecated. Instead use stop-dfs.sh and stop-yarn.shStopping namenodes on [localhost]localhost: stopping namenodelocalhost: stopping datanodeStopping secondary namenodes [0.0.0.0]0.0.0.0: stopping secondarynamenodestopping yarn daemonsstopping resourcemanagerlocalhost: stopping nodemanagerno proxyserver to stop