Support Questions

Find answers, ask questions, and share your expertise

Why is the namenode in my HDP sandbox 2.6.5 named sandbox-hdp.hortonworks.com?

avatar
New Contributor

Using docker, I've succesfully installed HDP sandbox on my cloud-base CentOS 7 instance. Most services starts up and I see a lot of green in Ambari. Now, i am curious about why the deployed sandbox named my namenode: sandbox-hdp.hortonworks.com?

i see that the same namenode is used in the screenshot attached to this post - as disclosed by the URL in the web-browser https://community.hortonworks.com/questions/155768/docker-sandbox-hdphortonworkscom50070-connection-...

Is it expected that a user should tinker with the hosts file to translate that give name to the IP address of the node?

That is strange since most of us do not own the hortonworks.com domain. Is this a business-as-usual way? is there a way to change the name of a namenode?

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Jes Chergui

Hortonworks Sandbox is a learning single host cluster setup for testing and learning purpose. Thats the reason a hostname was chosen that way.

Sandbox is a dockerized container. So is there any specific reason you would like to change/customize the Hostname ?
You can do that but we wanted to know what is the requirement ?

Ambari allows to perform the hostname changes to new hostname as described in the following doc. So when you make the required hostname changes at the docker & "/etc/hosts" file then you might also want to check the following doc:

# ambari-server update-host-names host_names_changes.json

https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-administration/content/ch_changin...

Followed by the instructions mentioned for formatZK and HDFS.

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@Jes Chergui

Hortonworks Sandbox is a learning single host cluster setup for testing and learning purpose. Thats the reason a hostname was chosen that way.

Sandbox is a dockerized container. So is there any specific reason you would like to change/customize the Hostname ?
You can do that but we wanted to know what is the requirement ?

Ambari allows to perform the hostname changes to new hostname as described in the following doc. So when you make the required hostname changes at the docker & "/etc/hosts" file then you might also want to check the following doc:

# ambari-server update-host-names host_names_changes.json

https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-administration/content/ch_changin...

Followed by the instructions mentioned for formatZK and HDFS.

avatar
New Contributor

thank you for this clear answer. I have not requirement to change the namenode's name. I will just update my hosts file to properly resolve sandbox.hortonworks.com. cheers