Advanced Ranger Configurations
Limit the size of query results and control validation of user and group names used by Apache Ranger in Big Data Service. Configure the parameters ranger.db.maxrows.default, ranger.usersync.name.validation.enabled, and ranger.usersync.name.validation.regex.
Limiting the Size of Query Results
For Big Data Service clusters, the property ranger.db.maxrows.default in Apache Ranger controls the default maximum number of rows that are returned when retrieving data from the Ranger database. This property is used to limit the size of query results to prevent excessively large responses. To configure ranger.db.maxrows.default, complete the following:
- Access Apache Ambari.
- From the side toolbar, under Services select Ranger.
- Select the Configs tab, and then select Advanced.
-
Update the
ranger.db.maxrows.defaultproperty. For example, set the value to 500. - Select Add to save the update.
- Save the changes.
- Select Restart and select Restart all affected. Select Confirm restart all.
Controlling Validation of User and Group Names
ranger.usersync.name.validation.enabled and ranger.usersync.name.validation.regex in Apache Ranger control whether Ranger UserSync validates user and group names before syncing them to Ranger Admin.- The
ranger.usersync.name.validation.enabledproperty enables or disables user and group name validation. By default, this property is set to false. When set to true, Ranger UserSync skips user or group names that don't match the configured validation regex. - The
ranger.usersync.name.validation.regexproperty defines the Java regular expression used to validate user and group names. If this property isn't configured, Ranger UserSync uses the default validation regex ifranger.usersync.name.validation.enabledis enabled.
Following are the steps to configure these UserSync properties.