首页 > 代码库 > hadoop2.6.0实践:003 检查hadoop是否可用

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

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是否可用