Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Error while upgrading ambari server from 2.6.1 to 2.7

Highlighted

Error while upgrading ambari server from 2.6.1 to 2.7

New Contributor

When i try to upgrade ambari from 2.6.1 to 2.7 its failing when i do server upgrade . please find the error below

2018-09-02 18:19:51,423 ERROR [main] SchemaUpgradeHelper:473 - Exception occurred during upgrade, failed
org.apache.ambari.server.AmbariException: Trying to create a ServiceComponent not recognized in stack info, clusterName=HDF_LAB, serviceName=AMBARI_INFRA, componentName=INFRA_SOLR, stackInfo=HDF-3.1
at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executePreDMLUpdates(SchemaUpgradeHelper.java:223)
at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:454)
Caused by: java.lang.RuntimeException: Trying to create a ServiceComponent not recognized in stack info, clusterName=HDF_LAB, serviceName=AMBARI_INFRA, componentName=INFRA_SOLR, stackInfo=HDF-3.1
at org.apache.ambari.server.state.ServiceComponentImpl.updateComponentInfo(ServiceComponentImpl.java:154)
at org.apache.ambari.server.state.ServiceComponentImpl.<init>(ServiceComponentImpl.java:178)
at org.apache.ambari.server.state.ServiceComponentImpl$$EnhancerByGuice$$1d58f0d8.<init>(<generated>)
at org.apache.ambari.server.state.ServiceComponentImpl$$EnhancerByGuice$$1d58f0d8$$FastClassByGuice$$280022dc.newInstance(<generated>)
at com.google.inject.internal.ProxyFactory$ProxyConstructor.newInstance(ProxyFactory.java:265)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:111)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1019)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1015)
at com.google.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:776)
at com.sun.proxy.$Proxy21.createExisting(Unknown Source)
at org.apache.ambari.server.state.ServiceImpl.<init>(ServiceImpl.java:181)
at org.apache.ambari.server.state.ServiceImpl$$EnhancerByGuice$$861a4bc.<init>(<generated>)
at org.apache.ambari.server.state.ServiceImpl$$EnhancerByGuice$$861a4bc$$FastClassByGuice$$6de922a8.newInstance(<generated>)
at com.google.inject.internal.ProxyFactory$ProxyConstructor.newInstance(ProxyFactory.java:265)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:111)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1019)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1015)
at com.google.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:776)
at com.sun.proxy.$Proxy15.createExisting(Unknown Source)
at org.apache.ambari.server.state.cluster.ClusterImpl.loadServices(ClusterImpl.java:451)
at org.apache.ambari.server.state.cluster.ClusterImpl.<init>(ClusterImpl.java:344)
at org.apache.ambari.server.state.cluster.ClusterImpl$$EnhancerByGuice$$13ee505a.<init>(<generated>)
at org.apache.ambari.server.state.cluster.ClusterImpl$$EnhancerByGuice$$13ee505a$$FastClassByGuice$$73468d7.newInstance(<generated>)
at com.google.inject.internal.ProxyFactory$ProxyConstructor.newInstance(ProxyFactory.java:265)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:111)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268)
at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1019)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085)
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1015)
at com.google.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:776)
at com.sun.proxy.$Proxy11.create(Unknown Source)
at org.apache.ambari.server.state.cluster.ClustersImpl.loadClustersAndHosts(ClustersImpl.java:300)
at org.apache.ambari.server.state.cluster.ClustersImpl.safelyLoadClustersAndHosts(ClustersImpl.java:266)
at org.apache.ambari.server.state.cluster.ClustersImpl.getClustersByName(ClustersImpl.java:182)
at org.apache.ambari.server.state.cluster.ClustersImpl.getClusters(ClustersImpl.java:677)
at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.getCheckedClusterMap(AbstractUpgradeCatalog.java:494)
at org.apache.ambari.server.upgrade.UpgradeCatalog262.fixDesiredStack(UpgradeCatalog262.java:81)
at org.apache.ambari.server.upgrade.UpgradeCatalog262.executePreDMLUpdates(UpgradeCatalog262.java:69)
at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.preUpgradeData(AbstractUpgradeCatalog.java:975)
at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executePreDMLUpdates(SchemaUpgradeHelper.java:220)
... 1 more

1 REPLY 1

Re: Error while upgrading ambari server from 2.6.1 to 2.7

@Bharadwaj Bhimavarapu

You cluster in Database has the "AMBARI_INFRA" service added but for some reason your stack does not have the service definition at the file system /var/lib/ambari-server/resources/common-services/ and /var/lib/ambari-server/resources/stacks/HDF/3.1/services

If you are not using that service then you can clean up from the database using below article and then attempt the Upgrade.

https://community.hortonworks.com/articles/79546/how-to-cleanup-service-from-ambari-database.html

Don't have an account?
Coming from Hortonworks? Activate your account here