5、 启动HDFS和MapReduce
a) 在master主机上进行操作。
b) 建立HDFS文件系统
bin/Hadoop namenode –format
c) 启动HDFS
bin/start-dfs.sh
d) 启动MapReduce
bin/start-mapred.sh
e) 如果启动成功,可以通过jps命令查看当前运行参数,也可通过浏览器访问:50030/和:50070/了解MapReduce和HDFS的运行情况。
f) 如果需要停止HDFS和MapReduce则可通过
bin/stop-dfs.sh和bin/stop-mapred.sh
或是bin/stop-all.sh来完成。