将猪结果存储到本地文件 [英] Store pig result to local file
本文介绍了将猪结果存储到本地文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
现在我运行
hadoop fs -getmerge ...
分开。
任何方式让猪脚本直接将结果转储到本地文件? 解决方案
如果您不担心将所有内容合并到单个文件,那么您可以在grunt(http://wiki.apache.org/pig/Grunt)中使用copyToLocal命令:
grunt> copyToLocal< src> < DEST>
I run pig script do some aggerative operation, and output size is very small.
Now I run
hadoop fs -getmerge ...
separately.
Any way to let pig script dump the result into local file directly?
解决方案
If you're not worried about merging everything to a single file then you can use the copyToLocal command in grunt (http://wiki.apache.org/pig/Grunt):
grunt> copyToLocal <src> <dest>
这篇关于将猪结果存储到本地文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文