This topic describes problems that you may encounter when creating and using security policies. It includes recommendations on how to troubleshoot and resolve problems.
Suppose you encounter the following error when attempting to create a security policy:
ERROR (1) - Security policy create of XXX failed: Security policy creation failed: No privileges to create a security policy
You must have cluster-level create/delete security policy (cp) permission
to create a security policy.
To check your cluster-level permissions, assuming you have cluster-level
login permission, you can run the following command:
maprcli acl show -type cluster
The following shows sample output for a user with the necessary cp
permission:
Allowed actions Principal
[login, cp] User PolicyAdmin
If you receive an error when running the maprcli security policy info
command, the root cause depends on the error you encounter:
ERROR (22) - You do not have a ticket to communicate with 10.10.20.40:7222. Retry after obtaining a new ticket using maprlogin
This indicates that you do not have a MapR ticket to access the secure MapR cluster.
Create a MapR ticket by running maprlogin password.
ERROR (2) - Security policy lookup of XXX failed, Operation not permitted
The possible reasons for this error are as follows:
| Possible Cause | Troubleshooting Steps |
|---|---|
Either you or the group that you belong to does not have the policy-level
read permission. |
|
| You are not a member of a group that has policy-level permission. |
|
| Your MapR ticket does not reflect your updated group membership because you created the ticket before changing your group membership. |
|
Depending on the property you are trying to modify, you must have certain policy-level permissions:
If you encounter the following error:
ERROR (1) - Security policy update of XXX failed: Insufficient privileges to update general section for security policy XXX
You must have one of the following cluster-level or policy-level permissions:
cp, a, or fc
permissiona or fc permissionIf you encounter the following error:
ERROR (1) - Security policy update of XXX failed: Insufficient privileges to update ACL for security policy XXX
You must have one of the following cluster-level or policy-level permissions:
cp or admin permissionadmin permissionIf you cannot tag a policy to a data object or the volume page search in the Control
System is not displaying a security policy, verify that allowtagging
is set to true, as described in Changing the State of a Security Policy.
If mirroring or restore fails due to no policies, import the policies from the global policy master or a member cluster that has the policies, as described in Security Policy Domain and Policy Management.
The policies may have been modified on the global policy master and not propagated to either of them. Get the latest policies, as described in Security Policy Domain and Policy Management.
View the filesystem audit logs on the master node.
| Component | Location |
| PolicyServer | cldb.log |
| Access Check | MFS |
| Audit Logs | NC master node FS Audit Logs |
| Client (For tagging) | Regular Client logs (ffs.log or enable Hadoop debug then stdout) |