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