You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "Rick Kellogg (JIRA)" <ji...@apache.org> on 2015/10/09 02:25:27 UTC

[jira] [Updated] (STORM-90) Make it possible to use the ShellBolt without having the need to have resources

     [ https://issues.apache.org/jira/browse/STORM-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Kellogg updated STORM-90:
------------------------------
    Component/s: storm-multilang

>  Make it possible to use the ShellBolt without having the need to have resources
> --------------------------------------------------------------------------------
>
>                 Key: STORM-90
>                 URL: https://issues.apache.org/jira/browse/STORM-90
>             Project: Apache Storm
>          Issue Type: Improvement
>          Components: storm-multilang
>            Reporter: James Xu
>            Priority: Minor
>
> https://github.com/nathanmarz/storm/issues/678
> Hi,
> there seems to be a problem in the ShellBolt that I would like to figure out. If you use Storm multilanguage features and you try to communicate with a C++ using something like StormCpp it will possibly fail as long as you embed the resource direclty (Also see nathanmarz/storm#229). But if you just have a simple running executable that is placed in a PATH folder (like /usr/local/bin on Linux) it will fail with "Caused by: java.io.IOException: Cannot run program "xy"". The problem seems to be the ShellProcess - class where it does something like setting the directory to the codeBaseDir which is set to the resource - folder. As long as you have not assigned a resource - folder in your maven file it will always fail. Something like:
> <build>
> <resources>
> <resource>
> <directory>${basedir}/SomeDirectory</directory>
> </resource>
> </resources>
> </build>
> will fix it but it's only a workaround. I can also provide you with a simple code-example if needed. A possible solution would be that the ShellProcess should check if the codeBaseDir exists so that I cannot fail.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)