Package org.apache.hadoop.hbase.backup
Class PITRTestUtil
java.lang.Object
org.apache.hadoop.hbase.backup.PITRTestUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]buildBackupArgs(String backupType, org.apache.hadoop.hbase.TableName[] tables, boolean continuousEnabled, String backupRootDir) static String[]buildPITRArgs(org.apache.hadoop.hbase.TableName[] sourceTables, org.apache.hadoop.hbase.TableName[] targetTables, long endTime, String backupRootDir) static voidbulkLoadHFiles(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.fs.Path inputDir, org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.conf.Configuration conf) static voidgenerateHFiles(org.apache.hadoop.fs.Path outputDir, org.apache.hadoop.conf.Configuration conf, String cfName) static intgetRowCount(HBaseTestingUtil testUtil, org.apache.hadoop.hbase.TableName tableName) static voidloadRandomData(HBaseTestingUtil testUtil, org.apache.hadoop.hbase.TableName tableName, byte[] family, int totalRows) static void
-
Field Details
-
LOG
-
DEFAULT_WAIT_FOR_REPLICATION_MS
- See Also:
-
-
Constructor Details
-
PITRTestUtil
private PITRTestUtil()
-
-
Method Details
-
buildPITRArgs
public static String[] buildPITRArgs(org.apache.hadoop.hbase.TableName[] sourceTables, org.apache.hadoop.hbase.TableName[] targetTables, long endTime, String backupRootDir) -
buildBackupArgs
public static String[] buildBackupArgs(String backupType, org.apache.hadoop.hbase.TableName[] tables, boolean continuousEnabled, String backupRootDir) -
loadRandomData
public static void loadRandomData(HBaseTestingUtil testUtil, org.apache.hadoop.hbase.TableName tableName, byte[] family, int totalRows) throws IOException - Throws:
IOException
-
waitForReplication
-
getRowCount
public static int getRowCount(HBaseTestingUtil testUtil, org.apache.hadoop.hbase.TableName tableName) throws IOException - Throws:
IOException
-
generateHFiles
public static void generateHFiles(org.apache.hadoop.fs.Path outputDir, org.apache.hadoop.conf.Configuration conf, String cfName) throws IOException - Throws:
IOException
-
bulkLoadHFiles
public static void bulkLoadHFiles(org.apache.hadoop.hbase.TableName tableName, org.apache.hadoop.fs.Path inputDir, org.apache.hadoop.hbase.client.Connection conn, org.apache.hadoop.conf.Configuration conf) throws IOException - Throws:
IOException
-