using StormSubmitter without submitting the jar from command line

91 views
Skip to first unread message

Debojyoti Dutta

unread,
Aug 7, 2012, 2:42:10 AM8/7/12
to storm...@googlegroups.com
Hi

Say I want to write a simple java program which will accept some user params interactively, build a topology and then submit it to the cluster. Has anyone done this?

thoughts?

--
-Debo~

Richards Peter

unread,
Aug 7, 2012, 2:55:35 AM8/7/12
to storm...@googlegroups.com

Debojyoti Dutta

unread,
Aug 7, 2012, 3:12:52 AM8/7/12
to storm...@googlegroups.com
Hi Richard 

Thanks for the pointer. I was planning to ask how to create submit objects directly instead of the jar file....

Did you get that to work? I am guessing I have to serialize the object and pass it on to nimbus? An example would clear my mind a bit .... 

debo
--
-Debo~

Richards Peter

unread,
Aug 7, 2012, 3:23:21 AM8/7/12
to storm...@googlegroups.com
Hi,

Can you elaborate more on submit objects? I don't really know what you meant.

Thanks,
Richards Peter.

Debojyoti Dutta

unread,
Aug 7, 2012, 3:41:49 AM8/7/12
to storm...@googlegroups.com
Say we want to just create a dynamic topology using the same spouts and bolts of the exclaim topology in storm starter with one difference (I want to interactively ask the user for the number of stages of the exclaim spout). Based on user input I want to generate a topology and submit it ....

Whats teh best way to do it and do I need to submit the jar with deps apriori ? Can I just instantiate a nimbus client as in the thread and get my work done? I guess I will still have to upload the jar file beforehand and just refer to it while submitting the topology?

debo
--
-Debo~

Richards Peter

unread,
Aug 7, 2012, 4:40:22 AM8/7/12
to storm...@googlegroups.com
Hi Debojyoti Dutta,

I think you will be able to do this:

Read the user input(no. of levels), build the topology(as per your requirement), submit the jar and get back the uploaded location and then submit the topology.

I am not sure whether there are any other options like placing the file directly on all nodes in the cluster at a particular location and then referring to it. Please check whether you will get other comments from community.

Thanks,
Richards Peter.
Reply all
Reply to author
Forward
0 new messages