You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by Muqtafi Akhmad <mu...@traveloka.com> on 2016/01/20 13:24:58 UTC

Avro File Integrity

dear all,

I failed to load Avro file using Spark & use Hive to query from the file.
There is a hypothesis that the Avro file might be broken (there are many
other hypotheses but we want to make sure that this is not the case).
Is there any way to ensure Avro file integrity?

Thank you,


-- 
Muqtafi Akhmad
Software Engineer
Traveloka

Re: Avro File Integrity

Posted by Muqtafi Akhmad <mu...@traveloka.com>.
Thank you Sam,
Besides cat, I found that using avro-tools's tojson also possible to make
sure that all records are parsable

On Wed, Jan 20, 2016 at 11:06 PM, Sam Groth <sg...@yahoo-inc.com> wrote:

> You could use the python avro "avro cat [file]" or the avro-tools.jar CLI
> to see if the contents are parsable.
>
>
> Sam
>
>
> On Wednesday, January 20, 2016 6:25 AM, Muqtafi Akhmad <
> muqtafi@traveloka.com> wrote:
>
>
> dear all,
>
> I failed to load Avro file using Spark & use Hive to query from the file.
> There is a hypothesis that the Avro file might be broken (there are many
> other hypotheses but we want to make sure that this is not the case).
> Is there any way to ensure Avro file integrity?
>
> Thank you,
>
>
> --
> Muqtafi Akhmad
> Software Engineer
> Traveloka
>
>
>
>


-- 
Muqtafi Akhmad
Software Engineer
Traveloka

Re: Avro File Integrity

Posted by Sam Groth <sg...@yahoo-inc.com>.
You could use the python avro "avro cat [file]" or the avro-tools.jar CLI to see if the contents are parsable.

Sam 

    On Wednesday, January 20, 2016 6:25 AM, Muqtafi Akhmad <mu...@traveloka.com> wrote:
 

 dear all,
I failed to load Avro file using Spark & use Hive to query from the file. There is a hypothesis that the Avro file might be broken (there are many other hypotheses but we want to make sure that this is not the case).Is there any way to ensure Avro file integrity? 
Thank you,

-- 
Muqtafi AkhmadSoftware EngineerTraveloka