Example #1
0
 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'])
Example #2
0
 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"],
     )