HttpTranceiver and JSON-encoded Avro?

2012-02-15 Thread Frank Grimes
Hi All,

Is there any way to send Avro data over HTTP encoded in JSON?
We want to integrate with Node.js and JSON seems to be the best/simplest way to 
do so.

Thanks,

Frank Grimes

Re: HttpTranceiver and JSON-encoded Avro?

2012-02-15 Thread Russell Jurney
FWIW, there are avro libs for JavaScript and node on github.

Russell Jurney http://datasyndrome.com

On Feb 15, 2012, at 7:32 AM, Frank Grimes frankgrime...@gmail.com wrote:

 Hi All,
 
 Is there any way to send Avro data over HTTP encoded in JSON?
 We want to integrate with Node.js and JSON seems to be the best/simplest way 
 to do so.
 
 Thanks,
 
 Frank Grimes


Re: HttpTranceiver and JSON-encoded Avro?

2012-02-15 Thread Scott Carey
See https://issues.apache.org/jira/browse/AVRO-485 for some discussion on
JavaScript for Avro.  Please comment in that ticket with your needs and
use case.  The project would welcome a JavaScript implementation.

On 2/15/12 2:07 PM, Frank Grimes frankgrime...@gmail.com wrote:

Are there any fast and stable ones you might recommend?


On 2012-02-15, at 4:22 PM, Russell Jurney wrote:

 FWIW, there are avro libs for JavaScript and node on github.
 
 Russell Jurney http://datasyndrome.com
 
 On Feb 15, 2012, at 7:32 AM, Frank Grimes frankgrime...@gmail.com
wrote:
 
 Hi All,
 
 Is there any way to send Avro data over HTTP encoded in JSON?
 We want to integrate with Node.js and JSON seems to be the
best/simplest way to do so.
 
 Thanks,
 
 Frank Grimes





Nesting avro with avro or proto binary represenations

2012-02-15 Thread Shirahatti, Nikhil
Hello Avro Users,

My question is whether we can use an avro schema as a wrapper for another 
avro/protobuf binary representation.

Example:

{

  namespace: com.AvroExample,

  name: wrapper,

  type: record,

  fields: [

  {name: timestamp, type: long},

  {name: header, type: string},

  {name: body, type: bytes} ]

}


Then the body can be filled in with the binary representation 
(avro/protobuf/json). Can we wrap the below avro schema being inside the above 
wrapper schema? If so any pointers for it?

{

  namespace: com.AvroExample,

  name: server,

  type: record,

  fields: [

 { name : status, type: string},

 { name : user, type: string}]

}


Thanks,

Nikhil