Adding Nodes
If you want more nodes in your service scenario, perform the following operations: After configuring newly added nodes, you need to distribute the configuration file to all nodes.
- Add the host names of the new nodes to the $HADOOP_HOME/etc/hadoop/workers file of Hadoop. (This step uses the agent04 node as an example.) Distribute the file to all nodes.
- Remotely log in to the newly added node and start the node manager.
If you restart a node, you also need to start the node manager and refresh the node information. Yarn automatically starts the OCKD process.
yarn-daemon.sh start nodemanager
Refresh the node information. Figure 1 shows the result.
yarn rmadmin -refreshNodes
- Configure the node type.
- If the new node is an RSS node:
yarn rmadmin -replaceLabelsOnNode "agent04=RSS"
- If the new node is an ESS node:
yarn rmadmin -replaceLabelsOnNode "agent04="
- If the new node is an RSS node:
- Add the host name of the new node to the /home/ockadmin/opt/ock/conf/ock_node_list file. This step uses the agent04 node as an example. After the file is edited and saved, distribute the new file to all nodes.
Run the following command to view information about all nodes and labels:
yarn node -list -all -showDetails
Parent topic: Maintaining the Feature
