You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "jongho lim (JIRA)" <ji...@apache.org> on 2019/07/10 14:52:00 UTC

[jira] [Commented] (STORM-3466) storm-kafka-monitor not found jar

    [ https://issues.apache.org/jira/browse/STORM-3466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16882144#comment-16882144 ] 

jongho lim commented on STORM-3466:
-----------------------------------

I think it is a shell path expansion problem. 

[reference|[https://stackoverflow.com/questions/38757649/why-do-i-use-double-quotes-in-shell-scripts]]

 

In storm 2.0.0, java classpath of storm-kafka-monitor used wildcard(*). It is interpreted as "a.jar b.jar c.jar" (separator is white space). 

but the classpath option of the java command has to be passed "a.jar:b.jar:c.jar" for multiple paths. (in linux, separator is colon). therefore java commands do not understand this and throw an error.

 

in storm 1.2.2, java classpath wildcard of storm-kafka-monitor is interpreted as a single jar file. so it worked.

> storm-kafka-monitor not found jar
> ---------------------------------
>
>                 Key: STORM-3466
>                 URL: https://issues.apache.org/jira/browse/STORM-3466
>             Project: Apache Storm
>          Issue Type: Bug
>          Components: storm-kafka-monitor
>    Affects Versions: 2.0.0
>         Environment: ubuntu 18.04.
> Debian GNU/Linux 9? docker container (storm:2.0.0 image)
>            Reporter: jongho lim
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Hi, i'm a beginner to the storm. in order words, i'm a newbie.
>  
> I have tried to upgrade from Storm 1.2.2 to 2.0.0. and confirmed that kafka spout lag does not work. changed the value of ui.disable.spout.lag.monitoring to false, but it did not work.
> So I checked the log of storm ui and got the following error message.
>  
> org.apache.storm.utils.ShellUtils$ExitCodeException: Error: Could not find or load main class .apache-storm-2.0.0.lib-tools.storm-kafka-monitor.audience-annotations-0.5.0.jar
> at org.apache.storm.utils.ShellUtils.runCommand(ShellUtils.java:271) ~[storm-client-2.0.0.jar:2.0.0]
>  at org.apache.storm.utils.ShellUtils.run(ShellUtils.java:194) ~[storm-client-2.0.0.jar:2.0.0]...
>  
> In version 1.2.2, the storm-kafka-monitor works fine. However, version 2.0.0 throws an error.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)