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

HDP Express Upgrade to halts / fails at Update Target Repositories


I am currently doing an upgrade from HDP- to HDP- on a HDP Cluster

Previously I installed

Unfortunately did not read upgrade Guide for HDF before staring the upgrade.

For the upgrade process I upgraded ambari to version (without touching the mpacks)

Before starting the HDP upgrade there was the warning that MongoDB and Nifi would be uninstalled because they don't belong to the HDP stack, which was fine for me.

The HDP Upgrade, which I started after the ambari upgrade at first halted / failed in the step Remove unsupported services and components due to MongoDB and HDF. I paused the upgrade and uninstalled the MongoDB and Nifi Services through ambari as well as uninstalling the mongodb mpack and upgrading the hdp mpack to version

Then the HDP upgrade proceeded but failed at Update Target Repositories with a stdout of

Updating the desired repository version to for all cluster services.

and a stderr of

org.apache.ambari.server.ServiceNotFoundException: Service not found, clusterName=itpp, serviceName=MONGODB
    at org.apache.ambari.server.state.cluster.ClusterImpl.getService(
    at org.apache.ambari.server.state.UpgradeHelper.setDesiredRepositories(
    at org.apache.ambari.server.state.UpgradeHelper.updateDesiredRepositoriesAndConfigs(
    at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(
    at org.apache.ambari.server.serveraction.upgrades.UpdateDesiredRepositoryAction.updateDesiredRepositoryVersion(
    at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(
    at org.apache.ambari.server.serveraction.upgrades.UpdateDesiredRepositoryAction.execute(
    at org.apache.ambari.server.serveraction.ServerActionExecutor$Worker.execute(
    at org.apache.ambari.server.serveraction.ServerActionExecutor$

I checked

but unfortunately the answers provided there where either not helpful for me or missing some details. I did check for MONGODB and NIFI in the tables


and did not find any related entries. It seems that there are still some references to Nifi and/or Mongodb somewhere the in ambari database.

In the ambari-server.log there is also the error:

Failed to obtain service info for stack HDP-2.6, service name NIFI
org.apache.ambari.server.StackAccessException: Stack data, stackName=HDP, stackVersion=2.6, serviceName=NIFI

Any advice how to proceed or how to restart the upgrade (if advisable)?