avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kleppmann <mar...@rapportive.com>
Subject Re: How to convert .avpr/.avdl file to .avsc file.
Date Wed, 20 Mar 2013 16:02:14 GMT
Sounds like you have a problem with Hive, not with Avro — please ask
on the Hive mailing list.

You can check whether a file in HDFS is a valid Avro data file by
copying it to your local disk (hadoop fs -copyToLocal ...) and
displaying it as JSON (java -jar avro-tools-$VERSION.jar tojson
file.avro). If that doesn't work, you'll have to adjust whatever
you're doing with Hive to load the data.


On 20 March 2013 14:29, sourabh chaki <chaki.sourabh@gmail.com> wrote:
> Hi All,
> In my application I am getting avro events. I have to process those in
> hive. Using avro schema I have created hive table. But I am not able to
> load those avro events to the hive table(created by same avro schema).
> I am using: load data inpath '/user/test/xyz.avro' into table xyz;
> When I execute: select * from xyz;
> Failed with exception java.io.IOException:java.io.IOException: Not a data
> file.
> Please advice what should I do?
> Thanks in advance.
> Sourabh

View raw message