码迷,mamicode.com
首页 > 其他好文 > 详细

hadoop2.6.0实践:003 检查hadoop是否可用

时间:2017-01-30 22:52:39      阅读:218      评论:0      收藏:0      [点我收藏+]

标签:art   运行   dfs   input   bsp   jar   检查   local   nbsp   

start-dfs.sh

start-yarn.sh

 

1、检查hdfs

hdfs dfs -ls /

http://localhost:50070

 

2、运行例子程序

hdfs dfs -ls /

hdfs dfs -mkdir -R /example/grep/input

hdfs dfs -mkdir -R /example/grep/output

hdfs dfs -copyFromLocal  /etc/profile  /example/grep/input 

hdfs dfs -rm -r /example/grep/output

hadoop jar 

 

3、检查yarn

http://localhost:8088

hdfs dfs -cat /example/grep/output/* 

4、stop

stop-dfs.sh

stop-yarn.sh

 

hadoop2.6.0实践:003 检查hadoop是否可用

标签:art   运行   dfs   input   bsp   jar   检查   local   nbsp   

原文地址:http://www.cnblogs.com/lexiaofei/p/6358437.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!