域名含额外点在RedHat上搭建Hadoop(Ambari)集群是否有问题?
Good question! The multi-part domain names (like master01.fg.sys70.com) you're using are actually standard Fully Qualified Domain Names (FQDNs), and they won't cause issues with setting up an Ambari-managed Hadoop cluster on RHEL—as long as you handle a few key configuration steps correctly. Here's what you need to know:
Key Configuration Checks to Avoid Problems
Ensure reliable FQDN resolution across all nodes
Every node in the cluster must be able to resolve the full FQDN of every other node. You can do this either via:- A corporate DNS server that has records for all your cluster nodes, or
- Adding entries to the
/etc/hostsfile on every node. For example:192.168.1.10 master01.fg.sys70.com master01 192.168.1.11 master02.fg.sys70.com master02 # ... add all other nodes here
Verify resolution works by running
ping master01.fg.sys70.comornslookup master01.fg.sys70.comfrom any node—you should get the correct IP address.Set node hostnames correctly
Each node's system hostname must be set to its full FQDN. On RHEL, use this command to set it permanently:hostnamectl set-hostname master01.fg.sys70.comConfirm it's set properly by running
hostname -f—this should return the full FQDN, not a short hostname or partial domain.Use consistent FQDNs in Ambari setup
When you launch the Ambari installation wizard and add cluster nodes, always input the full FQDN (not IP addresses or short hostnames). Ambari uses these names to configure network settings for Hadoop components (HDFS, YARN, etc.), so consistency here is critical to avoid communication failures between services.Watch for partial resolution bugs
The only potential issue would be if a node incorrectly resolves a FQDN to a partial domain (e.g., resolvingmaster01.fg.sys70.comto justmaster01.fg). This breaks inter-node communication, so always validate resolution as mentioned earlier.
Final Takeaway
Multi-part FQDNs are actually preferred for Hadoop clusters because they provide unique, unambiguous network identifiers—far better than short hostnames which can cause conflicts if other systems share the same name. As long as you nail the DNS/hosts setup and hostname configuration, you won't run into domain-related problems.
内容的提问来源于stack exchange,提问作者enodmilvado

