【问题标题】:Hbase Bulk loading exception (HFile version)Hbase批量加载异常(HFile版本)
【发布时间】:2014-09-17 13:52:50
【问题描述】:

我正在从 HDFS 将数据加载到 HBase。

 FileOutputFormat.setOutputPath(job, output);

 HTable table = new HTable(conf, tableName);
 HFileOutputFormat.configureIncrementalLoad(job, table);        
 .......    
 LoadIncrementalHFiles loader = new LoadIncrementalHFiles(config);
 loader.doBulkLoad(new Path(inPath), hTable);

这里是例外:

Caused by: java.lang.IllegalArgumentException: Invalid HFile version: 2099722 (expected to be between 2 and 3)
    at org.apache.hadoop.hbase.io.hfile.HFile.checkFormatVersion(HFile.java:888)
    at org.apache.hadoop.hbase.io.hfile.FixedFileTrailer.readFromStream(FixedFileTrailer.java:402)
    at org.apache.hadoop.hbase.io.hfile.HFile.pickReaderVersion(HFile.java:537)

Exception in thread "main" org.apache.hadoop.hbase.io.hfile.CorruptHFileException: Problem reading HFile Trailer from file hdfs:...
    at org.apache.hadoop.hbase.io.hfile.HFile.pickReaderVersion(HFile.java:552)
    at org.apache.hadoop.hbase.io.hfile.HFile.createReader(HFile.java:595)

你能给点建议吗?

提前致谢!

【问题讨论】:

    标签: java hbase hdfs bulk-load


    【解决方案1】:

    你试过跑步吗:

    hbase org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles pathToHFiles 表名

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多