Advanced: Add host entries to the DataPlane environment
If you are using hosts that are not publicly addressable from a DNS server, you must add IP address and host name mapping to the /etc/hosts file of each associated DataPlane container in your DP instance. DataPlane provides a utility command to help with this to ensure that all hosts to be used with DataPlane are addressable.
You must use the specific method and format identified in this task to make the mapping information usable by DP Platform.
Perform this task only after DP Platform is installed and running.
This task is required only for /etc/hosts handling. This setup is not required if Ambari, Knox, or hosts in your cluster are accessible via DNS.
- Log in as the root user to a terminal on the DataPlane host.
- Type the following command to add the host to the /etc/hosts file of the
dpdeploy.sh utils add-host <ip> <host>
- Repeat this procedure on each cluster registered with DP Platform.