Mapreduce读取OrcFile格式的改造

本文介绍了如何在MapReduce中读取OrcFile格式的数据,讨论了OrcFile相对于其他Hive文件格式的优势,并提供了通过Hive源码实现读取的方案,包括解析OrcFile结构、使用OrcInputFormat和OrcNewInputFormat。

本文转自我的原创blog: http://www.javali.org/document/mapreduce_read_orcfile_solution.html

The Optimized Row Columnar (ORC) file format provides a highly efficient way to store Hive data. It was designed to overcome limitations of the other Hive file formats. Using ORC files improves performance when Hive is reading, writing, and processing data.Compared with RCFile format, for example, ORC file format has many advantages

OrcFile 介绍

如官方文档所述, 在Hive里读、写操作文件能克服其他文件格式的弊端,但是到目前为止OrcFile还不对外提供读写的API,如果需要在MR读取就无能为力了。https://issues.ap

评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值