Prerequisites for enabling GS File Browser in Hue with RAZ in DataHub

First, you must register your Google Cloud environment with CDP with the Enable Ranger authorization for Google Cloud Storage option enabled. Next, you must set up Ranger policies for fine-grained access control for your user and Google Cloud Storage (GS) buckets.

  1. Log in to the CDP Management Console as an Administrator.
  2. Register a GCP environment with the Enable Ranger authorization for Google Cloud Storage option enabled. You can complete this task using the CDP web interface or the CDP CLI.
  3. Create a Data Hub cluster with a Data Engineering or Data Mart cluster template.
  4. Create the following Ranger policies:
    1. Hadoop SQL policy (all - database, table, column, all - url).
    2. GS (cm_gs) policy (Default: User Home).
      You must specify the bucket name in the GS Bucket field and the directory path in the Path field of the cm_gs Ranger policy.
  5. Grant appropriate permissions to the users in the CDP User Management Service (UMS). For example, EnvironmentUser--grants permission to view Data Hub clusters and set the workload password for the environment.
Enable the GS File Browser in Hue by configuring [desktop] properties in the Hue Advanced Configuration Snippet using Cloudera Manager.