1.上传
1).创建文件夹
hadoop fs -mkdir /testdir
2).-moveFromLocal:从本地剪切到hdfs,会删除本地文件
hadoop fs -moveFromLocal ./hello.txt /testdir
3).-copyFromLocal:从本地文件系统中拷贝文件到HDFS路径去,-put:等同于copyFromLocal,
hadoop fs -copyFromLocal ./test.txt /testdir
hadoop fs -put ./test.txt /testdir
4).-appendToFile:追加一个文件到已经存在的文件末尾
hadoop fs -appendToFile ./append.txt /testdir/hello.txt
查看追加的内容
2.下载
1)get:等同于copyToLocal,生产环境更习惯用ge