在Hadoop中处理带有标头的文件 [英] Processing files with headers in Hadoop
本文介绍了在Hadoop中处理带有标头的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在Hadoop中处理很多文件-每个文件都有一些头信息,然后是很多记录,每个记录都以固定的字节数存储.有什么建议吗?
I want to process a lot of files in Hadoop -- each file has some header information, followed by a lot of records, each stored in a fixed number of bytes. Any suggestions on that?
推荐答案
I think the best solution is to write a custom InputFormat
.
这篇关于在Hadoop中处理带有标头的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文