Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to set my hosts file

Solved Go to solution

How to set my hosts file

New Contributor

I installed HDP2.4.0 failed with ambari

Command start time 2016-05-28 15:29:40

('ERROR 2016-05-28 15:28:47,329 main.py:309 - Fatal exception occurred:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 306, in <module>
    main(heartbeat_stop_callback)
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 259, in main
    perform_prestart_checks(expected_hostname)
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 144, in perform_prestart_checks
    sys.exit(1)
SystemExit: 1
INFO 2016-05-28 15:28:47,329 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2016-05-28 15:29:41,997 main.py:71 - loglevel=logging.INFO
INFO 2016-05-28 15:29:41,997 main.py:71 - loglevel=logging.INFO
INFO 2016-05-28 15:29:41,998 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-05-28 15:29:42,000 DataCleaner.py:120 - Data cleanup started
INFO 2016-05-28 15:29:42,001 DataCleaner.py:122 - Data cleanup finished
INFO 2016-05-28 15:29:42,054 PingPortListener.py:50 - Ping port listener started on port: 8670
WARNING 2016-05-28 15:29:42,122 main.py:285 - Unable to determine the IP address of the Ambari server \'hdp.localdomain.localdomain.localdomain.localdomain.localdomain\'
INFO 2016-05-28 15:29:42,122 NetUtil.py:60 - Connecting to https://hdp.localdomain.localdomain.localdomain.localdomain.localdomain:8440/ca
WARNING 2016-05-28 15:29:42,197 NetUtil.py:89 - Failed to connect to https://hdp.localdomain.localdomain.localdomain.localdomain.localdomain:8440/ca due to [Errno -2] Name or service not known  
WARNING 2016-05-28 15:29:42,197 NetUtil.py:112 - Server at https://hdp.localdomain.localdomain.localdomain.localdomain.localdomain:8440 is not reachable, sleeping for 10 seconds...
', None)
('ERROR 2016-05-28 15:28:47,329 main.py:309 - Fatal exception occurred:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 306, in <module>
    main(heartbeat_stop_callback)
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 259, in main
    perform_prestart_checks(expected_hostname)
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 144, in perform_prestart_checks
    sys.exit(1)
SystemExit: 1
INFO 2016-05-28 15:28:47,329 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2016-05-28 15:29:41,997 main.py:71 - loglevel=logging.INFO
INFO 2016-05-28 15:29:41,997 main.py:71 - loglevel=logging.INFO
INFO 2016-05-28 15:29:41,998 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-05-28 15:29:42,000 DataCleaner.py:120 - Data cleanup started
INFO 2016-05-28 15:29:42,001 DataCleaner.py:122 - Data cleanup finished
INFO 2016-05-28 15:29:42,054 PingPortListener.py:50 - Ping port listener started on port: 8670
WARNING 2016-05-28 15:29:42,122 main.py:285 - Unable to determine the IP address of the Ambari server \'hdp.localdomain.localdomain.localdomain.localdomain.localdomain\'
INFO 2016-05-28 15:29:42,122 NetUtil.py:60 - Connecting to https://hdp.localdomain.localdomain.localdomain.localdomain.localdomain:8440/ca
WARNING 2016-05-28 15:29:42,197 NetUtil.py:89 - Failed to connect to https://hdp.localdomain.localdomain.localdomain.localdomain.localdomain:8440/ca due to [Errno -2] Name or service not known  
WARNING 2016-05-28 15:29:42,197 NetUtil.py:112 - Server at https://hdp.localdomain.localdomain.localdomain.localdomain.localdomain:8440 is not reachable, sleeping for 10 seconds...
my hosts file:
127.0.0.1 localhost.localdomain localhost
::1 hdp
192.168.1.115 hdp
1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to set my hosts file

@Simon Wang

1. For the Error "https://hdp.localdomain.localdomain.localdomain.localdomain.localdomain:8440" - Try upgrading openssl to latest version.

$yum upgrade openssl

My working openssl version is - openssl-1.0.1e-15.el6.x86_64

2. Also please modify /etc/hosts file as below - and give retry

127.0.0.1 localhost.localdomain localhost

::1 localhost.localdomain localhost

192.168.1.115 hdp

1 REPLY 1

Re: How to set my hosts file

@Simon Wang

1. For the Error "https://hdp.localdomain.localdomain.localdomain.localdomain.localdomain:8440" - Try upgrading openssl to latest version.

$yum upgrade openssl

My working openssl version is - openssl-1.0.1e-15.el6.x86_64

2. Also please modify /etc/hosts file as below - and give retry

127.0.0.1 localhost.localdomain localhost

::1 localhost.localdomain localhost

192.168.1.115 hdp

Don't have an account?
Coming from Hortonworks? Activate your account here