ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksandr Kovalenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-22501) stack advisor error while adding Druid service
Date Wed, 22 Nov 2017 18:06:00 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-22501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16263022#comment-16263022
] 

Aleksandr Kovalenko commented on AMBARI-22501:
----------------------------------------------

+1 for the patch

> stack advisor error while adding Druid service
> ----------------------------------------------
>
>                 Key: AMBARI-22501
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22501
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Antonenko Alexander
>            Assignee: Antonenko Alexander
>            Priority: Critical
>             Fix For: 2.6.1
>
>         Attachments: AMBARI-22501.patch, AMBARI-22501_trunk.patch
>
>
> On adding Druid service via Ambari below exception was thrown
> {code}
> 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)
> {code}
> {code}
> (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
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message