Enabling GS File Browser for Hue with RAZ in CDP Data Hub

After you have registered your Google Cloud environment with Cloudera Data Platform with the Enable Ranger authorization for Google Cloud Storage (GS) option enabled, created a CDP Data Hub cluster, created the required Ranger policies, and granted access to your users, you can enable the GS File Browser using Cloudera Manager.

  1. Log in to the Cloudera Data Platform web interface as an Administrator.
  2. Go to Cloudera Management Console > Environments, select your environment and go to the Data Lake tab.
  3. Click on the link under CM URL to open Cloudera Manager.
  4. Go to Clusters > Ranger RAZ service > Instances > RAZ server > Processes and note the value of the fs.s3a.ext.raz.rest.host.url property from the core-site.xml file. You need this to specify the value of the api_url property in the Hue configuration.
  5. Go to Clusters > Hue service > Configuration > Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini and add the following lines:
    [desktop]
    app_blacklist=spark,zookeeper,hbase,impala,search,sqoop,security,pig
    [[raz]]
    is_enabled=true
    is_raz_gs_enabled=true
    api_url=[***fs.s3a.ext.raz.rest.host.url***]
    
    [filebrowser]
    remote_storage_home=gs://[***GS-BUCKET-NAME***]/user
    (RAZ-HA) You can specify a comma-separated list of URLs in the api_url property. For example:
    api_url=https://[***INSTANCE-1***]:6082/,https://[***INSTANCE-2***]:6082/
  6. Click Save Changes.
  7. Restart the Hue service.
GS File Browser icon is added to the left assist panel on the Hue web interface. When you click the GS File Browser icon, you are redirected to your user home directory.