Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-23838

Amabri server gets NPE due to ambari agent failure while registration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.7.0
    • None
    • None

    Description

      One of the ambari agent logs fails to handle registration with below stack trace

      INFO 2018-05-14 20:38:02,377 HeartbeatThread.py:128 - Registration response received
      ERROR 2018-05-14 20:38:02,378 HeartbeatThread.py:104 - Exception in HeartbeatThread. Re-running the registration
      Traceback (most recent call last):
        File "/usr/lib/ambari-agent/lib/ambari_agent/HeartbeatThread.py", line 91, in run
          self.register()
        File "/usr/lib/ambari-agent/lib/ambari_agent/HeartbeatThread.py", line 131, in register
          self.handle_registration_response(response)
        File "/usr/lib/ambari-agent/lib/ambari_agent/HeartbeatThread.py", line 189, in handle_registration_response
          raise Exception(error_message)
      Exception: Registration failed
      INFO 2018-05-14 20:38:02,379 transport.py:358 - Receiver loop ended

      Due to this failure, ambari server gets NPE.

      2018-05-14 20:38:02,222  INFO [agent-register-processor-4] HeartBeatHandler:312 - agentOsType = centos7
      2018-05-14 20:38:02,296  INFO [agent-register-processor-4] HostImpl:345 - Received host registration, host=[hostname=xx,fqdn=xx,domain=xxx,architecture=x86_64,processorcount=2,physicalprocessorcount=2,osname=centos,osversion=7.4.1708,osfamily=redhat,memory=16777216,uptime_hours=2238,mounts=(available=233881212,mountpoint=/,used=16772348,percent=7%,size=264091716,device=/dev/mapper/docker-253:5-3014660-4abca9bb09ce35db7850a7e6c617cd995ba5093a32b05ab6ac9374c858091864,type=ext4)]
      , registrationTime=1526330282222, agentVersion=2.7.0.0
      2018-05-14 20:38:02,308  INFO [agent-register-processor-4] TopologyManager:643 - TopologyManager.onHostRegistered: Entering
      2018-05-14 20:38:02,308  INFO [agent-register-processor-4] TopologyManager:645 - TopologyManager.onHostRegistered: host = xxx is already associated with the cluster or is currently being processed
      2018-05-14 20:38:02,309  INFO [agent-register-processor-4] HeartbeatController:105 -
      java.lang.NullPointerException

      Attachments

        Issue Links

          Activity

            People

              kkasa Krisztian Kasa
              yeshavora Yesha Vora
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m