Support Questions
Find answers, ask questions, and share your expertise

Cloudera Manager Server - "Name or service not known"

Cloudera Manager Server - "Name or service not known"

Explorer

 

Hi,

 

I am trying to setup a cluster on two Virtual Box VM'susing Bridged Adapters.  My network files for one VM are below.  

 

Everytime I run the install it fails because it returns "UNKNOWN" for host -t PTR 192.168.0.100.  I have been stuck on this for days and I am not sure how to fix it.

 

How do I make host -t PTR 192.168.0.100 return the name of my VM without using a DNS server?

  

IPTables & SELinux or off/disabled

 

/etc/hosts
127.0.0.1 localhost localhost.localdomain
192.168.0.100 hadoop01.marktowse hadoop01

192.168.0.101 hadoop02.marktowse hadoop02

 

/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.100
ONBOOT=yes
TYPE=Ethernet
GATEWAY=192.168.0.1

 

/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=hadoop01.marktowse
GATEWAY=192.168.0.1

 

resolv.conf

nameserver 192.168.0.1

 

ERROR

 

BEGIN host -t PTR 192.168.0.100
100.0.168.192.in-addr.arpa domain name pointer UNKNOWN.
END (0)
using UNKNOWN as scm server hostname
BEGIN which python
END (0)
BEGIN python -c 'import socket; import sys; s = socket.socket(socket.AF_INET); s.settimeout(5.0); s.connect((sys.argv[1], int(sys.argv[2]))); s.close();' UNKNOWN 7182
/usr/bin/python
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 1, in connect
socket.gaierror: [Errno -2] Name or service not known

 

EDIT

 

Running the following

 

 python -c "import socket; print socket.getfqdn(); print socket.gethostbyname(socket.getfqdn())"

 

Produces

 

hadoop01.marktowse
192.168.0.100

 

 

1 REPLY 1

Re: Cloudera Manager Server - "Name or service not known"

Explorer

"I am trying to setup a cluster on two Virtual Box VM'susing Bridged Adapters"

 

I went with a Virtual Box NAT network in the end which worked first time.