Enabling browsing Ozone from Hue on CDP Private Cloud Base

Hue can read and write files on the Ozone filesystem. To access Ozone from Hue, you must add the necessary configurations in the Advanced Configuration Snippet in Cloudera Manager.

You must perform this task on all Hue instances in which you want to enable the Ozone File Browser.
  • You must have an Ozone parcel containing the HttpFS service. For installation, see Ozone 718.2.x installation documentation.
  • Ensure that the Ozone HttpFS Gateway role is running in a healthy state.
  • Go to Cloudera Manager > Ozone > Configuration and add the following entries in the HttpFS Gateway Advanced Configuration Snippet (Safety Valve) for ozone-conf/httpfs-site.xml field:
    Field name Value
    Name httpfs.proxyuser.[***PRINCIPAL-NAME***].hosts
    Value *
    Name httpfs.proxyuser.[***PRINCIPAL-NAME***].groups
    Value *

    Replace the [***PRINCIPAL-NAME***] with the actual Kerberos principal name. For example, hive. You can obtain the Kerberos principal name from the Hive service configuration.

  • Obtain the following values from the Ozone service. You need it to construct the fs_defaultfs and webhdfs_url URLs:
    • HttpFS Gateway host name
    • Ozone HttpFS Gateway TTP Web UI Port (ozone.httpfs.http-port)

      9778 is the default.

    • Ozone Service ID (ozone.service.id). The Ozone service ID must be specified when Ozone is configured in HA mode.
  1. Log in to Cloudera Manager as an Administrator.
  2. Go to Clusters > Hue > Configuration and add the following lines in the Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini field:
    [desktop]
    [[ozone]]
    [[[default]]]
    fs_defaultfs=ofs://[***SERVICE-ID***] \\ozone1 by default
    webhdfs_url=http://[***OZONE-HTTPFS-HOST***]:[***OZONE-HTTPFS-PORT***]/webhdfs/v1 \\https for secure cluster
    ssl_cert_ca_verify=true
    security_enabled=true
    Specify https in the webhdfs_url property if SSL is enabled on your cluster.
    If Ozone is not configured in HA mode, then specify the URL for the Ozone manager in the fs_defaultfs property.
  3. Click Save Changes.
  4. Restart the Hue service.