java - Duplicated result on bolt reception of storm topology -
I am using a bolt which gets the template from another bolt (exclamatory bolt) and on file it Writes, the problem has been that I have repeated the result four times, as when I emit a word, I got the word written four times. Where can the problem possibly be?
Public Class PrinterBoitty BaseBasicball {@Override Public Executives Zero (Tupal Tupal, BasicOutput Collector Collector) {try {BufferedWriter Output; Output = new buffed waist (new flamer ("/ root / src / debit-starter / hhttt", true)); Output.newLine (); Output.append (tuple.getString (0)); Output.close (); } Grip (IOException E) {// TODO Auto-Generated Catch Block e.printStackTrace (); }} @ Override Public Zero Disapproved OutputField (Output Field Declaration of D) {}}
The solution was to specify 1 bottleneck in the main category:
Builder.SetsPout ("spout", new randomseanspout (), 1);
Comments
Post a Comment