Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Strom topology parallelism

Strom topology parallelism

New Contributor

Hello All,

Config conf = new Config();

conf.setNumWorkers(4); // use two worker processes

topologyBuilder.setSpout("blue-spout", new BlueSpout(), 4); // set parallelism hint to 4

in the above case, I am running four process, in each process one spout is associated to that.

can I say,

topologyBuilder.setSpout("blue-spout", new BlueSpout(), 2); // set parallelism hint to 2

only two process having spout and another two process does not have it ?

what about bolt,

one process having bolt running whereas another process does not have the bolt instance running.

Don't have an account?
Coming from Hortonworks? Activate your account here