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

Wrong service_package_folder in serviceLevelParams during Express Upgrade from HDP 2.6 to HDP 3.0

    XMLWordPrintableJSON

Details

    Description

      Upgrade HDP 2.6 to HDP 3.0 in Ambari 2.7; EU is supported only (i.e. no RU).

      At upgrade time, when the services are starting we should use the new stack version's service_package_folder instead of the old one. This was ok, until the change in FileCache.get_service_base_dir to get the base directory from 'serviceLevelParams' instead of 'commandParams'.

       ...
       "serviceLevelParams": {
       "credentialStoreEnabled": false, 
       "status_commands_timeout": 300, 
       "version": "2.7.3", 
       "service_package_folder": "common-services/YARN/2.1.0.2.0/package"
       },
       ...
       "commandParams": {
       "service_package_folder": "stacks/HDP/3.0/services/YARN/package", 
       "hooks_folder": "stack-hooks", 
       "clusterName": "cluster1", 
       "custom_command": "RESTART", 
       "upgrade_direction": "upgrade", 
       "upgrade_type": "nonrolling_upgrade", 
       "script": "scripts/historyserver.py", 
       "version": "3.0.0.2-155", 
       "forceRefreshConfigTagsBeforeExecution": "true", 
       "request_id": "17", 
       "command_timeout": "900", 
       "script_type": "PYTHON"
       },
      

      The service_package_folder is different; the one in commandParams is the correct value.

      Attachments

        Activity

          People

            mpapirkovskyy Papirkovskyy Myroslav
            mpapirkovskyy Papirkovskyy Myroslav
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 40m
                2h 40m