Class TestBulkLoadCollectorJobIntegration
java.lang.Object
org.apache.hadoop.hbase.backup.mapreduce.TestBulkLoadCollectorJobIntegration
@Tag("org.apache.hadoop.hbase.testclassification.MapReduceTests") @Tag("org.apache.hadoop.hbase.testclassification.LargeTests")
public class TestBulkLoadCollectorJobIntegration
extends Object
Integration-like unit test for BulkLoadCollectorJob.
- Creates a WAL with a BULK_LOAD descriptor (ProtobufLogWriter).
- Runs BulkLoadCollectorJob.
- Verifies the job emits the expected store-file path.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.conf.Configurationprivate static final byte[]private static org.apache.hadoop.fs.FileSystemprivate static org.apache.hadoop.fs.Path(package private) static final org.apache.hadoop.hbase.client.RegionInfoprivate static final org.slf4j.Loggerprivate static org.apache.hadoop.fs.Pathprotected org.apache.hadoop.hbase.regionserver.MultiVersionConcurrencyControlprotected static NavigableMap<byte[],Integer> (package private) static final org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.wal.WAL.EntrycreateBulkLoadWalEntry(String regionName, String family, String... storeFiles) private static StringgetName()protected org.apache.hadoop.hbase.wal.WALKeyImplgetWalKeyImpl(long time, NavigableMap<byte[], Integer> scopes) voidsetUp()static voidstatic voidvoidTest that BulkLoadCollectorJob discovers and emits store-file paths from WAL files created using WALFactory (no RegionServer needed).
-
Field Details
-
LOG
-
TEST_UTIL
-
conf
-
fs
-
hbaseDir
-
tableName
-
info
-
family
-
logDir
-
mvcc
-
scopes
-
-
Constructor Details
-
TestBulkLoadCollectorJobIntegration
public TestBulkLoadCollectorJobIntegration()
-
-
Method Details
-
getName
-
setUp
- Throws:
Exception
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testBulkLoadCollectorEmitsStoreFilesFromWAL
Test that BulkLoadCollectorJob discovers and emits store-file paths from WAL files created using WALFactory (no RegionServer needed).- Throws:
Exception
-
createBulkLoadWalEntry
private org.apache.hadoop.hbase.wal.WAL.Entry createBulkLoadWalEntry(String regionName, String family, String... storeFiles)
-