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