[
https://issues.apache.org/jira/browse/STORM-3383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16824429#comment-16824429
]
Stig Rohde Døssing commented on STORM-3383:
-------------------------------------------
You are more likely to get help if you post a runnable example project. The
issue could just as well be in your pom as this code.
I will say that specifying the absolute path to the python file in SplitBolt is
weird. You're supposed to package the python code along with the rest of the
Storm topology, and refer to it with a path relative to the resources directory.
Storm-starter has a complete example of Python multilang. Here's the topology
definition
https://github.com/apache/storm/blob/844631ab5e52f9d4e35b0c9701a3c7df9476faa0/examples/storm-starter/src/jvm/org/apache/storm/starter/WordCountTopology.java#L62.
Here's the python file
https://github.com/apache/storm/blob/master/examples/storm-starter/multilang/resources/splitsentence.py.
Here's the bit of the POM that ensures that the python file is included in the
resources directory in the topology jar
https://github.com/apache/storm/blob/844631ab5e52f9d4e35b0c9701a3c7df9476faa0/examples/storm-starter/pom.xml#L146.
> Apache Storm is not able to hit the python bolt and run it
> ----------------------------------------------------------
>
> Key: STORM-3383
> URL: https://issues.apache.org/jira/browse/STORM-3383
> Project: Apache Storm
> Issue Type: Bug
> Components: storm-core
> Affects Versions: 1.2.2
> Reporter: antarix bhardwaj
> Priority: Major
> Attachments: SplitBolt.java, SplitBoltPython.py, s3toS3Topology.java,
> storm.py
>
>
> Hi,
> We have a requirement to send the data to the Python model. We have added
> bolt for the same. We are testing on local and the topology does not seem to
> hit the python code.
> PFA the topology and python sample bolt with the python job.
> Can someone help us with the sample code to achieve it, or provide the
> solution. It will be a great help.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)