James Xu created STORM-90:
-----------------------------

             Summary:  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 (Incubating)
          Issue Type: Improvement
            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.1.4#6159)

Reply via email to