Disabling Kerberos Security
Follow these steps to disable Kerberos security for HAWQ and PXF for manual installations.
Note: If you install or manage your cluster using Ambari, then the HAWQ Ambari plug-in automatically disables security for HAWQ and PXF when you disable security for Hadoop. The following instructions are only necessary for manual installations, or when Hadoop security is disabled outside of Ambari.
- Disable Kerberos on the Hadoop cluster on which you use HAWQ.
Disable security for HAWQ:
Login to the HAWQ database master server as the
gpadminuser:$ ssh hawq_master_fqdnRun the following command to set up HAWQ environment variables:
$ source /usr/local/hawq/greenplum_path.shStart HAWQ if necessary:
$ hawq start -aRun the following command to disable security:
$ hawq config --masteronly -c enable_secure_filesystem -v “off”Change the permission of the HAWQ HDFS data directory:
$ sudo -u hdfs hdfs dfs -chown -R gpadmin:gpadmin /hawq_dataOn the HAWQ master node and on all segment server nodes, edit the
/usr/local/hawq/etc/hdfs-client.xmlfile to disable kerberos security. Comment or remove the following properties in each file:<!-- <property> <name>hadoop.security.authentication</name> <value>kerberos</value> </property> <property> <name>dfs.namenode.kerberos.principal</name> <value>nn/_HOST@LOCAL.DOMAIN</value> </property> -->Restart HAWQ:
$ hawq restart -a -M fast
Disable security for PXF:
On each PXF node, edit the
/etc/gphd/pxf/conf/pxf-site.xmlto comment or remove the properties:<!-- <property> <name>pxf.service.kerberos.keytab</name> <value>/etc/security/phd/keytabs/pxf.service.keytab</value> <description>path to keytab file owned by pxf service with permissions 0400</description> </property> <property> <name>pxf.service.kerberos.principal</name> <value>pxf/_HOST@PHD.LOCAL</value> <description>Kerberos principal pxf service should use. _HOST is replaced automatically with hostnames FQDN</description> </property> -->Restart the PXF service.