| Version 1 (modified by liaojiaohe, 14 years ago) (diff) |
|---|
使用命令方式批量录入
hbase org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles hdfs://hadooptest-11-63:9000/hfimport/1345442109471 tablename
使用API方式录入
HTable table = new HTable(getConf(), HTABLE_NAME);
if (table != null) {
LoadIncrementalHFiles loader = new LoadIncrementalHFiles(getConf());
loader.doBulkLoad(outputPath, table);
table.close();
}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)