Changes between Initial Version and Version 1 of loaddata/bulkload


Ignore:
Timestamp:
08/21/2012 09:28:29 AM (14 years ago)
Author:
liaojiaohe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • loaddata/bulkload

    v1 v1  
     1[http://hbase.apache.org/book.html#arch.bulk.load Bulk.Loads官网] 
     2 
     3 
     4使用命令方式批量录入 
     5{{{ 
     6hbase org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles hdfs://hadooptest-11-63:9000/hfimport/1345442109471 tablename 
     7}}} 
     8 
     9 
     10使用API方式录入 
     11{{{ 
     12HTable table = new HTable(getConf(), HTABLE_NAME); 
     13if (table != null) { 
     14    LoadIncrementalHFiles loader = new LoadIncrementalHFiles(getConf()); 
     15    loader.doBulkLoad(outputPath, table); 
     16    table.close(); 
     17} 
     18 
     19}}}