Dexin Wang
unread,Oct 9, 2009, 7:42:29 PM10/9/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,
Is there any example code for MultiTap? I don't see any in the
included tests.
I have a MultiTap that includes two taps from, and I'll have one pipe
from each tap. How do I do that?
I did this:
Tap tap1 = new Dfs(new TextLine(), args[0]);
Tap tap2 = new Dfs(new TextLine(), args[1]);
MultiTap combined = new MultiTap(new Tap[]{tap1,
tap2});
...
Pipe pipe1 = new Each("import", new Fields(fields1),
parser1);
Pipe pipe2 = new Each("import", new Fields(fields2),
parser2);
I got this planner exception: each input pipe branch must be uniquely
named
Then I use different names:
Pipe pipe1 = new Each("import", new Fields(fields1),
parser1);
Pipe pipe2 = new Each("import", new Fields(fields2),
parser2);
I got this: pipe name not found in either sink or source map: import2
I also tried to use different name in Tap with different TextLine
fields names, then I got "must use same scheme" error.
Thank you.
Dexin