Granting permissions to Hue user

To grant permissions to a Hue user:

  1. Log in to Cloudera Manager as an Administrator.
  2. Go to Clusters > Ranger service > Instances tab and note down the hostname corresponding to the Ranger Usersync role type.
  3. Open the Ranger UI by clicking Ranger Admin Web UI.
  4. SSH into the Ranger Usersync host that you noted in step 2 and add the user as follows: ssh root@example.domain.site useradd [***USERNAME/GROUP-NAME***] passwd [***PASSWORD***]
  5. On the Ranger web UI, click Hadoop SQL listed under the HADOOP SQL service. The Hadoop SQL Policies page is displayed.
  6. Click the policy ID corresponding to "all - database, table, column".
  7. On the Edit Policy page > go to the Allow Conditions section > in the Select User field > include the hue user to grant the permission, as shown in the following image:
  8. Click Save.
  9. Start the Hue service from Cloudera Manager.
The hue user must now have sufficient permissions, and the HMS analytics must be enabled.