Howto debug topology with multiple DRPC spouts in local mode

172 views
Skip to first unread message

sg

unread,
Nov 5, 2012, 10:20:54 AM11/5/12
to storm...@googlegroups.com
All,
 How do you go about testing/debugging in local mode a topology with multiple DRPC spouts. 

To my understanding, if you want to debug a DRPC spout in local mode (on a cluster you only have println) you MUST use a linearDRPCTopologyBuilder. This doesn't have access to setSpout but expects the topology to have a single "function" as its drpc function name and you can only specify one.

I have a topology that uses multiple DRPC spouts in a non-linear topology to expose several entry points into the topology. I need to be able to set break point in the topology to debug the DRPC spouts to make sure they are parsing correctly.

If anyone out there would be kind enough to give me their experiences with debugging DRPC I sure would love to know I am at least doing it the same way everyone else is.

sg

Nathan Marz

unread,
Nov 5, 2012, 6:08:57 PM11/5/12
to storm-user
LinearDRPCTopologyBuilder is deprecated, Trident is a better choice as it supports non-linear topologies and multiple DRPC streams. You should be able to use logging and breakpoints in local mode to debug. The Debug filter is useful as well.
--
Twitter: @nathanmarz
http://nathanmarz.com

Reply all
Reply to author
Forward
0 new messages