in flink-connector-hbase-2.2/src/main/java/org/apache/flink/connector/hbase2/source/HBaseRowDataInputFormat.java [87:99]
private void connectToTable() throws IOException {
try {
if (connection == null) {
connection = ConnectionFactory.createConnection(getHadoopConfiguration());
}
TableName name = TableName.valueOf(getTableName());
table = connection.getTable(name);
regionLocator = connection.getRegionLocator(name);
} catch (TableNotFoundException tnfe) {
LOG.error("The table " + tableName + " not found ", tnfe);
throw new RuntimeException("HBase table '" + tableName + "' not found.", tnfe);
}
}