This topic describes how to enable Impala in Ranger and how to configure related permissions.

Prerequisites

A DataLake cluster or a custom cluster of EMR V5.11.1 or a later minor version is created, and the Impala and Ranger services are selected for the cluster. For more information about how to create a cluster, see Create a cluster.

Procedure

  1. Go to the Services tab.
    1. Log on to the EMR console. In the left-side navigation pane, click EMR on ECS.
    2. In the top navigation bar, select the region in which your cluster resides and select a resource group based on your business requirements.
    3. On the EMR on ECS page, find the desired cluster and click Services in the Actions column.
  2. Enable Impala in Ranger.
    1. On the Services tab of the page that appears, click Status in the Ranger-plugin section.
    2. In the Service Overview section of the Status tab, turn on enableImpala.
    3. In the Confirm message, click OK.
  3. Restart Impala.
    1. On the Services tab, click the More icon and select Impala.
    2. In the upper-right corner, choose More > RESTART.
    3. In the dialog box that appears, configure the Execution Reason parameter and click OK.
    4. In the Confirm message, click OK.

Configure permissions

Before you configure permissions in Ranger, you must access the web UI of Ranger. For more information about how to access the web UI of Ranger, see Access the web UI of Ranger. Then, you can click emr-hive in the HADOOP SQL section to configure Impala permissions.

The same Ranger service emr-hive is used to manage permissions that are configured for Impala and Hive. The methods used to configure permissions for Impala and Hive in Ranger are the same. For more information about how to configure permissions, see Enable Hive in Ranger and configure related permissions.