ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-17757) after ambari upgrade ambari-agent is unable to register with ambari server
Date Sat, 16 Jul 2016 16:15:20 GMT
Andrew Onischuk created AMBARI-17757:
----------------------------------------

             Summary: after ambari upgrade ambari-agent is unable to register with ambari
server
                 Key: AMBARI-17757
                 URL: https://issues.apache.org/jira/browse/AMBARI-17757
             Project: Ambari
          Issue Type: Bug
            Reporter: Andrew Onischuk
            Assignee: Andrew Onischuk
             Fix For: 2.4.0
         Attachments: AMBARI-17757.patch

Scenario:  
1\. install ambari 2.2.0 with hdp-2.4 in HA mode  
2\. upgrade ambari 2.2.0 to ambari2.4.0 following the step similiar to old doc  
**Issue:**  
after ambari agent upgrade , there is problem with heart beat , ambari agent
fails to connect with ambari server

ambari-agent log:

    
    
    
    ERROR 2016-07-15 12:24:17,726 Controller.py:212 - Unable to connect to: https://ranger-ru-kerberos-ha2-5.openstacklocal:8441/agent/v1/register/ranger-ru-kerberos-ha2-4.openstacklocal
    Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 165, in registerWithServer
        ret = self.sendRequest(self.registerUrl, data)
      File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 499, in sendRequest
        + '; Response: ' + str(response))
    
    
    
    
    <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
    <title>Error 500 </title>
    </head>
    <body>
    <h2>HTTP ERROR: 500</h2>
    <p>Problem accessing /agent/v1/register/ranger-ru-kerberos-ha2-2.openstacklocal.
Reason:
    <pre>    java.lang.NullPointerException</pre></p>
    <hr /><i><small>Powered by Jetty://</small></i>
    </body>
    </html>
    

ambar-server log:

    
    
    
    15 Jul 2016 12:40:06,422 ERROR [ambari-agent-thread-163] ContainerResponse:419 - The RuntimeException
could not be mapped to a response, re-throwing to the HTTP container
    java.lang.NullPointerException
            at org.apache.ambari.server.topology.PersistedStateImpl.getAllRequests(PersistedStateImpl.java:202)
            at org.apache.ambari.server.topology.TopologyManager.ensureInitialized(TopologyManager.java:149)
            at org.apache.ambari.server.topology.TopologyManager.onHostRegistered(TopologyManager.java:406)
            at org.apache.ambari.server.state.host.HostImpl$HostRegistrationReceived.transition(HostImpl.java:313)
            at org.apache.ambari.server.state.host.HostImpl$HostRegistrationReceived.transition(HostImpl.java:275)
            at org.apache.ambari.server.state.fsm.StateMachineFactory$SingleInternalArc.doTransition(StateMachineFactory.java:354)
            at org.apache.ambari.server.state.fsm.StateMachineFactory.doTransition(StateMachineFactory.java:294)
            at org.apache.ambari.server.state.fsm.StateMachineFactory$SingleInternalArc.doTransition(StateMachineFactory.java:354)
            at org.apache.ambari.server.state.fsm.StateMachineFactory.doTransition(StateMachineFactory.java:294)
            at org.apache.ambari.server.state.fsm.StateMachineFactory.access$300(StateMachineFactory.java:39)
            at org.apache.ambari.server.state.fsm.StateMachineFactory$InternalStateMachine.doTransition(StateMachineFactory.java:440)
            at org.apache.ambari.server.state.host.HostImpl.handleEvent(HostImpl.java:584)
            at org.apache.ambari.server.agent.HeartBeatHandler.handleRegistration(HeartBeatHandler.java:464)
            at org.apache.ambari.server.agent.rest.AgentResource.register(AgentResource.java:95)
            at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
            at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
            at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
            at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
            at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
            at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
            at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
            at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
            at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
            at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
            at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
            at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
            at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
            at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:540)
            at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:715)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
            at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
            at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
            at org.apache.ambari.server.security.SecurityFilter.doFilter(SecurityFilter.java:67)
            at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
            at org.apache.ambari.server.api.AmbariPersistFilter.doFilter(AmbariPersistFilter.java:47)
            at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
            at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83)
            at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:364)
            at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
            at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
            at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
            at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
            at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
            at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
            at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
            at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
            at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
            at org.eclipse.jetty.server.Server.handle(Server.java:499)
            at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
            at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
            at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
            at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
            at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
            at java.lang.Thread.run(Thread.java:745)
    15 Jul 2016 12:40:06,423  WARN [ambari-agent-thread-163] ServletHandler:628 - /agent/v1/register/ranger-ru-kerberos-ha2-5.openstacklocal
    java.lang.NullPointerException
            at org.apache.ambari.server.topology.PersistedStateImpl.getAllRequests(PersistedStateImpl.java:202)
            at org.apache.ambari.server.topology.TopologyManager.ensureInitialized(TopologyManager.java:149)
            at org.apache.ambari.server.topology.TopologyManager.onHostRegistered(TopologyManager.java:406)
            at org.apache.ambari.server.state.host.HostImpl$HostRegistrationReceived.transition(HostImpl.java:313)
            at org.apache.ambari.server.state.host.HostImpl$HostRegistrationReceived.transition(HostImpl.java:275)
            at org.apache.ambari.server.state.fsm.StateMachineFactory$SingleInternalArc.doTransition(StateMachineFactory.java:354)
            at org.apache.ambari.server.state.fsm.StateMachineFactory.doTransition(StateMachineFactory.java:294)
            at org.apache.ambari.server.state.fsm.StateMachineFactory.access$300(StateMachineFactory.java:39)
            at org.apache.ambari.server.state.fsm.StateMachineFactory$InternalStateMachine.doTransition(StateMachineFactory.java:440)
            at org.apache.ambari.server.state.host.HostImpl.handleEvent(HostImpl.java:584)
            at org.apache.ambari.server.agent.HeartBeatHandler.handleRegistration(HeartBeatHandler.java:464)
            at org.apache.ambari.server.agent.rest.AgentResource.register(AgentResource.java:95)
            at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
    
    







--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message