Renaud Delbru
unread,Oct 16, 2009, 3:09:22 PM10/16/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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