Rate This Document
Findability
Accuracy
Completeness
Readability

Creating Node Information Configuration Files

Create the node information configuration files all_hosts and seg_hosts to store the host information of all nodes and segment nodes, respectively. Perform the operations in this section on the master node.

In the following example, the created data directory is /data/gpdb, the node master functions as the only master node, and the node segment functions as the data node. To create node information configuration files, perform the following steps:

  1. Create an all_hosts file.
    1. Open the file.
      vim /data/gpdb/all_hosts
    2. Press i to enter the insert mode and add the following content:
      gp-mdw
      gp-sdw
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  2. Create a seg_hosts file.
    1. Open the file.
      vim /data/gpdb/seg_hosts
    2. Press i to enter the insert mode and add the following content:
      gp-sdw

      If the master node is also used as a data node, the master node name gp-mdw must be added to the seg_hosts file as well:

      gp-mdw
      gp-sdw
    3. Press Esc, type :wq!, and press Enter to save the file and exit.