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

Trying to upgrade HDF 2.0.2.0 to HDF 3.0.0.0 fails with NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.5.0
    • 2.5.1
    • ambari-server
    • None

    Description

      The following steps were followed.
      1. Installed ambari 2.4.1.0
      2. Installed HDF 2.0.2.0
      3. Upgraded ambari to 2.5.0.3
      4 Upgraded mpack to 3.0.0.0-169 is installed.
      5. Ambari launches successfully and HDF 2.0.2.0 shows correctly
      6. Registered and installed the new version 3.0.0.0-169
      7. Click on express upgrade. Throws 500

      Ambari-server has the following exception in the logs

      11 Apr 2017 08:11:59,794 ERROR [ambari-client-thread-194] ContainerResponse:419 - The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
      java.lang.NullPointerException
      at org.apache.ambari.server.state.stack.ConfigUpgradePack.merge(ConfigUpgradePack.java:124)
      at org.apache.ambari.server.controller.internal.UpgradeResourceProvider$ConfigurationPackBuilder.build(UpgradeResourceProvider.java:1839)
      at org.apache.ambari.server.controller.internal.UpgradeResourceProvider.createUpgrade(UpgradeResourceProvider.java:812)
      at org.apache.ambari.server.controller.internal.UpgradeResourceProvider$1.invoke(UpgradeResourceProvider.java:382)
      at org.apache.ambari.server.controller.internal.UpgradeResourceProvider$1.invoke(UpgradeResourceProvider.java:350)
      at org.apache.ambari.server.controller.internal.AbstractResourceProvider.invokeWithRetry(AbstractResourceProvider.java:455)
      at org.apache.ambari.server.controller.internal.AbstractResourceProvider.createResources(AbstractResourceProvider.java:278)
      at org.apache.ambari.server.controller.internal.UpgradeResourceProvider.createResources(UpgradeResourceProvider.java:350)
      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.UpgradeService.createUpgrade(UpgradeService.java:58)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      

      Attachments

        1. AMBARI-20811.patch
          1 kB
          Dmitry Lysnichenko

        Issue Links

          Activity

            People

              dmitriusan Dmitry Lysnichenko
              dmitriusan Dmitry Lysnichenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: