Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ public static void main(String[] args) throws Exception {
// log4j is what storm local uses, the INFO messages of the components would drown the
// reports
Configurator.setAllLevels(LogManager.ROOT_LOGGER_NAME, Level.WARN);
// storm local warns about a deprecated config set in Storm's own defaults.yaml
Configurator.setLevel("org.apache.storm.validation.ConfigValidation", Level.ERROR);

Config conf = new Config();
conf.putAll(
Expand Down Expand Up @@ -242,13 +244,13 @@ public static void main(String[] args) throws Exception {
long delta = current - lastUnique.getAndSet(current);
System.out.printf(
Locale.ROOT,
"Emitted: %d - Unique: %d - Acked: %d - Unique URLs/sec over the last"
+ " %d sec: %.2f%n",
"Emitted: %,d - Unique: %,d - Acked: %,d - Unique URLs/sec over the last"
+ " %d sec: %,d%n",
emitted.get(),
current,
acked.get(),
Math.round(elapsed / 1000.0),
delta * 1000.0 / Math.max(1, elapsed));
Math.round(delta * 1000.0 / Math.max(1, elapsed)));
},
REPORT_INTERVAL_SEC,
REPORT_INTERVAL_SEC,
Expand Down Expand Up @@ -285,13 +287,15 @@ public static void main(String[] args) throws Exception {
System.out.println("Spout instances: " + spoutInstances);
System.out.println("Bolt instances: " + boltInstances);
System.out.println("Max spout pending: " + (maxPending > 0 ? maxPending : "none"));
System.out.println("Total time: " + elapsed + " msec");
System.out.println("Emitted: " + totalEmitted);
System.out.println("Unique: " + totalUnique);
System.out.println("Acked: " + acked.get());
System.out.println("Failed: " + failed.get());
System.out.printf(Locale.ROOT, "Total time: %,d msec%n", elapsed);
System.out.printf(Locale.ROOT, "Emitted: %,d%n", totalEmitted);
System.out.printf(Locale.ROOT, "Unique: %,d%n", totalUnique);
System.out.printf(Locale.ROOT, "Acked: %,d%n", acked.get());
System.out.printf(Locale.ROOT, "Failed: %,d%n", failed.get());
System.out.printf(
Locale.ROOT, "Average unique URLs/sec: %.2f%n", totalUnique * 1000.0 / elapsed);
Locale.ROOT,
"Average unique URLs/sec: %,d%n",
Math.round(totalUnique * 1000.0 / elapsed));

// some backends leave non-daemon threads behind
System.exit(0);
Expand Down
Loading