Example configuration rules

Example rule definitions for user, group, and wildcard quotas.

The examples below are incomplete XML snippets used within admission control configuration files. They omit required elements such as <aclSubmitApps>:

<queue name="group-set-small">
  <!-- Note: for brevity's sake, this example intentionality excludes other elements such as weight, schedulingPolicy, and aclSubmitApps -->

  <!-- Any user can run 1 query in the small pool -->
  <userQueryLimit>
    <user>*</user>
    <totalCount>1</totalCount>
  </userQueryLimit>
  <!-- Members of the group 'it' can run 2 queries in the small pool -->
  <groupQueryLimit>
    <group>it</group>
    <totalCount>2</totalCount>
  </groupQueryLimit>
  <!-- The user 'fiona' can run 3 queries in the small pool -->
  <userQueryLimit>
    <user>fiona</user>
    <totalCount>3</totalCount>
  </userQueryLimit>
</queue>
In this example:
  • Any user can run 1 query (* wildcard rule).
  • Users in the it group can run 2 queries.
  • The user fiona can run 3 queries, overriding the it group rule.

User quotas help administrators ensure resource fairness and prevent system overloads by restricting query concurrency at both user and group levels. For more configuration examples, see the Impala documentation on user quotas.