Rate This Document
Findability
Accuracy
Completeness
Readability

Installing SGE on the Execution Host

  1. 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.

  2. Modify the /etc/sysconfig/network file on the execution host.
    1. Open the file.
      vi /etc/sysconfig/network
    2. 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.

    3. Press Esc, enter :wq!, and press Enter to save the file and exit.
  3. Modify the /etc/yp.conf file on the execution host.
    1. Open the file.
      vi /etc/yp.conf
    2. 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.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  4. Modify the /etc/nsswitch.conf file.
    1. Open the file.
      vi /etc/nsswitch.conf
    2. 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
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Start the ypbind service.
    systemctl start ypbind
    systemctl enable ypbind
  6. 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.

  7. Set the environment variable SGE_ROOT.
    export SGE_ROOT=/path/to/SGE_ROOT
  8. Load the SGE environment variables.
    source /path/to/SGE_ROOT/default/common/settings.sh
  9. 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
  10. Start the execd process on the execution host.
    /path/to/SGE_ROOT/default/common/sgeexecd
  11. 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