You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by mohan kumar Muddana <mo...@gmail.com> on 2014/06/13 11:56:01 UTC

Avro binary format to raw binary format

Hi,
Tried to search the archives, but couldn't find good answer.
Just wanted to know is there any way to convert avro binary data which is
converted from json to raw binary format. And also raw binary format to
avro binary format.
Will the decoder classes present work.

Thanks in advance
Mohan

Re: Avro binary format to raw binary format

Posted by "Grant Overby (groverby)" <gr...@cisco.com>.
Perhaps you’re looking for a ‘hex editor'?

An example is the linux & os x command line tool xxd:

xxd -g1 some-binary-avro-file

The output of hex editors is a human readable representation (hex notation) of binary data. This output is less ‘raw’ than the contents of a avro binary file as it has been alter during presentation for viewing in “ 0,1 A-F”.

Be mindful of Endianness while reading the hex output. http://en.wikipedia.org/wiki/Endianness

[http://www.cisco.com/web/europe/images/email/signature/est2014/logo_06.png?ct=1398192119726]

Grant Overby
Software Engineer
Cisco.com
groverby@cisco.com<ma...@cisco.com>
Mobile: 865 724 4910






[http://www.cisco.com/assets/swa/img/thinkbeforeyouprint.gif] Think before you print.

This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.

Please click here<http://www.cisco.com/web/about/doing_business/legal/cri/index.html> for Company Registration Information.




From: mohan kumar Muddana <mo...@gmail.com>>
Reply-To: "user@avro.apache.org<ma...@avro.apache.org>" <us...@avro.apache.org>>
Date: Saturday, June 14, 2014 at 11:45 AM
To: "user@avro.apache.org<ma...@avro.apache.org>" <us...@avro.apache.org>>
Subject: Re: Avro binary format to raw binary format

I mean Avro serializes json into avro binary format. And it converts avro binary to json. My question is can we convert the avro binary to raw binary. Raw binary which represents in 0,1 A-F, human readable.

Thanks in advance.


On Fri, Jun 13, 2014 at 10:54 PM, Wai Yip Tung <wy...@tungwaiyip.info>> wrote:
What is raw binary format?


Sachin Goyal wrote:

Hi Mohan,

Did you try Avro-Tools ?
(http://www.michael-noll.com/blog/2013/03/17/reading-and-writing-avro-files-from-the-command-line/)

Cheers
Sachin

From: mohan kumar Muddana<mo...@gmail.com>>>
Reply-To: "user@avro.apache.org<ma...@avro.apache.org>>>
Date: Friday, June 13, 2014 at 2:56 AM
To: "user@avro.apache.org<ma...@avro.apache.org>>>
Subject: Avro binary format to raw binary format

Hi,
Tried to search the archives, but couldn't find good answer.
Just wanted to know is there any way to convert avro binary data which is converted from js on to raw binary format. And also raw binary format to avro binary format.

Will the decoder classes present work.

Thanks in advance
Mohan


Re: Avro binary format to raw binary format

Posted by mohan kumar Muddana <mo...@gmail.com>.
I mean Avro serializes json into avro binary format. And it converts avro
binary to json. My question is can we convert the avro binary to raw
binary. Raw binary which represents in 0,1 A-F, human readable.

Thanks in advance.


On Fri, Jun 13, 2014 at 10:54 PM, Wai Yip Tung <wy...@tungwaiyip.info> wrote:

> What is raw binary format?
>
>
> Sachin Goyal wrote:
>
>
> Hi Mohan,
>
> Did you try Avro-Tools ?
> (
> http://www.michael-noll.com/blog/2013/03/17/reading-and-writing-avro-files-from-the-command-line/
> )
>
> Cheers
> Sachin
>
> From: mohan kumar Muddana<mo...@gmail.com>>
> Reply-To: "user@avro.apache.org<ma...@avro.apache.org>"<
> user@avro.apache.org<ma...@avro.apache.org>>
> Date: Friday, June 13, 2014 at 2:56 AM
> To: "user@avro.apache.org<ma...@avro.apache.org>"<
> user@avro.apache.org<ma...@avro.apache.org>>
> Subject: Avro binary format to raw binary format
>
> Hi,
> Tried to search the archives, but couldn't find good answer.
> Just wanted to know is there any way to convert avro binary data which is
> converted from js on to raw binary format. And also raw binary format to
> avro binary format.
>
> Will the decoder classes present work.
>
> Thanks in advance
> Mohan
>
>

Re: Avro binary format to raw binary format

Posted by Wai Yip Tung <wy...@tungwaiyip.info>.
What is raw binary format?


Sachin Goyal wrote:
>
> Hi Mohan,
>
> Did you try Avro-Tools ?
> (http://www.michael-noll.com/blog/2013/03/17/reading-and-writing-avro-files-from-the-command-line/)
>
> Cheers
> Sachin
>
> From: mohan kumar Muddana<mo...@gmail.com>>
> Reply-To: 
> "user@avro.apache.org<ma...@avro.apache.org>>
> Date: Friday, June 13, 2014 at 2:56 AM
> To: 
> "user@avro.apache.org<ma...@avro.apache.org>>
> Subject: Avro binary format to raw binary format
>
> Hi,
> Tried to search the archives, but couldn't find good answer.
> Just wanted to know is there any way to convert avro binary data which 
> is converted from json to raw binary format. And also raw binary 
> format to avro binary format.
> Will the decoder classes present work.
>
> Thanks in advance
> Mohan

Re: Avro binary format to raw binary format

Posted by Sachin Goyal <sg...@walmartlabs.com>.
Hi Mohan,

Did you try Avro-Tools ?
(http://www.michael-noll.com/blog/2013/03/17/reading-and-writing-avro-files-from-the-command-line/)

Cheers
Sachin

From: mohan kumar Muddana <mo...@gmail.com>>
Reply-To: "user@avro.apache.org<ma...@avro.apache.org>" <us...@avro.apache.org>>
Date: Friday, June 13, 2014 at 2:56 AM
To: "user@avro.apache.org<ma...@avro.apache.org>" <us...@avro.apache.org>>
Subject: Avro binary format to raw binary format

Hi,
Tried to search the archives, but couldn't find good answer.
Just wanted to know is there any way to convert avro binary data which is converted from json to raw binary format. And also raw binary format to avro binary format.
Will the decoder classes present work.

Thanks in advance
Mohan