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

Ambari stack upgrade, cannot delete Mapreduce using UpgradeHelper_HDP2.py

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • None
    • None

    Description

      Following steps on http://dev.hortonworks.com.s3.amazonaws.com/HDPDocuments/HDP2/HDP-2.1.0.0/bk_using_Ambari_book/content/ambari-chap9-4-1_2x.html

      when trying to delete mapreduce, it complains "HISTORYSERVER is in a non-removable state"

      python UpgradeHelper_HDP2.py --hostname localhost --user admin --password admin --clustername cl1 delete-mr
      Have you saved MR host mapping using action save-mr-mapping [y/n] (n)? y
      INFO:UpgradeHelper:/usr/bin/curl -u admin:admin -H X-Requested-By: ambari -X PUT -d {"HostRoles": {"state": "DISABLED"}} http://localhost:8080/api/v1/clusters/cl1/hosts/amb-upg-all-others-3.cs1cloud.internal/host_components/TASKTRACKER
      INFO:UpgradeHelper:/usr/bin/curl -u admin:admin -H X-Requested-By: ambari -X PUT -d {"HostRoles": {"state": "DISABLED"}} http://localhost:8080/api/v1/clusters/cl1/hosts/amb-upg-all-others-3.cs1cloud.internal/host_components/JOBTRACKER
      INFO:UpgradeHelper:/usr/bin/curl -u admin:admin -H X-Requested-By: ambari -X DELETE http://localhost:8080/api/v1/clusters/cl1/services/MAPREDUCE
      'ERROR: Exiting with exit code 1. Reason: {\n  "status" : 500,\n  "message" : "org.apache.ambari.server.controller.spi.SystemException: An internal system exception occurred: Cannot remove cl1/MAPREDUCE. HISTORYSERVER is in a non-removable state."\n}'
      ERROR:UpgradeHelper:ERROR: Exiting with exit code 1. Reason: {
        "status" : 500,
        "message" : "org.apache.ambari.server.controller.spi.SystemException: An internal system exception occurred: Cannot remove cl1/MAPREDUCE. HISTORYSERVER is in a non-removable state."
      }
      

      Attachments

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              aonishuk Andrew Onischuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: