把hdfs上的多个目录下的文件合并为一个文件

hdfs dfs -cat files | hdfs dfs -copyFromLocal - newfile
这样就把files这些文件内容复制到newfile里面

猜你喜欢

转载自blog.csdn.net/foradawn/article/details/80146630