Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Classes | |
class | SentryServiceClient |
Public Member Functions | |
SentryPolicyService (SentryConfig config) | |
void | dropRole (User requestingUser, String roleName, boolean ifExists) throws ImpalaException |
void | createRole (User requestingUser, String roleName, boolean ifNotExists) throws ImpalaException |
void | grantRoleToGroup (User requestingUser, String roleName, String groupName) throws ImpalaException |
void | revokeRoleFromGroup (User requestingUser, String roleName, String groupName) throws ImpalaException |
void | grantRolePrivilege (User requestingUser, String roleName, TPrivilege privilege) throws ImpalaException |
void | revokeRolePrivilege (User requestingUser, String roleName, TPrivilege privilege) throws ImpalaException |
List< TSentryRole > | listUserRoles (User requestingUser) throws ImpalaException |
List< TSentryRole > | listAllRoles (User requestingUser) throws ImpalaException |
List< TSentryPrivilege > | listRolePrivileges (User requestingUser, String roleName) throws ImpalaException |
Static Public Member Functions | |
static TPrivilege | sentryPrivilegeToTPrivilege (TSentryPrivilege sentryPriv) |
Private Attributes | |
final String | ACCESS_DENIED_ERROR_MSG |
final SentryConfig | config_ |
Static Private Attributes | |
static final Logger | LOG = LoggerFactory.getLogger(SentryPolicyService.class) |
Wrapper around the SentryService APIs that are used by Impala and Impala tests.
Definition at line 44 of file SentryPolicyService.java.
|
inline |
Definition at line 93 of file SentryPolicyService.java.
References com.cloudera.impala.util.SentryPolicyService.config_.
|
inline |
Creates a new role.
requestingUser | - The requesting user. |
roleName | - The role to create. |
ifNotExists | - If true, no error is thrown if the role already exists. |
ImpalaException | - On any error creating the role. |
Definition at line 134 of file SentryPolicyService.java.
References com.cloudera.impala.util.SentryPolicyService.ACCESS_DENIED_ERROR_MSG.
|
inline |
Drops a role.
requestingUser | - The requesting user. |
roleName | - The role to drop. |
ifExists | - If true, no error is thrown if the role does not exist. |
ImpalaException | - On any error dropping the role. |
Definition at line 105 of file SentryPolicyService.java.
References com.cloudera.impala.util.SentryPolicyService.ACCESS_DENIED_ERROR_MSG.
|
inline |
Grants privileges to an existing role.
requestingUser | - The requesting user. |
roleName | - The role to grant privileges to (case insensitive). |
privilege | - The privilege to grant. |
ImpalaException | - On any error |
Definition at line 216 of file SentryPolicyService.java.
References com.cloudera.impala.util.SentryPolicyService.ACCESS_DENIED_ERROR_MSG.
|
inline |
Grants a role to a group.
requestingUser | - The requesting user. |
roleName | - The role to grant to a group. Role must already exist. |
groupName | - The group to grant the role to. |
ImpalaException | - On any error. |
Definition at line 162 of file SentryPolicyService.java.
References com.cloudera.impala.util.SentryPolicyService.ACCESS_DENIED_ERROR_MSG.
|
inline |
Lists all roles.
Definition at line 332 of file SentryPolicyService.java.
References com.cloudera.impala.util.SentryPolicyService.ACCESS_DENIED_ERROR_MSG.
Referenced by com.cloudera.impala.util.SentryProxy.PolicyReader.run().
|
inline |
Lists all privileges granted to a role.
Definition at line 349 of file SentryPolicyService.java.
References com.cloudera.impala.util.SentryPolicyService.ACCESS_DENIED_ERROR_MSG.
Referenced by com.cloudera.impala.util.SentryProxy.PolicyReader.run().
|
inline |
Lists all roles granted to all groups a user belongs to.
Definition at line 312 of file SentryPolicyService.java.
References com.cloudera.impala.util.SentryPolicyService.ACCESS_DENIED_ERROR_MSG.
|
inline |
Removes a role from a group.
requestingUser | - The requesting user. |
roleName | - The role name to remove. |
groupName | - The group to remove the role from. |
InternalException | - On any error. |
Definition at line 189 of file SentryPolicyService.java.
References com.cloudera.impala.util.SentryPolicyService.ACCESS_DENIED_ERROR_MSG.
|
inline |
Revokes privileges from an existing role.
requestingUser | - The requesting user. |
roleName | - The role to grant privileges to (case insensitive). |
privilege | - The privilege to grant to the object. |
ImpalaException | - On any error |
Definition at line 267 of file SentryPolicyService.java.
References com.cloudera.impala.util.SentryPolicyService.ACCESS_DENIED_ERROR_MSG.
|
inlinestatic |
Utility function that converts a TSentryPrivilege to an Impala TPrivilege object.
Definition at line 369 of file SentryPolicyService.java.
References impala_udf.ALL.
|
private |
Definition at line 46 of file SentryPolicyService.java.
Referenced by com.cloudera.impala.util.SentryPolicyService.createRole(), com.cloudera.impala.util.SentryPolicyService.dropRole(), com.cloudera.impala.util.SentryPolicyService.grantRolePrivilege(), com.cloudera.impala.util.SentryPolicyService.grantRoleToGroup(), com.cloudera.impala.util.SentryPolicyService.listAllRoles(), com.cloudera.impala.util.SentryPolicyService.listRolePrivileges(), com.cloudera.impala.util.SentryPolicyService.listUserRoles(), com.cloudera.impala.util.SentryPolicyService.revokeRoleFromGroup(), and com.cloudera.impala.util.SentryPolicyService.revokeRolePrivilege().
|
private |
Definition at line 48 of file SentryPolicyService.java.
Referenced by com.cloudera.impala.util.SentryPolicyService.SentryPolicyService().
|
staticprivate |
Definition at line 45 of file SentryPolicyService.java.