Re: Avro Python appending data

2010-12-23 Thread felix gao
thanks guys, I will test it out. On Wed, Dec 22, 2010 at 8:17 PM, Harsh J wrote: > Sorry, minor error, not 'wb', but 'ab+' > > > > df_writer = datafile.DataFileWriter( > >open(OUTFILE_NAME, 'ab+'), > >io.DatumWriter(), > >) > > -- > Harsh J

Re: Avro Python appending data

2010-12-22 Thread Harsh J
Sorry, minor error, not 'wb', but 'ab+' > > df_writer = datafile.DataFileWriter( >                    open(OUTFILE_NAME, 'ab+'), >                    io.DatumWriter(), >                ) -- Harsh J www.harshj.com

Re: Avro Python appending data

2010-12-22 Thread Harsh J
Hi, On Thu, Dec 23, 2010 at 6:29 AM, felix gao wrote: > Hi all, > > I am having trouble adding more data into a file. > > Environment: Python 2.6.5, avro-1.3.3-py2.6 > > Program looks like this I see you've read my blog post on Avro+Python :P http://www.harshj.com/2010/04/25/writing-and-reading-

Re: Avro Python appending data

2010-12-22 Thread Jeff Hammerbacher
Hey Felix, See the test_append() function at http://svn.apache.org/viewvc/avro/trunk/lang/py/test/test_datafile.py?view=markup . Regards, Jeff On Wed, Dec 22, 2010 at 4:59 PM, felix gao wrote: > Hi all, > > I am having trouble adding more data into a file. > > Environment: Python 2.6.5, avro-1