[
https://issues.apache.org/jira/browse/STORM-3956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard Zowalla closed STORM-3956.
----------------------------------
Resolution: Fixed
> Fix cli monitor component's argument type
> ------------------------------------------
>
> Key: STORM-3956
> URL: https://issues.apache.org/jira/browse/STORM-3956
> Project: Apache Storm
> Issue Type: Bug
> Affects Versions: 2.3.0
> Reporter: Richard Zowalla
> Priority: Minor
> Fix For: 2.6.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> From https://github.com/apache/storm/pull/3423
> The `component` value is a string, not a number, see
> [Monitor.java](https://github.com/apache/storm/blob/master/storm-core/src/jvm/org/apache/storm/utils/Monitor.java#L156).
> 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)
> ```
--
This message was sent by Atlassian Jira
(v8.20.10#820010)