标签:oca local 用户 使用命令 span 位置 bin edit hadoop
一、Hadoop提供的Shell命令完成相同任务:
mkdir hadoop
cd hadoop
touch test.txt
gedit test.txt
ls -al
cat test.txt
cd /usr/local/hadoop ./sbin/start-dfs.sh ./bin/hdfs dfs -mkdir 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
cd /usr/local/hadoop ./sbin/start-dfs.sh ./bin/hdfs dfs -get input/test.txt ~/hadoop
./bin/hdfs dfs -rm -r input/test.txt
./bin/hdfs dfs -ls -R
标签:oca local 用户 使用命令 span 位置 bin edit hadoop
原文地址:https://www.cnblogs.com/BOXczx/p/8961601.html