@Override
public String getConfigValue(String name, String defaultValue) throws TException, ConfigValSecurityException {
if(!Pattern.matches("(hive|hdfs|mapred).*", name)) {
throw new ConfigValSecurityException("For security reasons, the config key " + name + " cannot be accessed");
}
return conf.get(name, defaultValue);
}
@Override
public String getConfigValue(String name, String defaultValue) throws TException, ConfigValSecurityException {
if(!Pattern.matches("(hive|hdfs|mapred).*", name)) {
throw new ConfigValSecurityException("For security reasons, the config key " + name + " cannot be accessed");
}
return conf.get(name, defaultValue);
}