HBASE-20521 change getConf as first sequence instead of jobContext in TableOutputFormat.checkOutputSpec, add unit tests
This commit is contained in:
parent
d91908b0d4
commit
421ed6ca51
|
@ -174,9 +174,9 @@ implements Configurable {
|
||||||
@Override
|
@Override
|
||||||
public void checkOutputSpecs(JobContext context) throws IOException,
|
public void checkOutputSpecs(JobContext context) throws IOException,
|
||||||
InterruptedException {
|
InterruptedException {
|
||||||
Configuration hConf = context.getConfiguration();
|
Configuration hConf = getConf();
|
||||||
if(hConf == null) {
|
if (hConf == null) {
|
||||||
hConf = this.conf;
|
hConf = context.getConfiguration();
|
||||||
}
|
}
|
||||||
|
|
||||||
try (Admin admin = ConnectionFactory.createConnection(hConf).getAdmin()) {
|
try (Admin admin = ConnectionFactory.createConnection(hConf).getAdmin()) {
|
||||||
|
|
Loading…
Reference in New Issue