1 建立index.html测试文件
vi index.html
hello nihao
helloworld
hello world
d
d
f
g
hallo
world
d
d
d
2 上传hadoop的hdfs上
hadoop fs=hdfs dfs
hdfs dfs -mkdir -p /user/centos/hadoop
hadoop fs -put index.html /user/centos/hadoop
hadoop fs -ls -R /user
hdfs dfs -chmod 777 /user/centos/hadoop/index.html
hdfs dfs -chmod 777 /user/centos
下载
hdfs dfs -get /user/centos/hadoop/index.html a.html
删除
hdfs dfs -rm -r -f /user/centos/hadoop