Installing SGE on the Execution Host
- On the execution host, run the following command to install the NIS client installation package ypbind:
yum install ypbind -y
In this example, the CentOS 7.6 image is used as the local Yum source. You can change the Yum source in the /etc/yum.repos.d directory as required.
- Modify the /etc/sysconfig/network file on the execution host.
- Open the file.
vi /etc/sysconfig/network
- Press i to enter the insert mode and enter the following information:
HOSTNAME=Name of the execution host NETWORKING=yes NISDOMAIN=huawei
HOSTNAME specifies the name of the execution host, and NISDOMAIN specifies the domain name of the cluster. Set them based on actual situation.
- Press Esc, enter :wq!, and press Enter to save the file and exit.
- Open the file.
- Modify the /etc/yp.conf file on the execution host.
- Open the file.
vi /etc/yp.conf
- Press i to enter the insert mode and add the following information to the end of the file:
domain huawei server 192.168.40.50
In this example, 192.168.40.50 indicates the IP address of the master host. Replace it with the actual IP address.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Modify the /etc/nsswitch.conf file.
- Open the file.
vi /etc/nsswitch.conf
- Press i to enter the insert mode and enter the following information:
passwd: files nis shadow: files nis group: files nis hosts: files nis dns
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Start the ypbind service.
systemctl start ypbind systemctl enable ypbind
- Install hwloc.
yum install hwloc* -y
In this example, the CentOS 7.6 image is used as the local Yum source. You can change the Yum source in the /etc/yum.repos.d directory as required.
- Set the environment variable SGE_ROOT.
export SGE_ROOT=/path/to/SGE_ROOT
- Load the SGE environment variables.
source /path/to/SGE_ROOT/default/common/settings.sh
- Add the SGE environment variables to the .bashrc file for the environment variables to take effect permanently.
echo "source /path/to/SGE_ROOT/default/common/settings.sh" >> /root/.bashrc
- Start the execd process on the execution host.
/path/to/SGE_ROOT/default/common/sgeexecd
- Enable the execd process to automatically start as the system boots.
echo "/path/to/SGE_ROOT/default/common/sgeexecd" >> /etc/rc.d/rc.local chmod +x /etc/rc.d/rc.local
Parent topic: Compiling and Installing SGE