avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brock Noland (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1530) Java DataFileStream does not allow distinguishing between empty files and corrupt files
Date Sat, 28 Jun 2014 17:32:24 GMT

    [ https://issues.apache.org/jira/browse/AVRO-1530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14046933#comment-14046933
] 

Brock Noland commented on AVRO-1530:
------------------------------------

I was thinking that we'd throw a subclass of IOException so that'd be backwards compatible.
Though, I do agree that clients could ignore zero length files.

> Java DataFileStream does not allow distinguishing between empty files and corrupt files
> ---------------------------------------------------------------------------------------
>
>                 Key: AVRO-1530
>                 URL: https://issues.apache.org/jira/browse/AVRO-1530
>             Project: Avro
>          Issue Type: Bug
>            Reporter: Brock Noland
>
> When writing data to HDFS, especially with Flume, it's possible to write empty files.
When you run Hive queries over this data, the job fails with "Not a data file." from here
https://github.com/apache/avro/blob/trunk/lang/java/avro/src/main/java/org/apache/avro/file/DataFileStream.java#L102



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message