예제 #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)
예제 #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
     )
예제 #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)