org.apache.hadoop.hive.metastore.api.ConfigValSecurityException Java Examples
The following examples show how to use
org.apache.hadoop.hive.metastore.api.ConfigValSecurityException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AWSCatalogMetastoreClient.java From aws-glue-data-catalog-client-for-apache-hive-metastore with Apache License 2.0 | 5 votes |
@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); }
Example #2
Source File: AWSCatalogMetastoreClient.java From aws-glue-data-catalog-client-for-apache-hive-metastore with Apache License 2.0 | 5 votes |
@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); }