Installing SGE on the Master Host
- Run the following command to install the NIS package:
yum install ypserv -y
- Configure the NIS domain.
nisdomainname huawei
In the command, huawei indicates the domain name of the cluster. Replace it with the actual domain name.
- Modify the /etc/sysconfig/network configuration file.
- Open the file.
vi /etc/sysconfig/network
- Press i to enter the insert mode and enter the following information:
HOSTNAME=Name of the master host NETWORKING=yes NISDOMAIN=huawei
HOSTNAME indicates the name of the master node.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Add a user, for example, user test.
useradd -d /path/test test
In this example, /path is a shared directory. All nodes in the cluster are mounted to the /path directory. Set the path based on actual situation.
- Change the password of the test user, for example, to Huawei12#$.
echo "Huawei12#$" | passwd --stdin test
- Restart the ypserv service to update the database.
systemctl start ypserv systemctl enable ypserv cd /var/yp make
- Run the following commands to start the installation:
cd /path/to/SGE_ROOT ./install_qmaster
- On the Welcome to the Grid Engine installation screen, press Enter.

- On the Choosing Grid Engine admin user account screen, enter n and press Enter twice.

- On the Checking $SGE_ROOT directory screen, use the path planned and press Enter twice.

- On the Grid Engine TCP/IP communication service screen, enter 2 and press Enter.

- On the Grid Engine TCP/IP service screen, press Enter.

- On the Grid Engine TCP/IP communication service screen, enter 2 and press Enter.

- On the Grid Engine TCP/IP communication service screen, press Enter.

- On the Grid Engine cells screen, use the default cell name and press Enter twice.

- On the Unique Cluster name screen, enter the cluster name and press Enter twice.

- On the Grid Engine qmaster spool directory screen, specify the spool directory (the default directory is recommended) and press Enter twice.

- On the Windows Execution Host Support screen, enter n and press Enter.

- On the Verifying and setting file permissions screen, enter y and press Enter twice.

- On the Select default Grid Engine hostname resolving method screen, enter y and press Enter twice.

- On the Grid Engine JMX MBean server screen, enter n and press Enter twice.

- On the Setup spooling screen, enter classic and press Enter.

- On the Grid Engine group id range screen, use the default settings and press Enter twice.

- On the Grid Engine cluster configuration screen, use the default settings and press Enter.

- On the Grid Engine cluster configuration (continued) screen, use the default settings and press Enter.

- When "The following parameters for the cluster configuration were configured" is displayed, enter n and press Enter.

- On the Creating local configuration screen, press Enter.

- On the qmaster startup script screen, enter y and press Enter twice.

- On the Grid Engine qmaster startup screen, press Enter.

- On the Adding Grid Engine hosts screen, enter n and press Enter.

- On the Adding admin and submit hosts screen, press Enter twice.

- On the Shadow host screen, enter n and press Enter.

- On the Creating the default queue and hostgroup screen, press Enter.

- On the Scheduler Tuning screen, enter 1 and press Enter. Then, enter y and press Enter.

- On the Using Grid Engine screen, press Enter.

- On the Grid Engine messages screen, enter n and press Enter.

- When "Your Grid Engine qmaster installation is now completed" is displayed, press Enter to complete the installation.

- 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
- Add the master host as the submission host.
qconf -as armnode2
- Add the master host as the administration host.
qconf -ah armnode4
Parent topic: Compiling and Installing SGE