Configuring user quotas in admission control

Configure user quotas in Impala’s admission control to limit concurrent queries for individual users or groups.

Ensure you have access to the fair-scheduler.xml file and necessary administrative privileges in Impala.

  1. Log in to the Cloudera web interface and navigate to the Cloudera Data Warehouse service.
  2. Click Virtual Warehouses in the left navigation panel.
  3. Select the Impala Virtual Warehouse, click options for the warehouse
  4. Click Edit and navigate to Impala Coordinator under the Configurations tab
  5. Select the fair-scheduler.xml under Configuration files.
  6. Add or update <userQueryLimit> and <groupQueryLimit> elements to define the quota rules.
    <queue name="group-set-small">
      <userQueryLimit>
        <user>*</user>
        <totalCount>1</totalCount>
      </userQueryLimit>
      <groupQueryLimit>
        <group>it</group>
        <totalCount>2</totalCount>
      </groupQueryLimit>
      <userQueryLimit>
        <user>fiona</user>
        <totalCount>3</totalCount>
      </userQueryLimit>
    </queue>
    
  7. Save the file.
  8. Restart the Impala coordinator to apply the changes.