Configure Hue to use MapR-SASL
You can configure Hue to use MapR-SASL for its communications with various components on a secure MapR cluster. Hue automatically detects and sets the security configuration of the cluster and its components. Therefore, in some cases, minimal configuration is required.
- Hive
- Sqoop2
- HttpFS
- Oozie
- YARN
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. Configure Hue to use MapR-SASL for Hive
Hue can use MapR-SASL to communicate with Hive on a secure MapR cluster.
When Hive is configured to use MapR-SASL and the cluster is secure, Hue automatically uses MapR-SASL with Hive.
Configure Hue to use MapR-SASL for Sqoop2
Hue can use MapR-SASL to communicate with Sqoop2 on a secure MapR cluster.
When Sqoop2 is configured to use MapR-SASL and the cluster is secure, Hue automatically uses MapR-SASL with Sqoop2.
Configure Hue to use MapR-SASL for HttpFS
Hue uses MapR-SASL to communicate with HttpFS 1.0 on a secure MapR cluster.
The default hui.ini file that is installed with Hue includes the following configurations that allow Hue to automatically detect and set the security configuration:
[[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}
...
security_enabled=True
and
mechanism=MAPR-SECURITY
, Hue will use MapR-SASL but you will not
take advantage of the automatic detection feature. Configure Hue to use MapR-SASL for Oozie
Hue can use MapR-SASL to communicate with Oozie on a secure MapR cluster.
The default hui.ini file that is installed with Hue includes the following configurations that allow Hue to automatically detect and set the security configuration:
[liboozie]
...
# Requires FQDN in oozie_url if enabled
security_enabled=${security_enabled}
...
# Security mechanism of authentication none/GSSAPI/MAPR-SECURITY
mechanism=${mechanism}
security_enabled=True
and
mechanism=MAPR-SECURITY
, Hue will use MapR-SASL but you will not
take advantage of the automatic detection feature. Configure Hue to use MapR-SASL for YARN
Hue can use MapR-SASL to communicate with YARN on a secure MapR cluster.
To configure Hue to use MapR-SASL for YARN, complete the following steps to in the [[yarn_clusters]] [[[default]]] section of the hue.ini:
- Verify that
security_enabled=true
orsecurity_enabled=${security_enabled}
. - Verify that
mechanism=MAPR-SECURITY
ormechanism=${mechanism}
. - Set
ssl_cert_ca_verify=False
.NOTE: The changes are summarized in the followinghue.ini
file:[[yarn_clusters]] [[[default]]] ... # Change this if your YARN cluster is secured security_enabled=${security_enabled} ... # Security mechanism of authentication none/GSSAPI/MAPR-SECURITY mechanism=${mechanism} # In secure mode (HTTPS), if SSL certificates from Resource Manager's # Rest Server have to be verified against certificate authority ssl_cert_ca_verify=False
NOTE: If you setsecurity_enabled=True
andmechanism=MAPR-SECURITY
, Hue will use MapR-SASL but you will not take advantage of the automatic detection feature.