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

Adding external classpath elements does not work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.10.0, 1.0.0, 0.9.6
    • Fix Version/s: 0.10.0
    • Component/s: storm-core
    • Labels:
      None

      Description

      Adding an external path and/or jar to the classpath fails to work as expected. I would expect it to work the same as

      "${STORM_DIR}/extlib"

      and

      "${STORM_DIR}/extlib-daemon"

      , and create a complete list of all jars in the path spec(s).

      Here is an example of the issue:

      % STORM_EXT_CLASSPATH=/usr/lib/jvm/default-java/lib/jconsole.jar python
      Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
      [GCC 4.8.2] on linux2
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import os
      >>> import fnmatch
      >>> os.getenv('STORM_EXT_CLASSPATH', None)
      '/usr/lib/jvm/default-java/lib/jconsole.jar'
      >>> ret = fnmatch.filter(os.listdir('/opt/HipChat/lib/'), "*.so")
      >>> ret
      ['libxml2.so', 'libogg.so', 'libdbusmenu-qt5.so', 'libhipchatdbusscripting.so', 'libcanberra.so', 'libvorbis.so', 'libxcb-sync.so', 'libxslt.so', 'liblzma.so', 'libqxmpp.so', 'libvorbisfile.so', 'libssl.so', 'libpng16.so', 'libsqlite3.so', 'libz.so', 'libadl_sdk.so', 'libtdb.so', 'libuuid.so', 'libcrypto.so', 'libcanberraSoundNotification.so']
      >>> ret.extend(os.getenv('STORM_EXT_CLASSPATH', None))
      >>> ret
      ['libxml2.so', 'libogg.so', 'libdbusmenu-qt5.so', 'libhipchatdbusscripting.so', 'libcanberra.so', 'libvorbis.so', 'libxcb-sync.so', 'libxslt.so', 'liblzma.so', 'libqxmpp.so', 'libvorbisfile.so', 'libssl.so', 'libpng16.so', 'libsqlite3.so', 'libz.so', 'libadl_sdk.so', 'libtdb.so', 'libuuid.so', 'libcrypto.so', 'libcanberraSoundNotification.so', '/', 'u', 's', 'r', '/', 'l', 'i', 'b', '/', 'j', 'v', 'm', '/', 'd', 'e', 'f', 'a', 'u', 'l', 't', '-', 'j', 'a', 'v', 'a', '/', 'l', 'i', 'b', '/', 'j', 'c', 'o', 'n', 's', 'o', 'l', 'e', '.', 'j', 'a', 'r']
      

        Attachments

          Activity

            People

            • Assignee:
              shellbj Bryan Shell
              Reporter:
              shellbj Bryan Shell
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: