hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chaoyu Tang (JIRA)" <>
Subject [jira] [Created] (HIVE-12607) Hive fails on zero length sequence files
Date Mon, 07 Dec 2015 20:48:11 GMT
Chaoyu Tang created HIVE-12607:

             Summary: Hive fails on zero length sequence files
                 Key: HIVE-12607
             Project: Hive
          Issue Type: Bug
          Components: Serializers/Deserializers
    Affects Versions: 1.2.1
            Reporter: Chaoyu Tang
            Assignee: Chaoyu Tang

Flume will, at times, generate zero length sequence files which cause the Hive query failure.
To reproduce the issue:
> create external table test (id string)
partitioned by (system string,date string)
LOCATION '/user/me/test';

hadoop fs -mkdir /user/me/test/logs
hadoop fs -mkdir /user/me/test/logs/date=2014
hadoop fs -touchz /user/me/test/logs/date=2014/a.txt

-> ALTER TABLE test ADD PARTITION (system = 'logs',date='2014') location '/user/me/test/logs/date=2014';
-> select * from test t1,test t2 where =;

This message was sent by Atlassian JIRA

View raw message