public interface RangerRestClient
| Modifier and Type | Method and Description |
|---|---|
List<RangerPolicy> |
changeDataSet(List<RangerPolicy> rangerPolicies,
String sourceDbName,
String targetDbName) |
boolean |
checkConnection(String url,
HiveConf hiveConf) |
void |
deleteRangerPolicy(String policyName,
String baseUrl,
String rangerHiveServiceName,
HiveConf hiveConf) |
RangerExportPolicyList |
exportRangerPolicies(String sourceRangerEndpoint,
String dbName,
String rangerHiveServiceName,
HiveConf hiveConf) |
RangerPolicy |
getDenyPolicyForReplicatedDb(String rangerServiceName,
String sourceDb,
String targetDb) |
RangerExportPolicyList |
importRangerPolicies(RangerExportPolicyList rangerExportPolicyList,
String dbName,
String baseUrl,
String rangerHiveServiceName,
HiveConf hiveConf) |
RangerExportPolicyList |
readRangerPoliciesFromJsonFile(org.apache.hadoop.fs.Path filePath,
HiveConf conf) |
List<RangerPolicy> |
removeMultiResourcePolicies(List<RangerPolicy> rangerPolicies) |
org.apache.hadoop.fs.Path |
saveRangerPoliciesToFile(RangerExportPolicyList rangerExportPolicyList,
org.apache.hadoop.fs.Path stagingDirPath,
String fileName,
HiveConf conf) |
RangerExportPolicyList exportRangerPolicies(String sourceRangerEndpoint, String dbName, String rangerHiveServiceName, HiveConf hiveConf) throws Exception
ExceptionRangerExportPolicyList importRangerPolicies(RangerExportPolicyList rangerExportPolicyList, String dbName, String baseUrl, String rangerHiveServiceName, HiveConf hiveConf) throws Exception
Exceptionvoid deleteRangerPolicy(String policyName, String baseUrl, String rangerHiveServiceName, HiveConf hiveConf) throws Exception
ExceptionList<RangerPolicy> removeMultiResourcePolicies(List<RangerPolicy> rangerPolicies)
List<RangerPolicy> changeDataSet(List<RangerPolicy> rangerPolicies, String sourceDbName, String targetDbName)
org.apache.hadoop.fs.Path saveRangerPoliciesToFile(RangerExportPolicyList rangerExportPolicyList, org.apache.hadoop.fs.Path stagingDirPath, String fileName, HiveConf conf) throws Exception
ExceptionRangerExportPolicyList readRangerPoliciesFromJsonFile(org.apache.hadoop.fs.Path filePath, HiveConf conf) throws SemanticException
SemanticExceptionboolean checkConnection(String url, HiveConf hiveConf) throws Exception
ExceptionRangerPolicy getDenyPolicyForReplicatedDb(String rangerServiceName, String sourceDb, String targetDb) throws SemanticException
SemanticExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.