Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-12607

Hive fails on zero length sequence files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2.1
    • None
    • None

    Description

      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)
      STORED AS SEQUENCEFILE
      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
      
      hive
      -> ALTER TABLE test ADD PARTITION (system = 'logs',date='2014') location '/user/me/test/logs/date=2014';
      -> select * from test t1,test t2 where t1.id = t2.id;
      

      Attachments

        Issue Links

          Activity

            People

              ctang Chaoyu Tang
              ctang Chaoyu Tang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: