Created on 03-06-2015 01:10 PM - edited 09-16-2022 02:23 AM
Hi All,
Issue
Getting Error while Installing Cloudera on Nodes
-agent/supervisor/include >>[06/Mar/2015 13:41:04 +0000] 1625 MainThread agent INFO Connecting to previous supervisor: agent-1084-1425670563. >>[06/Mar/2015 13:41:04 +0000] 1625 MainThread _cplogging INFO [06/Mar/2015:13:41:04] ENGINE Bus STARTING >>[06/Mar/2015 13:41:04 +0000] 1625 MainThread _cplogging INFO [06/Mar/2015:13:41:04] ENGINE Started monitor thread '_TimeoutMonitor'. >>[06/Mar/2015 13:41:05 +0000] 1625 HTTPServer Thread-2 _cplogging ERROR [06/Mar/2015:13:41:05] ENGINE Error in HTTP server: shutting down >>Traceback (most recent call last): >> File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/process/servers.py", line 187, in _start_http_thread >> self.httpserver.start() >> File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/wsgiserver/wsgiserver2.py", line 1825, in start >> raise socket.error(msg) >>error: No socket could be created on ('node2.hadoopdomain', 9000) -- [Errno 99] Cannot assign requested address on ('node2.hadoopdomain', 9000) -- [Errno 99] Cannot assign requested address
My Configuration
3 Node Cluster
/etc/hosts as
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.5 base.hadoopdomain.com hadoop1
192.168.1.6 node1.hadoopdomain.com hadoop2
192.168.1.7 node2.hadoopdomain.com hadoop3
IPV6 Disabled, IP are DHCP assigned and same as shown above, SELINUX disabled, followed all other steps as mentioned anywhere else.
Incorrect IP on Python gethostname Command
python -c 'import socket; print socket.getfqdn(), socket.gethostbyname(socket.getfqdn())'
node2.hadoopdomain 198.105.254.228
The FQDN is right but IP is incorrect. its the same on all the nodes.
Python says IPV6 as true
python -c 'import socket; print socket.has_ipv6'
True
same on all nodes.
Appreciate your assitance.
Regards,
Pranay Vyas
Created 03-06-2015 10:51 PM
Solved the issue,
It was the etc/hosts file causing issue.
Had to add the highlighted red text on the etc/hosts file
127.0.0.1 localhost.hadoopdomain localhost
::1 localhost.hadoopdomain localhost
127.0.0.1 localhost.localdomain localhost
127.0.0.1 localdomain localhost
192.168.1.8 base.hadoopdomain.com base base.hadoopdomain
192.168.1.6 node1.hadoopdomain.com node1 node1.hadoopdomain
192.168.1.7 node2.hadoopdomain.com node2 node2.hadoopdomain
Regards,
Pranay Vyas
Created 03-06-2015 01:27 PM
Created 03-06-2015 10:49 PM
Samuel,
Can you try a ping from your node - ping google.com
see if your node has access to internet.
Cloudera Manager during its installation process refers to Interenet to download various components.
Regards,
Pranay Vyas
Created 03-06-2015 10:51 PM
Solved the issue,
It was the etc/hosts file causing issue.
Had to add the highlighted red text on the etc/hosts file
127.0.0.1 localhost.hadoopdomain localhost
::1 localhost.hadoopdomain localhost
127.0.0.1 localhost.localdomain localhost
127.0.0.1 localdomain localhost
192.168.1.8 base.hadoopdomain.com base base.hadoopdomain
192.168.1.6 node1.hadoopdomain.com node1 node1.hadoopdomain
192.168.1.7 node2.hadoopdomain.com node2 node2.hadoopdomain
Regards,
Pranay Vyas