HFile/LoadIncrementalHFiles should specify file name when it fails to load a 
file.
----------------------------------------------------------------------------------

                 Key: HBASE-5340
                 URL: https://issues.apache.org/jira/browse/HBASE-5340
             Project: HBase
          Issue Type: Bug
    Affects Versions: 0.92.0, 0.90.5
            Reporter: Jonathan Hsieh


I was attempting to do a bulk load and got this error message.  Unfortunately 
it didn't tell me which file had the problem.

{code}
Exception in thread "main" java.io.IOException: Trailer 'header' is wrong; does 
the trailer size match content?
        at 
org.apache.hadoop.hbase.io.hfile.HFile$FixedFileTrailer.deserialize(HFile.java:1527)
        at 
org.apache.hadoop.hbase.io.hfile.HFile$Reader.readTrailer(HFile.java:885)
        at 
org.apache.hadoop.hbase.io.hfile.HFile$Reader.loadFileInfo(HFile.java:819)
        at 
org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.tryLoad(LoadIncrementalHFiles.java:204)
        at 
org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.doBulkLoad(LoadIncrementalHFiles.java:173)
        at 
org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.run(LoadIncrementalHFiles.java:452)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
        at 
org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.main(LoadIncrementalHFiles.java:457)
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to