Package org.apache.hadoop.hbase.tool
Interface BulkLoadHFiles
- All Known Implementing Classes:
BulkLoadHFilesTool
The tool to let you load the output of
HFileOutputFormat
into an existing table
programmatically. Not thread safe.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Represents an HFile waiting to be loaded. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
HBASE-24221 Support bulkLoadHFile by family to avoid long time waiting of bulkLoadHFile because of compacting at server sidestatic final String
static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionPerform a bulk load of the given directory into the given pre-existing table.Perform a bulk load of the given directory into the given pre-existing table.static BulkLoadHFiles
create
(org.apache.hadoop.conf.Configuration conf)
-
Field Details
-
RETRY_ON_IO_EXCEPTION
- See Also:
-
MAX_FILES_PER_REGION_PER_FAMILY
- See Also:
-
ASSIGN_SEQ_IDS
- See Also:
-
CREATE_TABLE_CONF_KEY
- See Also:
-
IGNORE_UNMATCHED_CF_CONF_KEY
- See Also:
-
ALWAYS_COPY_FILES
- See Also:
-
BULK_LOAD_HFILES_BY_FAMILY
HBASE-24221 Support bulkLoadHFile by family to avoid long time waiting of bulkLoadHFile because of compacting at server side- See Also:
-
-
Method Details
-
bulkLoad
Map<BulkLoadHFiles.LoadQueueItem,ByteBuffer> bulkLoad(TableName tableName, Map<byte[], List<org.apache.hadoop.fs.Path>> family2Files) throws TableNotFoundException, IOExceptionPerform a bulk load of the given directory into the given pre-existing table.- Parameters:
tableName
- the table to load intofamily2Files
- map of family to List of hfiles- Throws:
TableNotFoundException
- if table does not yet existIOException
-
bulkLoad
Map<BulkLoadHFiles.LoadQueueItem,ByteBuffer> bulkLoad(TableName tableName, org.apache.hadoop.fs.Path dir) throws TableNotFoundException, IOException Perform a bulk load of the given directory into the given pre-existing table.- Parameters:
tableName
- the table to load intodir
- the directory that was provided as the output path of a job usingHFileOutputFormat
- Throws:
TableNotFoundException
- if table does not yet existIOException
-
create
-