Disabling SELinux

Security-Enhanced Linux (SELinux) allows you to set access control through policies. You must disable SELinux on each host before you deploy CDH on your cluster.

To disable SELinux, perform the following steps on each host.

  1. Check the SELinux state.
    getenforce
    If the output is either permissive or disabled, you can skip this task and go to Disabling the Firewall. If the output is enforcing, continue to the next step.
  2. Open the /etc/selinux/config file (in some systems, the /etc/sysconfig/selinux file).
  3. Change the line SELINUX=enforcing to SELINUX=permissive.
  4. Save and close the file.
  5. Restart your system or run the following command to disable SELinux immediately:
    setenforce 0