avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "R. Tyler Croy" <ty...@monkeypox.org>
Subject Re: writing to socket in python
Date Thu, 27 Jan 2011 03:42:56 GMT

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

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:

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

View raw message