public class TestTableInputFormat extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestTableInputFormat.ExampleDeprecatedTIF |
static class |
TestTableInputFormat.ExampleJobConfigurableTIF |
static class |
TestTableInputFormat.ExampleTIF |
static class |
TestTableInputFormat.ExampleVerifier |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static byte[][] |
columns |
(package private) static byte[] |
FAMILY |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.mapred.MiniMRCluster |
mrCluster |
private static HBaseTestingUtility |
UTIL |
| Constructor and Description |
|---|
TestTableInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
void |
before() |
static void |
beforeClass() |
(package private) static boolean |
checkResult(org.apache.hadoop.hbase.client.Result r,
org.apache.hadoop.hbase.io.ImmutableBytesWritable key,
byte[] expectedKey,
byte[] expectedValue)
Verify that the result and key have expected values.
|
(package private) static org.apache.hadoop.hbase.client.Table |
createDNRIOEScannerTable(byte[] name,
int failCnt)
Create a table that throws a NotServingRegionException on first scanner
next call
|
(package private) static org.apache.hadoop.hbase.client.Table |
createIOEScannerTable(byte[] name,
int failCnt)
Create a table that IOE's on first scanner next call
|
static org.apache.hadoop.hbase.client.Table |
createTable(byte[] tableName)
Setup a table with two rows and values.
|
static org.apache.hadoop.hbase.client.Table |
createTable(byte[] tableName,
byte[][] families)
Setup a table with two rows and values per column family.
|
(package private) static void |
runTestMapreduce(org.apache.hadoop.hbase.client.Table table)
Create table data and run tests on specified htable using the
o.a.h.hbase.mapreduce API.
|
void |
testDeprecatedExtensionOfTableInputFormatBase() |
void |
testExtensionOfTableInputFormatBase()
Verify the example we present in javadocs on TableInputFormatBase
|
(package private) void |
testInputFormat(Class<? extends org.apache.hadoop.mapreduce.InputFormat> clazz) |
void |
testJobConfigurableExtensionOfTableInputFormatBase() |
void |
testTableRecordReaderMapreduce()
Run test assuming no errors using newer mapreduce api
|
void |
testTableRecordReaderScannerFailMapreduce()
Run test assuming Scanner IOException failure using newer mapreduce api
|
void |
testTableRecordReaderScannerFailMapreduceTwice()
Run test assuming Scanner IOException failure using newer mapreduce api
|
void |
testTableRecordReaderScannerTimeoutMapreduce()
Run test assuming NotServingRegionException using newer mapreduce api
|
void |
testTableRecordReaderScannerTimeoutMapreduceTwice()
Run test assuming NotServingRegionException using newer mapreduce api
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static org.apache.hadoop.mapred.MiniMRCluster mrCluster
static final byte[] FAMILY
private static final byte[][] columns
public TestTableInputFormat()
public static void beforeClass() throws Exception
Exceptionpublic static void afterClass() throws Exception
Exceptionpublic void before() throws IOException
IOExceptionpublic static org.apache.hadoop.hbase.client.Table createTable(byte[] tableName) throws IOException
tableName - IOExceptionpublic static org.apache.hadoop.hbase.client.Table createTable(byte[] tableName, byte[][] families) throws IOException
tableName - IOExceptionstatic boolean checkResult(org.apache.hadoop.hbase.client.Result r, org.apache.hadoop.hbase.io.ImmutableBytesWritable key, byte[] expectedKey, byte[] expectedValue)
r - single row resultkey - the row keyexpectedKey - the expected keyexpectedValue - the expected valuestatic void runTestMapreduce(org.apache.hadoop.hbase.client.Table table) throws IOException, InterruptedException
table - IOExceptionInterruptedExceptionstatic org.apache.hadoop.hbase.client.Table createIOEScannerTable(byte[] name, int failCnt) throws IOException
IOExceptionstatic org.apache.hadoop.hbase.client.Table createDNRIOEScannerTable(byte[] name, int failCnt) throws IOException
IOExceptionpublic void testTableRecordReaderMapreduce() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testTableRecordReaderScannerFailMapreduce() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testTableRecordReaderScannerFailMapreduceTwice() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testTableRecordReaderScannerTimeoutMapreduce() throws IOException, InterruptedException
InterruptedExceptionorg.apache.hadoop.hbase.DoNotRetryIOExceptionIOExceptionpublic void testTableRecordReaderScannerTimeoutMapreduceTwice() throws IOException, InterruptedException
InterruptedExceptionorg.apache.hadoop.hbase.NotServingRegionExceptionIOExceptionpublic void testExtensionOfTableInputFormatBase() throws IOException, InterruptedException, ClassNotFoundException
public void testJobConfigurableExtensionOfTableInputFormatBase() throws IOException, InterruptedException, ClassNotFoundException
public void testDeprecatedExtensionOfTableInputFormatBase() throws IOException, InterruptedException, ClassNotFoundException
void testInputFormat(Class<? extends org.apache.hadoop.mapreduce.InputFormat> clazz) throws IOException, InterruptedException, ClassNotFoundException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.