Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

while Installing RANGER -ADMINservices ,its creating ' .repo ' file automatically and its taking old ipaddress in that repo file and its failing!!

avatar
Explorer

Is there any way to find from where its taking default ipaddress?
how to stop from creting .repo file automatically?

I Modified to new ipaddress in all places like..

/etc/sysconfig/network-scripts

/etc/sysconfig/network

/etc/hosts

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Lok! Reddy

Ambari configurations relies on Hostnames (FQDN= Fully Qualified Hostnames) , As the IPAddress of a host can be variable and might get changed in future due to some system / DNS maintenance.

So you will need to make sure that the FQDN of the host is correctly set. You can verify it by running the following command:

# hostname -f

.

If your cluster hosts belongs to some Cloud Platform then the IPAddresses are assigned to ti during the Host creation. You can get the details about your Hosts IPAddress by running the following kind of command:

# ifconfig

.

However if you want to assign a Specific FQDN to your host then you can do it like following:

1. Edit the "/etc/hosts" file and then set the IP Address and Hostname mapping to it

Example:

# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

10.10.10.1   newhwx1.example.com
10.10.10.2   newhwx2.example.com
10.10.10.3   newhwx3.example.com
10.10.10.4   newhwx4.example.com
10.10.10.10  my_repo_server.example.com

.

In order to setup the FQDN you can do the following:

# sysctl kernel.hostname=newhwx1.example.com

.

Some reference Links:

Edit the Host File : https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-installation-ppc/content/edit_the...

Set the Hostname: https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-installation-ppc/content/set_the_...

Edit the Network Configuration File: https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-installation-ppc/content/edit_the...

.

Following will be a good read to understand the difference between Public_host_name and Hostname from Ambari perspective.

Why ambari host might have different public_host_name and host_name in OpenStack ? : https://community.hortonworks.com/articles/42872/why-ambari-host-might-have-different-public-host-n....

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@Lok! Reddy

Ambari configurations relies on Hostnames (FQDN= Fully Qualified Hostnames) , As the IPAddress of a host can be variable and might get changed in future due to some system / DNS maintenance.

So you will need to make sure that the FQDN of the host is correctly set. You can verify it by running the following command:

# hostname -f

.

If your cluster hosts belongs to some Cloud Platform then the IPAddresses are assigned to ti during the Host creation. You can get the details about your Hosts IPAddress by running the following kind of command:

# ifconfig

.

However if you want to assign a Specific FQDN to your host then you can do it like following:

1. Edit the "/etc/hosts" file and then set the IP Address and Hostname mapping to it

Example:

# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

10.10.10.1   newhwx1.example.com
10.10.10.2   newhwx2.example.com
10.10.10.3   newhwx3.example.com
10.10.10.4   newhwx4.example.com
10.10.10.10  my_repo_server.example.com

.

In order to setup the FQDN you can do the following:

# sysctl kernel.hostname=newhwx1.example.com

.

Some reference Links:

Edit the Host File : https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-installation-ppc/content/edit_the...

Set the Hostname: https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-installation-ppc/content/set_the_...

Edit the Network Configuration File: https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-installation-ppc/content/edit_the...

.

Following will be a good read to understand the difference between Public_host_name and Hostname from Ambari perspective.

Why ambari host might have different public_host_name and host_name in OpenStack ? : https://community.hortonworks.com/articles/42872/why-ambari-host-might-have-different-public-host-n....

avatar
Explorer

thanks a Lot Jay....I got the mistake that i did while Installing HDP .

I gave url with IPaddr instead of FQDN and my IP addr changed due to Windows update.

I changed URL in repo file but nor in ambari.

I found out now...thank you for your time!!