[ https://issues.apache.org/jira/browse/STORM-1026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14727907#comment-14727907 ]
ASF GitHub Bot commented on STORM-1026: --------------------------------------- GitHub user shellbj opened a pull request: https://github.com/apache/storm/pull/715 STORM-1026: Expand external classpaths to include any jars You can merge this pull request into a Git repository by running: $ git pull https://github.com/shellbj/storm STORM-1026 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/storm/pull/715.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #715 ---- commit 62ab4bc114a42115bfdcae2a38456548138a9b0d Author: Bryan Shell <bryan.sh...@orbitz.com> Date: 2015-09-02T19:45:04Z STORM-1026: Expand external classpaths to include any jars ---- > Adding external classpath elements does not work > ------------------------------------------------ > > Key: STORM-1026 > URL: https://issues.apache.org/jira/browse/STORM-1026 > Project: Apache Storm > Issue Type: Bug > Affects Versions: 0.10.0, 0.11.0, 0.9.6 > Reporter: Bryan Shell > Priority: Minor > > Adding an external path and/or jar to the classpath fails to work as > expected. I would expect it to work the same as {noformat} > "${STORM_DIR}/extlib"{noformat} and > {noformat}"${STORM_DIR}/extlib-daemon"{noformat}, and create a complete list > of all jars in the path spec(s). > Here is an example of the issue: > {code} > % 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'] > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)