Java源码示例:org.apache.hadoop.hive.metastore.api.ConfigValSecurityException

示例1
@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);
}
 
示例2
@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);
}