jdgue 发表于 2016-12-11 10:55:55

把hadoop上多个文件合并然后copyt到本地

http://www.hadoopor.com/thread-4288-1-1.html
这一个简单的命令就会把part-r-*所有的文件合并到a.txt,并且是copy到本地的。很方便

hadoop fs -cat /user/hadoop/part-r-* > a.txt

尤其对于M/R的结果文件下载查看。
页: [1]
查看完整版本: 把hadoop上多个文件合并然后copyt到本地