Baidu's C++ Extention on Hadoop

Hadoop Map/Reduce

Hadoop C++ Extention

Created: 07/Dec/09 08:09 AM   Updated: Thursday 07:38 PM
Component/s: task
Affects Version/s: 0.20.1
Fix Version/s: None

 

Time Tracking:
Not Specified

 

<!-- TD.colHeaderLink_a { font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #f0f0f0; font-weight: bold; } .colHeaderLink_a a { text-decoration: none; } .colHeaderOver_a { background-color: #aaaaaa; color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 12px; cursor: pointer; cursor: hand; } .colHeaderOver_a a { text-decoration: none; } .colHeaderHighlight_a { background-color: #aaaaaa; color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 12px; } .colHeaderHighlight_a a { text-decoration: none; } .sorttable_nosort { font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: #f0f0f0; font-weight: bold; } -->
Environment: hadoop linux

 

Hadoop Flags: Incompatible change
Tags: PIPES C++
Labels:


 Description   « Hide
Hadoop C++ extension is an internal project in baidu, We start it for these reasons:
1 To provide C++ API. We mostly use Streaming before, and we also try to use PIPES, but we do not find PIPES is more efficient than Streaming. So we

think a new C++ extention is needed for us.
2 Even using PIPES or Streaming, it is hard to control memory of hadoop map/reduce Child JVM.
3 It costs so much to read/write/sort TB/PB data by Java. When using PIPES or Streaming, pipe or socket is not efficient to carry so huge data.

What we want to do:
1 We do not use map/reduce Child JVM to do any data processing, which just prepares environment, starts C++ mapper, tells mapper which split it should deal with, and reads report from mapper until that finished. The mapper will read record, ivoke user defined map, to do partition, write spill, combine and merge into file.out. We think these operations can be done by C++ code.
2 Reducer is similar to mapper, it was started after sort finished, it read from sorted files, ivoke user difined reduce, and write to user defined record writer.
3 We also intend to rewrite shuffle and sort with C++, for efficience and memory control.
at first, 1 and 2, then 3.

What's the difference with PIPES:
1 Yes, We will reuse most PIPES code.
2 And, We should do it more completely, nothing changed in scheduling and management, but everything in execution.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值