Created 05-11-2020 09:12 AM
Hi ,
From Ambari 2.7.5 documentation, one of the prerequisites mentioned is to set HOSTNAME in /etc/sysconfig/network , but as per RHEL 7, /etc/sysconfig/network file is deprecated. What is your recommendation on this?
Thanks,
Satish.
Created 05-13-2020 08:27 AM
@satishjan1 The initial question is asking about setting the hostname. The information you reference is telling you to do that, but for a different operating system. My first response was telling you how to do it for RHEL.
For your next question, you do not have to set the hostname in /etc/sysconfig/network, you have to do it the way required for your operating system. See Above. The hostname must be set, and persist after reboot.
If you do not set the hostname before installing the cluster you will have unmentionable problems with services and components later on down the road.
Created on 05-12-2020 06:08 AM - last edited on 05-12-2020 06:21 AM by cjervis
@satishjan1 the command to set the hostname is:
hostnamectl set-hostname host.name.com
Depending on your OS config, you may also need to update items that may manage that hostname and the host files. You can confirm by doing above, and then reboot. The hostname should persist after reboot.
If this answer resolves your issue or allows you to move forward, please choose to ACCEPT this solution and close this topic. If you have further dialogue on this topic please comment here or feel free to private message me. If you have new questions related to your Use Case please create separate topic and feel free to tag me in your post.
Thanks,
Created 05-13-2020 02:03 AM
My question was that Ambari 2.7.5 documentation has prerequisites mentioned where we have to set HOSTNAME parameter in /etc/sysconfig/network. Is it fine not to set this parameter as RED HAT 7 mentions that /etc/sysconfig/network is deprecated.
Without setting HOSTNAME in /etc/sysconfig/network, Ambari should work fine. Is that right?
Created 05-13-2020 04:07 AM
the point is to correctly set the fqdn no matter how it's done as long as it is correctly configured (it needs to be configured on all hosts in the cluster)
( /etc/sysconfig/network , network manager comands, /etc/hosts (avoiding 127.0.0.1, ::1 <-> fqdn etc... or via another admin tool )
some key services need a correctly set fqdn
(kerberos REALM trust for ex will be based on domain thus localy get fqdn . geting host instead of host.domain.etc may cause issues in many hadoop services)
Created 05-13-2020 08:27 AM
@satishjan1 The initial question is asking about setting the hostname. The information you reference is telling you to do that, but for a different operating system. My first response was telling you how to do it for RHEL.
For your next question, you do not have to set the hostname in /etc/sysconfig/network, you have to do it the way required for your operating system. See Above. The hostname must be set, and persist after reboot.
If you do not set the hostname before installing the cluster you will have unmentionable problems with services and components later on down the road.