Traps may not cross Map and Reduce boundaries

4 views
Skip to first unread message

Renaud Delbru

unread,
Oct 16, 2009, 3:09:22 PM10/16/09
to cascading-user
Hi,

I am trying to setup a trap on a simple worddcount assembly, but I got
the following error during the planner execution:

Exception in thread "main" cascading.flow.PlannerException: traps may
not cross Map and Reduce boundaries: word-count

My code looks like:
final Tap hBaseTap = ...;
final Tap sink = ...;
final Tap trap = new Hfs(new TextLine(), output + "-trap",
SinkMode.REPLACE);

final Pipe count = new WordCount("word-count", new Fields("content"),
new Fields("term", "count"));
final Flow flow = flowConnector.connect("analytics", hBaseTap, sink,
trap, count);

By looking at the unit tests for this FlowConnector#connect methods,
it seems there is no difference (apart that I am using an assembly
wrapping the each, groupby, every operations).

Could someone can explain me what is wrong here ?
Thanks
--
Renaud Delbru

Chris K Wensel

unread,
Oct 17, 2009, 5:12:51 PM10/17/09
to cascadi...@googlegroups.com
Try using wip-1.1. This restriction goes away.

http://www.concurrentinc.com/downloads/

cheers,
chris
--
Chris K Wensel
ch...@concurrentinc.com
http://www.concurrentinc.com

Renaud Delbru

unread,
Oct 18, 2009, 7:54:13 AM10/18/09
to cascading-user
Hi Chris,

Ok, but is there a hbase tap available for wip 1.1. ?
Is there a bug changes in the API (i.e. is my application written with
cascading 1.06 will still be compatible with wip 1.1 or do I have to
rewrite some part ?)

Thanks
--
Renaud Delbru

Renaud Delbru

unread,
Oct 18, 2009, 8:21:00 AM10/18/09
to cascading-user
I meant, is there an interface change in the API (not a bug change).

thanks
--
Renaud Delbru

Chris K Wensel

unread,
Oct 18, 2009, 10:08:06 PM10/18/09
to cascadi...@googlegroups.com
wip-1.1 is a drop in replacement to 1.0.x. you don't need to change
your code.

ckw

Renaud Delbru

unread,
Oct 19, 2009, 11:58:27 AM10/19/09
to cascading-user
Hi Chris,

I updated to 1.1.0-59. It works perfectly, and no change in my code
has been necessary. The HbaseTap works also great.

Thanks.
--
Renaud Delbru

Chris K Wensel

unread,
Oct 19, 2009, 2:19:26 PM10/19/09
to cascadi...@googlegroups.com
great news!

cheers,
chris
Reply all
Reply to author
Forward
0 new messages