On Wed, 26 Jan 2011, Anand Padmanaban wrote:

> Writing avro to a file is easy in python, just use 
> avro.datafile.DataFileWriter.  Is there an equivalent to write over the wire? 
>  Specifically flume will be listening on the other end.

IIRC DataFileWriter won't work over a socket because it needs .seek().

You should look into Avro RPC support with Python, which uses HTTP as a
transport, for writing messages over a wire.

I've got some code on doing so with eventlet here:
    <http://unethicalblogger.com/posts/2010/05/howto_using_avro_eventlet>


- R. Tyler Croy
--------------------------------------
    Code: http://github.com/rtyler
 Chatter: http://twitter.com/agentdero
          http://identi.ca/dero

Attachment: pgpzAoMU2VKZw.pgp
Description: PGP signature

Reply via email to