1
mkdir Hadoop
cd Hadoop
vi hello.txt
(Welcome to Big Data)
Esc+ :wq
cat hello.txt
hdfs dfs -mkdir /today
hdfs dfs -put hello.txt /today/data.txt
hdfs dfs -mkdir /input
hdfs dfs -cp /today/data.txt /input/data.txt
hdfs dfs -cat /input/data.txt
hdfs dfs -get /input/data.txt
hdfs dfs -rm /today/data.txt
hdfs dfs -rmdir /today
Comments
Post a Comment