class PerlWordCount(Topology): word_spout = WordSpout.spec(par=2) word_bolt = ShellBolt.spec( command='perl', inputs={word_spout: Grouping.fields("word")}, par=8, outputs=['word', 'count'])
class PerlWordCount(Topology): word_spout = WordSpout.spec(par=2) word_bolt = ShellBolt.spec( command="perl", inputs={word_spout: Grouping.fields("word")}, par=8, outputs=["word", "count"], )