Esempio n. 1
0
 class PerlWordCount(Topology):
     word_spout = ShellSpout.spec(command='perl',
                                  script='count_words.pl',
                                  par=2,
                                  outputs=['word'])
     word_bolt = WordCountBolt.spec(
         inputs={word_spout: Grouping.fields("word")}, par=8)
Esempio n. 2
0
 class PerlWordCount(Topology):
     word_spout = ShellSpout.spec(
         script="count_words.pl", par=8, outputs=["word"]
     )
     word_bolt = WordCountBolt.spec(
         inputs={word_spout: Grouping.fields("word")}, par=8
     )
Esempio n. 3
0
 class PerlWordCount(Topology):
     word_spout = ShellSpout.spec(command="perl",
                                  par=8,
                                  outputs=["word"])
     word_bolt = WordCountBolt.spec(
         inputs={word_spout: Grouping.fields("word")}, par=8)