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
时间: 2024-11-19 18:06:59