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

stack advisor error while adding Druid service

    XMLWordPrintableJSON

Details

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

    Description

      On adding Druid service via Ambari below exception was thrown

      14 Nov 2017 05:48:06,083 ERROR [ambari-client-thread-44539] BaseManagementHandler:61 - Caught a system exception while attempting to create a resource: Stack Advisor reported an error: UnboundLocalError: local variable 'host' referenced before assignment
      StdOut file: /var/run/ambari-server/stack-recommendations/44/stackadvisor.out
      
      StdErr file: /var/run/ambari-server/stack-recommendations/44/stackadvisor.err
      org.apache.ambari.server.controller.spi.SystemException: Stack Advisor reported an error: UnboundLocalError: local variable 'host' referenced before assignment
      StdOut file: /var/run/ambari-server/stack-recommendations/44/stackadvisor.out
      
      StdErr file: /var/run/ambari-server/stack-recommendations/44/stackadvisor.err
              at org.apache.ambari.server.controller.internal.RecommendationResourceProvider.createResources(RecommendationResourceProvider.java:98)
              at org.apache.ambari.server.controller.internal.ClusterControllerImpl.createResources(ClusterControllerImpl.java:298)
              at org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.create(PersistenceManagerImpl.java:97)
              at org.apache.ambari.server.api.handlers.CreateHandler.persist(CreateHandler.java:37)
              at org.apache.ambari.server.api.handlers.BaseManagementHandler.handleRequest(BaseManagementHandler.java:73)
              at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:144)
              at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:126)
              at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:90)
              at org.apache.ambari.server.api.services.RecommendationService.getRecommendation(RecommendationService.java:59)
              at sun.reflect.GeneratedMethodAccessor1179.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$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
              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.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:558)
              at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
              at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1507)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
              at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
              at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
              at org.apache.ambari.server.security.authorization.AmbariAuthorizationFilter.doFilter(AmbariAuthorizationFilter.java:287)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
              at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
              at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
              at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
      
      (docker)[root@hcube2-1n01 ambari-server]# cat /var/run/ambari-server/stack-recommendations/44/stackadvisor.err
      Traceback (most recent call last):
        File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 173, in <module>
          main(sys.argv)
        File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 121, in main
          result = stackAdvisor.recommendConfigurations(services, hosts)
        File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py", line 776, in recommendConfigurations
          calculation(configurations, clusterSummary, services, hosts)
        File "/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.6/services/stack_advisor.py", line 672, in recommendHIVEConfigurations
          druid_coordinator_host_port = str(host['Hosts']['host_name']) + ":" + str(
      UnboundLocalError: local variable 'host' referenced before assignment
      

      Attachments

        1. AMBARI-22501.patch
          0.8 kB
          Antonenko Alexander
        2. AMBARI-22501_trunk.patch
          0.7 kB
          Antonenko Alexander

        Activity

          People

            aantonenko Antonenko Alexander
            aantonenko Antonenko Alexander
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: