Configure Hue to use Data Fabric-SASL

You can configure Hue to use Data Fabric-SASL for its communications with various components on a secure cluster. Hue automatically detects and sets the security configuration of the cluster and its components. Therefore, in some cases, minimal configuration is required.

The following components are supported by Hue with Data Fabric-SASL:
  • HttpFS
  • YARN and Spark History Server
  • Hive
  • Livy
  • HBase Thrift
  • Oozie
  • Drill
NOTE For secure by default clusters or for clusters where the customSecurity flag is not added, Hue automatically sets security_enabled to true and mechanism to MAPR-SECURITY for these components. In all other cases, ${security_enabled} and ${mechanisms} variables are set to false and none respectively, but these options can be configured manually for custom setups.
An example of a default configuration with automatically defined security_enabled and mechanism properties for HttpFS is as follows:
[hadoop]
 [[hdfs_clusters]]
   # HA support by using HttpFs
   [[[default]]]
        ...
   # Change this if your HDFS cluster is secured
   security_enabled=${security_enabled}
        
   # Security mechanism of authentication none/GSSAPI/MAPR-SECURITY
   mechanism=${mechanism}
        ...
An example of a manual configuration of security_enabled and mechanism properties for HttpFS is as follows:
[hadoop]
 [[hdfs_clusters]]
   # HA support by using HttpFs
   [[[default]]]
        ...
   # Change this if your HDFS cluster is secured
   security_enabled=true
          
   # Security mechanism of authentication none/GSSAPI/MAPR-SECURITY
   mechanism=MAPR-SECURITY
        ...
NOTE After you configure the hue.ini, you must restart Hue. However, if you configure multiple sections of the same file, you can restart Hue one time after your updates are complete.