Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-1887

Help message for the set_log_level command does not have the topology name parameter

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersStop watchingWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0.1
    • 2.0.0, 1.0.2, 1.1.0
    • storm-core
    • None

    Description

      The help message for the set_log_level command does not have the topology-name parameter:

      $ storm help set_log_level

      Dynamically change topology log levels

      Syntax: [storm set_log_level -l [logger name]=[log level][:optional timeout] -r [logger name]
      where log level is one of:
      ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF
      and timeout is integer seconds.
      (...)

      If you don't pass a `topology-name` as last parameter, you'll get the following error:

      $ storm set_log_level -l com.myapp=WARN
      Running: /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java -client -Ddaemon.name= -Dstorm.options= -Dstorm.home=/usr/local/Cellar/storm/1.0.1/libexec -Dstorm.log.dir=/usr/local/Cellar/storm/1.0.1/libexec/logs -Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib -Dstorm.conf.file= -cp /usr/local/Cellar/storm/1.0.1/libexec/lib/asm-5.0.3.jar:/usr/local/Cellar/storm/1.0.1/libexec/lib/clojure-1.7.0.jar:/usr/local/Cellar/storm/1.0.1/libexec/lib/disruptor-3.3.2.jar:/usr/local/Cellar/storm/1.0.1/libexec/lib/kryo-3.0.3.jar:/usr/local/Cellar/storm/1.0.1/libexec/lib/log4j-api-2.1.jar:/usr/local/Cellar/storm/1.0.1/libexec/lib/log4j-core-2.1.jar:/usr/local/Cellar/storm/1.0.1/libexec/lib/log4j-over-slf4j-1.6.6.jar:/usr/local/Cellar/storm/1.0.1/libexec/lib/log4j-slf4j-impl-2.1.jar:/usr/local/Cellar/storm/1.0.1/libexec/lib/minlog-1.3.0.jar:/usr/local/Cellar/storm/1.0.1/libexec/lib/objenesis-2.1.jar:/usr/local/Cellar/storm/1.0.1/libexec/lib/reflectasm-1.10.1.jar:/usr/local/Cellar/storm/1.0.1/libexec/lib/servlet-api-2.5.jar:/usr/local/Cellar/storm/1.0.1/libexec/lib/slf4j-api-1.7.7.jar:/usr/local/Cellar/storm/1.0.1/libexec/lib/storm-core-1.0.1.jar:/usr/local/Cellar/storm/1.0.1/libexec/lib/storm-rename-hack-1.0.1.jar:/usr/local/Cellar/storm/1.0.1/libexec/conf:/usr/local/Cellar/storm/1.0.1/libexec/bin org.apache.storm.command.set_log_level -l com.myapp=WARN
      2670 [main] INFO o.a.s.c.set-log-level - Sent log config LogConfig(named_logger_level:

      {com.myapp=LogLevel(action:UPDATE, target_log_level:WARN, reset_log_level_timeout_secs:0)}

      ) for topology
      Exception in thread "main" java.lang.IllegalArgumentException: No matching field found: IllegalArgumentException for class java.lang.String
      at clojure.lang.Reflector.getInstanceField(Reflector.java:271)
      at clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:315)
      at org.apache.storm.command.set_log_level$get_storm_id.invoke(set_log_level.clj:31)
      at org.apache.storm.command.set_log_level$_main.doInvoke(set_log_level.clj:75)
      at clojure.lang.RestFn.applyTo(RestFn.java:137)
      at org.apache.storm.command.set_log_level.main(Unknown Source)
      (...)

      I opened a PR to fix this: https://github.com/apache/storm/pull/1463

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            falmp Francisco Lopes Assign to me
            falmp Francisco Lopes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment