Support Questions
Find answers, ask questions, and share your expertise

upgrade PHD ambari2,1.2.2 to HDP ambari2,2.2.0

upgrade PHD ambari2,1.2.2 to HDP ambari2,2.2.0

Explorer

I upgraded ambari from PHD ambari2.1.2.2 to HDP ambari2.2.2.0 and i am facing issues while adding a new repo to upgrade the cluster

It throws this error on the UI

the logs on the server show this error

04 Aug 2016 15:02:51,357 ERROR [qtp-ambari-client-27] ReadHandler:91 - Caught a runtime excep java.lang.NullPointerException at org.apache.ambari.server.controller.internal.CompatibleRepositoryVersionResourcePr at org.apache.ambari.server.controller.internal.ClusterControllerImpl$ExtendedResourc at org.apache.ambari.server.controller.internal.ClusterControllerImpl.getResources(Cl at org.apache.ambari.server.api.query.QueryImpl.doQuery(QueryImpl.java:508) at org.apache.ambari.server.api.query.QueryImpl.queryForSubResources(QueryImpl.java:4 at org.apache.ambari.server.api.query.QueryImpl.queryForResources(QueryImpl.java:436) at org.apache.ambari.server.api.query.QueryImpl.execute(QueryImpl.java:216) at org.apache.ambari.server.api.handlers.ReadHandler.handleRequest(ReadHandler.java:6 at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:135) at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:1 at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:7 at org.apache.ambari.server.api.services.StacksService.getStackVersion(StacksService. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: at java.lang.reflect.Method.invoke(Method.java:606) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFa at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchPro at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.disp at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302 at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.ja at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.ja at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.ja at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceCl at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplic at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplic at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplica at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplica at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.jav at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.jav at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java: at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilt at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(Except at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionM at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFi at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilte at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(Req at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.apache.ambari.server.security.authorization.AmbariAuthorizationFilter.doFilter at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFi at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProx at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:1 at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilt at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProx at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java: at org.apache.ambari.server.api.MethodOverrideFilter.doFilter(MethodOverrideFilter.ja at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java: at org.apache.ambari.server.api.AmbariPersistFilter.doFilter(AmbariPersistFilter.java at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java: at org.apache.ambari.server.security.AbstractSecurityHeaderFilter.doFilter(AbstractSe at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java: at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82) at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:294) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java: at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHandle at org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHandle at org.apache.ambari.server.controller.AmbariHandlerList.handle(AmbariHandlerList.jav at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnecti at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnect at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(Abst at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:6 at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:744)

04 Aug 2016 15:02:51,362 WARN [qtp-ambari-client-27] ServletHandler:563 - /api/v1/stacks/PHD java.lang.NullPointerException at org.apache.ambari.server.controller.internal.CompatibleRepositoryVersionResourcePr at org.apache.ambari.server.controller.internal.ClusterControllerImpl$ExtendedResourc at org.apache.ambari.server.controller.internal.ClusterControllerImpl.getResources(Cl at org.apache.ambari.server.api.query.QueryImpl.doQuery(QueryImpl.java:508) at org.apache.ambari.server.api.query.QueryImpl.queryForSubResources(QueryImpl.java:4 at org.apache.ambari.server.api.query.QueryImpl.queryForResources(QueryImpl.java:436) at org.apache.ambari.server.api.query.QueryImpl.execute(QueryImpl.java:216) at org.apache.ambari.server.api.handlers.ReadHandler.handleRequest(ReadHandler.java:6 at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:135) at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:1 at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:7 at org.apache.ambari.server.api.services.StacksService.getStackVersion(StacksService. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: at java.lang.reflect.Method.invoke(Method.java:606) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFa at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchPro at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.disp at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302 at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.ja at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.ja at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.ja at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceCl at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplic at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplic at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplica at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplica at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.jav at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.jav at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java: at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilt at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(Except at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionM at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFi at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilte at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(Req at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.apache.ambari.server.security.authorization.AmbariAuthorizationFilter.doFilter at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFi at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filt at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProx at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:1 at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilt at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProx at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java: at org.apache.ambari.server.api.MethodOverrideFilter.doFilter(MethodOverrideFilter.ja at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java: at org.apache.ambari.server.api.AmbariPersistFilter.doFilter(AmbariPersistFilter.java at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java: at org.apache.ambari.server.security.AbstractSecurityHeaderFilter.doFilter(AbstractSe at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java: at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:82) at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:294) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java: at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHandle at org.apache.ambari.server.controller.AmbariHandlerList.processHandlers(AmbariHandle at org.apache.ambari.server.controller.AmbariHandlerList.handle(AmbariHandlerList.jav at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnecti at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnect at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(Abst at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:6 at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:744)

I fount this error at stacks

other stacks is normal.

curl -H “X-Requested-By: ambari” -X GET -u admin:admin http://pivhdsne.localdomain:8080/api/v1/stacks/PHD/versions/3.0

{

"status": 500, "message": "Server Error"

}

what can i do in this case?

1 REPLY 1
Highlighted

Re: upgrade PHD ambari2,1.2.2 to HDP ambari2,2.2.0

Mentor
@Han Jeongphill

you should really contact HWX to do PHD > HDP migration. Your curl call references PHD 3.0 stack which does not exist in HDP, I'm guessing Ambari 2.2 does not know of a stack called PHD 3.0. It is hardcoded somewhere in Ambari

curl -H “X-Requested-By: ambari” -X GET -u admin:admin http://pivhdsne.localdomain:8080/api/v1/stacks/PHD/versions/3.0
Don't have an account?