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)
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 )
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)