storm icon indicating copy to clipboard operation
storm copied to clipboard

Fix cli monitor component's argument type

Open dekimsey opened this issue 5 years ago • 0 comments

What is the purpose of the change

The component value is a string, not a number, see Monitor.java.

Attempting to use a number throws a stacktrace like such:

~/apache-storm-2.3.0/bin/storm monitor -m wordGenerator production-topology
topology	component	parallelism	stream	time-diff ms	emitted	throughput (Kt/s)
Available components for production-topology :
------------------
__acker
wordGenerator
intermediateRanker
counter
finalRanker
------------------
Exception in thread "main" java.lang.IllegalArgumentException: component: wordGeneratotor not found
	at org.apache.storm.utils.Monitor.metrics(Monitor.java:128)
	at org.apache.storm.utils.Monitor.metrics(Monitor.java:83)
	at org.apache.storm.command.Monitor$1.run(Monitor.java:53)
	at org.apache.storm.utils.NimbusClient.withConfiguredClient(NimbusClient.java:128)
	at org.apache.storm.utils.NimbusClient.withConfiguredClient(NimbusClient.java:117)
	at org.apache.storm.command.Monitor.main(Monitor.java:50)

How was the change tested

The monitor command now works.

dekimsey avatar Nov 04 '21 21:11 dekimsey