Support Questions

Find answers, ask questions, and share your expertise

DNS Error and JHS WebUI Error

What am I doing wrong? How can I correct this? I built a Hadoop Cluster using Cloudera Path B - Got the following errors 
1. DNS Resolution Error
2. Job History Server Web UI going to 

"This site can’t be reached
instance-1.c.12345678.internal’s server IP address could not be found."

___________________________________________________________________________________________________________________________________

I executed the following Linux commands


hostname -f
instance-1.c.12345678.internal

cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.123.0.2 instance-1.12345678.internal instance-1  # Added by Google
123.456.789.012 metadata.google.internal  # Added by Google

cat  /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost

python -c "import socket; print socket.getfqdn(); print socket.gethostbyname(socket.getfqdn())";
instance-1.c.12345678.internal
10.123.0.2

ifconfig eth0 | grep "inet addr"
          inet addr:10.123.0.2  Bcast:10.123.0.2  Mask:255.255.255.255

1 REPLY 1

Super Guru

You are getting that in Chrome, I presume, so I also guess that you are attempting to connect to the Job History Server UI from a browser that is on a different host than instance-1.c.12345678.internal

 

That means your local host (where your browser is installed) cannot resolve the hostname "nstance-1.c.12345678.internal".  You will need to ensure your client host (where your browser is intalled) has hosts file or DNS configured to allow it to resolve the host to IP address.

 

This page has some tips on how to update your hosts file to resolve if needed.

https://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/

 

You might also talk to Google if that is what cloud resource you are using and ask them how to get your external clients to be able to access internal addresses.