2. Add a Policy

Policies define who can access which resources within a Repository. Policies can only be written for known Users and Groups, that is users and groups that have already been defined in the HDP Security Administration Web UI, either by the User and Groups Synchronizer or manually entered.

To add a Policy:

  1. Click Policy Manager > Repository Name > Add New Policy.

    The Create Policy page displays.

  2. Complete the Policy Details:

     

    Table 5.1. Policy Details

    FieldDescription
    HDFS: Resource Path or Hive/HBase Tables and ColumnsFor HDFS, enter a comma separated list of paths for the policy. For example, /apps/tez/qa,/apps/tez/production. For Hive and HBase, start typing the table name and select the tables you want to add. In the path, you can use regular expression to match multiple directory (or table/column/column family names), for example, /apps/tez/qa* matches all subdirectories of /apps/tez that being with 'qa'.
    DescriptionEnter text that describes the policy, only visible from the Policy Manager UI.
    RecursiveSelect Yes to grant permission to all subdirectories of the specified path.
    Audit LoggingSelect Yes to log activity to the directory to the Audit and Reporting facility of the HDP Security Administration tools.


  3. Complete the User and Group Details:

     

    Table 5.2. Policy Details

    FieldDescription
    Group PermissionClick the + sign to select a group from the Users and Groups list. If the group is not listed, it must be added to the server that the User and Group Synchronizer polls for accounts. If the user or group was recently added, it will appear after the next sync_interval.
    User PermissionClick the + sign to select a user from the Users and Groups list. If the user is not listed, it must be added to the server that the User and Group Synchronizer polls for accounts. If the user or group was recently added, it will appear after the next sync_interval.
    Policy StatusSelect Enabled to enforce the Policy, or Disabled to keep a copy of the Policy without enforcing it.


  4. Click Save.


loading table of contents...