1、Hadoop提供的Shell命令完成相同任務:oop
cd /usr/local/hadoop touch reg.txt
ls
cat reg.txt
./bin/hdfs dfs -mkdir -p /usr/hadoop ./bin/hdfs dfs -put ./reg.txt input
./bin/hdfs dfs -ls
./bin/hdfs dfs -ls input
./bin/hdfs dfs -cat input/reg.txt
./bin/hdfs dfs -rm input/reg.txt ./bin/hdfs dfs -ls ./bin/hdfs dfs -ls input
./bin/hdfs dfs -get input/reg.txt ~/reg.txt
./bin/hdfs dfs -rm input/reg.txt
2、spa