colinsurprenant / redstorm

JRuby on Storm
Other
298 stars 56 forks source link

ClusterWordCountTopology cannot be run on cluster #125

Closed leiz-me closed 3 years ago

leiz-me commented 10 years ago

I am trying to use redstorm in the production cluster mode.

The setup is looking like this:

Started nimbus/supervisor/ui on my local Mac to simulate production cluster.

And follow the instructions of redstorm that "redstorm jar examples" and "storm jar" to send the topology to cluster.

Error message shows that "RedStorm::Configuration.topology_class.new" has only one arguments for 2.

The method ClusterWordCountTopology#start in cluster_word_count_topology.rb requires 2 parameters, base_class_path and env.

But topology_launcher.rb uses only env, like this,

RedStorm::Configuration.topology_class.new.start(env)

My question is, how to change the code in ClusterWordCountTopology#start to make it work? Or what is the base_class_path in this case?

Thank you.