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
-
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) void
Disables replication for all bulkloads done via this instance, when bulkload replication is configured.boolean
Returns true if replication has been disabled.
-
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:
-
-
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
-
disableReplication
void disableReplication()Disables replication for all bulkloads done via this instance, when bulkload replication is configured. -
isReplicationDisabled
boolean isReplicationDisabled()Returns true if replication has been disabled. -
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
-