Skip to content

Commit

Permalink
fix npe and load local keytab file
Browse files Browse the repository at this point in the history
  • Loading branch information
lijiangbo committed Apr 8, 2020
1 parent 548a245 commit cdde2a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ public static String getPrincipalFileName(Map<String, Object> config) {
throw new RuntimeException("[principalFile]必须指定");
}

boolean useLocalFile = MapUtils.getBooleanValue(config, KEY_USE_LOCAL_FILE);
if (useLocalFile) {
return fileName;
}

if (fileName.contains(SP)) {
fileName = fileName.substring(fileName.lastIndexOf(SP) + 1);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public abstract class BaseRichInputFormat extends org.apache.flink.api.common.io

protected FormatState formatState;

protected TestConfig testConfig;
protected TestConfig testConfig = TestConfig.defaultConfig();

protected transient BaseMetric inputMetric;

Expand Down

0 comments on commit cdde2a6

Please sign in to comment.