Class TestImportTSVWithOperationAttributes

java.lang.Object
org.apache.hadoop.hbase.mapreduce.TestImportTSVWithOperationAttributes
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable

@Tag("org.apache.hadoop.hbase.testclassification.MapReduceTests") @Tag("org.apache.hadoop.hbase.testclassification.LargeTests") public class TestImportTSVWithOperationAttributes extends Object implements org.apache.hadoop.conf.Configurable
  • Field Details

  • Constructor Details

  • Method Details

    • getConf

      public org.apache.hadoop.conf.Configuration getConf()
      Specified by:
      getConf in interface org.apache.hadoop.conf.Configurable
    • setConf

      public void setConf(org.apache.hadoop.conf.Configuration conf)
      Specified by:
      setConf in interface org.apache.hadoop.conf.Configurable
    • provisionCluster

      @BeforeAll public static void provisionCluster() throws Exception
      Throws:
      Exception
    • releaseCluster

      @AfterAll public static void releaseCluster() throws Exception
      Throws:
      Exception
    • testMROnTable

      @Test public void testMROnTable(org.junit.jupiter.api.TestInfo testInfo) throws Exception
      Throws:
      Exception
    • testMROnTableWithInvalidOperationAttr

      @Test public void testMROnTableWithInvalidOperationAttr(org.junit.jupiter.api.TestInfo testInfo) throws Exception
      Throws:
      Exception
    • doMROnTableTest

      private org.apache.hadoop.util.Tool doMROnTableTest(HBaseTestingUtil util, String family, String data, String[] args, int valueMultiplier, boolean dataAvailable) throws Exception
      Run an ImportTsv job and perform basic validation on the results. Returns the ImportTsv Tool instance so that other tests can inspect it for further validation as necessary. This method is static to insure non-reliance on instance's util/conf facilities. Any arguments to pass BEFORE inputFile path is appended.
      Returns:
      The Tool instance used to run the test.
      Throws:
      Exception
    • validateTable

      private static void validateTable(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, String family, int valueMultiplier, boolean dataAvailable) throws IOException
      Confirm ImportTsv via data in online table.
      Throws:
      IOException