You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Tarek Amr <ta...@meedan.net> on 2014/05/02 03:49:43 UTC

Transactional Spout in Python

I know you can create spouts to be either transactional, opaque
transactional and non-transactions, however I have two simple questions
here.

1- Is this only for Trident topologies, or is it also applicable to normal
storm topologies.

2- Is it possible for a spout written in a non-JVM language (let's say
Python), is it possible in such case to decided whether it is
transactional, opaque transactional or non-transactions? or it is destined
to be one of them by design and cannot be changed? If you can decide its
nature, do you know how this can be set?


Thank you.

---

Cheers,
Tarek Amr

Email: tamr@meedan.net

Re: Transactional Spout in Python

Posted by Jarek ƚmiejczak <jo...@smiejczak.net>.
Hi,

ad. 2. I'm currently learning about storm in my own research and here's
what i know:
I think you should look at jython. It's python implemented in java. It
allows you to use java libraries and implements python 2.X semantics (i'm
not sure about 3.X).
I'm currently trying to start implement my first project via:
https://github.com/jimbaker/jython-storm-starter

Second and less nice opthon is to use shelltype bolts - however i'm not
sure about performance and scalability of such solution. Personally, i
would try to avoid this at all costs.


Greetings :)


On Fri, May 2, 2014 at 3:49 AM, Tarek Amr <ta...@meedan.net> wrote:

> I know you can create spouts to be either transactional, opaque
> transactional and non-transactions, however I have two simple questions
> here.
>
> 1- Is this only for Trident topologies, or is it also applicable to normal
> storm topologies.
>
> 2- Is it possible for a spout written in a non-JVM language (let's say
> Python), is it possible in such case to decided whether it is
> transactional, opaque transactional or non-transactions? or it is destined
> to be one of them by design and cannot be changed? If you can decide its
> nature, do you know how this can be set?
>
>
> Thank you.
>
> ---
>
> Cheers,
> Tarek Amr
>
> Email: tamr@meedan.net
>
>
>


-- 
jarek@reijutsu:~$ fortune
You have Egyptian flu: you're going to be a mummy.
jarek@reijutsu:~$ fortune
You now have Asian Flu.