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:
- Create an all_hosts file.
- Open the file.
vim /data/gpdb/all_hosts
- Press i to enter the insert mode and add the following content:
gp-mdw gp-sdw
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Create a seg_hosts file.
- Open the file.
vim /data/gpdb/seg_hosts
- 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
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
Parent topic: Connecting All Nodes