Reply
Explorer
Posts: 9
Registered: ‎02-23-2016

How to setup the correct entries in /etc/hosts under Ubuntu 14.04

Hello

 

I installed Cloudera Manager with http://archive.cloudera.com/cm5/installer/5.6.0.16/cloudera-manager-installer.bin under Ubuntu Desktop 14.04 LTS in a VMWare host. Some errors raised concerning the hosts entries during the installation progress. Following the HBase documentation:

 

0.JPG

 

I configured version 1:

 

hc_002.jpg

 

hc_003.jpg

----------------------------------------------------------------------------------------------------------------------------------

Version 2:

 

hc_004.jpg

 

hc_005.jpg

----------------------------------------------------------------------------------------------------------------------------------

 

Version 3:

 

hc_006.jpg

 

hc_007.jpg

 

hc_008.jpg

----------------------------------------------------------------------------------------------------------------------------------

 

Any idea what I have to configure right?

 

:-) Klaus

 

 

Posts: 39
Topics: 0
Kudos: 9
Blog Posts: 0
Ideas: 0
Solutions: 5
Registered: ‎11-26-2015

Re: How to setup the correct entries in /etc/hosts under Ubuntu 14.04

Hello @Int17,

 

Here is an example configuration:

 

roczei@host-10-17-102-144 ~]$ cat /etc/hosts
127.0.0.1   localhost localhost.localdomain
10.17.102.144 host-10-17-102-144.coe.cloudera.com host-10-17-102-144
[roczei@host-10-17-102-144 ~]$ ifconfig
eth0      Link encap:Ethernet  HWaddr FA:16:3E:9D:40:27
          inet addr:10.17.102.144  Bcast:10.17.103.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1400  Metric:1
          RX packets:81288481 errors:0 dropped:0 overruns:0 frame:0
          TX packets:81262588 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:78622192333 (73.2 GiB)  TX bytes:88575001150 (82.4 GiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:42766397 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42766397 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:75573535743 (70.3 GiB)  TX bytes:75573535743 (70.3 GiB)

[roczei@host-10-17-102-144 ~]$ hostname
host-10-17-102-144
[roczei@host-10-17-102-144 ~]$ hostname --fqdn
host-10-17-102-144.coe.cloudera.com
[roczei@host-10-17-102-144 ~]$

 

Gabor

New Contributor
Posts: 2
Registered: ‎11-30-2017

Re: How to setup the correct entries in /etc/hosts under Ubuntu 14.04

This is not a hostfile

Posts: 455
Topics: 1
Kudos: 106
Solutions: 59
Registered: ‎04-22-2014

Re: How to setup the correct entries in /etc/hosts under Ubuntu 14.04

@andunamm,

 

Can you explain your comment, "this is not a hostfile"?

 

The previous update was showing a configuration that will not return warnings in the Host Inspector.

The first /etc/hosts warning was solved and then other Host Inspector checks started to fail.

These do not necessarily indicate that there are problems in the /etc/hosts file.

 

Thanks,

 

Ben

pdr
New Contributor
Posts: 1
Registered: ‎12-06-2017

Re: How to setup the correct entries in /etc/hosts under Ubuntu 14.04

Hi, in my case this /etc/hosts file leads to a non-issues Cloudera configuration (in a single node Cloudera cluster):

 

#127.0.0.1 localhost.localdomain localhost

192.168.1.12 ubuntu-pc ubuntu-pc

 

Note:

  - I've commented the localhost line since this led to confussion to the Cloudera check agent

  - The last line is composed of: local_ip FQDN DN

 

local_ip: The one from ifconfig

FQDN: Output of `hostname -f`

DN: Output of `hostname`

Highlighted
New Contributor
Posts: 2
Registered: ‎11-30-2017

Re: How to setup the correct entries in /etc/hosts under Ubuntu 14.04

Hello, Im sorry, I accidentally posted this comment and did not notice it. Your solution worked for me, but I had to choose the FQDN to match with my proposed domain in resolv.con. Otherwise I got some DNS mismatch errors

Announcements