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.

Host registration question via Ambari

Host registration question via Ambari

Rising Star

@Jay Kumar SenSharma

I am trying to understand the host registration process:

Ambari Server : in Ambari Properties this is what I have: s

ecurity.server.two_way_ssl=true

On All the host machine Running Python 2.7.5, I have "force_https_protocol=PROTOCOL_TLSv1_2" in ambari-agent. INI

On my EdgeNode, I have Python 2.6 and I have to DISABLE force_https_protocol=PROTOCOL_TLSv1_2 to make it work correctly.

PROBLEM: I have One VM running SUSE LINUX 11 SP4. It's running Python 2.6, so I have this "force_https_protocol=PROTOCOL_TLSv1_2" DISABLED but I am not able to register his host using AMBARI.

here is the log:

INFO 2018-05-08 21:00:39,842 AlertSchedulerHandler.py:185 - [AlertScheduler] Stopped the alert scheduler.
INFO 2018-05-08 21:00:39,842 threadpool.py:120 - Shutting down thread pool
INFO 2018-05-08 21:00:39,842 ExitHelper.py:70 - Cleanup finished, exiting with code:0
INFO 2018-05-08 21:39:06,690 main.py:145 - loglevel=logging.INFO
INFO 2018-05-08 21:39:06,690 main.py:145 - loglevel=logging.INFO
INFO 2018-05-08 21:39:06,690 main.py:145 - loglevel=logging.INFO
INFO 2018-05-08 21:39:06,697 DataCleaner.py:39 - Data cleanup thread started
INFO 2018-05-08 21:39:06,704 DataCleaner.py:120 - Data cleanup started
INFO 2018-05-08 21:39:06,706 DataCleaner.py:122 - Data cleanup finished
INFO 2018-05-08 21:39:06,817 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2018-05-08 21:39:06,818 main.py:181 - Newloglevel=logging.DEBUG
INFO 2018-05-08 21:39:06,820 main.py:437 - Connecting to Ambari server at https://ambari.asotc.com:8440 (172.16.1.15)
DEBUG 2018-05-08 21:39:06,820 NetUtil.py:113 - Trying to connect to https://ambari.asotc.com:8440
INFO 2018-05-08 21:39:06,820 NetUtil.py:70 - Connecting to https://ambari.asotc.com:8440/ca
DEBUG 2018-05-08 21:39:06,986 NetUtil.py:90 - GET https://ambari.asotc.com:8440/ca -> 200, body:
INFO 2018-05-08 21:39:06,987 main.py:447 - Connected to Ambari server ambari.asotc.com
DEBUG 2018-05-08 21:39:06,987 Controller.py:66 - Initializing Controller RPC thread.
INFO 2018-05-08 21:39:07,027 hostname.py:67 - agent:hostname_script configuration not defined thus read hostname 'vds' using socket.getfqdn().
INFO 2018-05-08 21:39:07,027 threadpool.py:58 - Started thread pool with 3 core threads and 20 maximum threads
WARNING 2018-05-08 21:39:07,028 AlertSchedulerHandler.py:280 - [AlertScheduler] /var/lib/ambari-agent/cache/alerts/definitions.json not found or invalid. No alerts will be scheduled until registration occurs.
INFO 2018-05-08 21:39:07,028 AlertSchedulerHandler.py:175 - [AlertScheduler] Starting <ambari_agent.apscheduler.scheduler.Scheduler object at 0xf88b50>; currently running: False
DEBUG 2018-05-08 21:39:07,028 scheduler.py:574 - Scheduler started
DEBUG 2018-05-08 21:39:07,029 scheduler.py:579 - Looking for jobs to run
DEBUG 2018-05-08 21:39:07,029 scheduler.py:599 - No jobs; waiting until a job is added
INFO 2018-05-08 21:39:09,064 hostname.py:106 - Read public hostname 'vds' using socket.getfqdn()
INFO 2018-05-08 21:39:09,065 Hardware.py:48 - Initializing host system information.
INFO 2018-05-08 21:39:09,081 Hardware.py:176 - Some mount points were ignored: /dev/shm, /media/SLE-11-SP4-SAP-DVD-x86_6400061
INFO 2018-05-08 21:39:09,131 hostname.py:67 - agent:hostname_script configuration not defined thus read hostname 'vds' using socket.getfqdn().
ERROR 2018-05-08 21:39:09,174 Controller.py:502 - Controller thread failed with exception:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 489, in run
    self.register = Register(self.config)
  File "/usr/lib/python2.6/site-packages/ambari_agent/Register.py", line 35, in __init__
    self.hardware = Hardware(self.config)
  File "/usr/lib/python2.6/site-packages/ambari_agent/Hardware.py", line 53, in __init__
    self.hardware.update(Facter(self.config).facterInfo())
  File "/usr/lib/python2.6/site-packages/ambari_agent/Facter.py", line 571, in facterInfo
    facterInfo = super(FacterLinux, self).facterInfo()
  File "/usr/lib/python2.6/site-packages/ambari_agent/Facter.py", line 248, in facterInfo
    'ipaddress': self.getIpAddress(),
  File "/usr/lib/python2.6/site-packages/ambari_agent/Facter.py", line 81, in getIpAddress
    return socket.gethostbyname(self.getFqdn().lower())
gaierror: [Errno -2] Name or service not known
INFO 2018-05-08 21:39:09,233 ExitHelper.py:56 - Performing cleanup before exiting...
INFO 2018-05-08 21:39:09,233 threadpool.py:120 - Shutting down thread pool
INFO 2018-05-08 21:39:09,233 scheduler.py:606 - Scheduler has been shut down
INFO 2018-05-08 21:39:09,234 threadpool.py:58 - Started thread pool with 3 core threads and 20 maximum threads
INFO 2018-05-08 21:39:09,234 AlertSchedulerHandler.py:185 - [AlertScheduler] Stopped the alert scheduler.
INFO 2018-05-08 21:39:09,234 threadpool.py:120 - Shutting down thread pool
INFO 2018-05-08 21:39:09,234 ExitHelper.py:70 - Cleanup finished, exiting with code:0


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