Skip to main content
Version 3.0

Prepare the cluster machines.

Run the preparation procedures on all machines before installing TDP Datacenter.

Run the procedures below on all machines of the Big Data Cluster.

Required stages, in this order

Stages​

Disable the firewall service and SELinux, and restart the machine.

First stage, required on each cluster machine: disabling the firewall service and SELinux. The firewall is stopped and disabled. SELinux is disabled both temporarily and permanently, and the permanent change only takes effect after the machine restarts.

Firewall

firewalld service: stop and disable. If it cannot be disabled, create rules (iptables).

SELinux

Temporary (setenforce) and permanent (/etc/selinux/config) disabling, with a machine restart.

Disable the Firewall service

firewalld stopped and disabled.

Terminal input
systemctl stop firewalld;
systemctl disable firewalld;
Terminal input
systemctl is-active firewalld
systemctl is-enabled firewalld

It worked when

firewalld appears as inactive and disabled: stopped and disabled.
$ systemctl is-active firewalld
inactive
$ systemctl is-enabled firewalld
disabled
If the Firewall cannot be disabled

If the Firewall cannot be disabled, create rules (iptables) to allow communication between the machines on the ports used by the TDP Platform services.

Temporarily disable SELinux

SELinux disabled until the next restart.

Terminal input
setenforce 0;
Terminal input
getenforce

It worked when

The command shows Permissive: SELinux is disabled until the next restart.

Permanently disable SELinux

SELinux configured as disabled.

Terminal input
sed -i --follow-symlinks "s+SELINUX=enforcing+SELINUX=disabled+g" /etc/selinux/config;

On RHEL 9 and derivatives, the SELINUX=disabled option in the file is not enough: SELinux stays enabled in the kernel, with no policy loaded. Also add the selinux=0 parameter to the kernel command line (requires the grubby package):

Terminal input
grubby --update-kernel ALL --args selinux=0
Terminal input
grep ^SELINUX= /etc/selinux/config

It worked when

The file shows SELINUX=disabled. The permanent change only takes effect after the machine restarts, in the next step.
$ grep ^SELINUX= /etc/selinux/config
SELINUX=disabled

Restart the machine

The permanent SELinux disabling in effect.

Restart the machine to apply the permanent SELinux disabling.

Terminal input
getenforce

It worked when

After the restart, the command shows Disabled.
$ getenforce
Disabled

Next, go on to the kernel parameters.

Next steps​