Add host entries to the DPS 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 DPS container in your DP instance. DPS provides a utility command to help with this to ensure that all hosts to be used with DPS are addressable.
You must use the specific method and format identified in this task to make the mapping information usable by DPS Platform.
Perform this task only after DPS 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 DPS 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 DPS Platform.