Optional Step 9: Configure secure WebHDFS
Note:
If you are not using WebHDFS, you can skip this step.
Security for WebHDFS is disabled by default. If you want use WebHDFS with a secure cluster, this is the time to enable and configure it.
To configure secure WebHDFS:
- If you have not already done so, enable WebHDFS by adding the following property to the
hdfs-site.xml file on every machine in the
cluster".
<property> <name>dfs.webhdfs.enabled</name> <value>true</value> </property>
- Add the following properties to the hdfs-site.xml file on every
machine in the cluster. Replace the example values shown below with the
correct settings for your site.
<property> <name>dfs.web.authentication.kerberos.principal</name> <value>HTTP/_HOST@YOUR-REALM.COM</value> </property> <property> <name>dfs.web.authentication.kerberos.keytab</name> <value>/etc/hadoop/conf/HTTP.keytab</value> <!-- path to the HTTP keytab --> </property>
<< Optional Step 8: Configuring Security for HDFS High Availability | Optional Step 10: Configuring a secure HDFS NFS Gateway >> | |