Rate This Document
Findability
Accuracy
Completeness
Readability

Installing SGE on the Master Host

  1. Run the following command to install the NIS package:
    yum install ypserv -y
  2. Configure the NIS domain.
    nisdomainname huawei

    In the command, huawei indicates the domain name of the cluster. Replace it with the actual domain name.

  3. Modify the /etc/sysconfig/network configuration file.
    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 master host
      NETWORKING=yes
      NISDOMAIN=huawei

      HOSTNAME indicates the name of the master node.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  4. 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.

  5. Change the password of the test user, for example, to Huawei12#$.
    echo "Huawei12#$" | passwd --stdin test
  6. Restart the ypserv service to update the database.
    systemctl start ypserv
    systemctl enable ypserv
    cd /var/yp
    make
  7. Run the following commands to start the installation:
    cd /path/to/SGE_ROOT
    ./install_qmaster
  8. On the Welcome to the Grid Engine installation screen, press Enter.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  27. On the Creating local configuration screen, press Enter.

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

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

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

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

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

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

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

  35. On the Using Grid Engine screen, press Enter.

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

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

  38. Load the SGE environment variables.
    source /path/to/SGE_ROOT/default/common/settings.sh
  39. 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
  40. Add the master host as the submission host.
    qconf -as armnode2
  41. Add the master host as the administration host.
    qconf -ah armnode4