Client Thread Safety

2011-07-20 Thread Craig Landry
Are HttpTransceiver and the object created from SpecificRequestor.getClient() threadsafe? Here's an example of what I am trying to do in my client to communicate with the service (hosted from Tomcat): HttpTransceiver client = new HttpTransceiver(new URL(http://user.sample.com/service;));

Hadoop and org.apache.avro.file.DataFileReader sez Not an Avro data file

2011-07-20 Thread Peter Wolf
Hello, anyone out there know about AVRO file formats and/or Hadoop support? My Hadoop AvroJob code does not recognize the AVRO files created by my other code. It seems that the MAGIC number is wrong. What is going on? How many different ways of encoding AVRO files are there, and how do I

Re: Hadoop and org.apache.avro.file.DataFileReader sez Not an Avro data file

2011-07-20 Thread Scott Carey
An avro data file is not created with a FileOutputStream. That will write = avro binary data to a file, but not in the avro file format (which is split= table and contains header metadata). The API for Avro Data Files is here:

Re: Hadoop and org.apache.avro.file.DataFileReader sez Not an Avro data file

2011-07-20 Thread Scott Carey
Let me try that again, without the odd formatting: An avro data file is not created with a FileOutputStream. That will write avro binary data to a file, but not in the avro file format (which is splittable and contains header metadata). The API for Avro Data Files is here: