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
Exception
RangerExportPolicyList importRangerPolicies(RangerExportPolicyList rangerExportPolicyList, String dbName, String baseUrl, String rangerHiveServiceName, HiveConf hiveConf) throws Exception
Exception
void deleteRangerPolicy(String policyName, String baseUrl, String rangerHiveServiceName, HiveConf hiveConf) throws Exception
Exception
List<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
Exception
RangerExportPolicyList readRangerPoliciesFromJsonFile(org.apache.hadoop.fs.Path filePath, HiveConf conf) throws SemanticException
SemanticException
boolean checkConnection(String url, HiveConf hiveConf) throws Exception
Exception
RangerPolicy getDenyPolicyForReplicatedDb(String rangerServiceName, String sourceDb, String targetDb) throws SemanticException
SemanticException
Copyright © 2023 The Apache Software Foundation. All rights reserved.