Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-17481 LLAP workload management
  3. HIVE-18152

Idempotent state change for resource plan

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Done
    • 3.0.0
    • None
    • None
    • None

    Description

      show resource plans;
      +----------+----------+--------------------+
      | rp_name  |  status  | query_parallelism  |
      +----------+----------+--------------------+
      | llap     | ACTIVE   | 1                  |
      | global   | ENABLED  | 1                  |
      +----------+----------+--------------------+
      
      ALTER RESOURCE PLAN llap ACTIVATE;
      Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Cannot get a resource plan to apply (state=08S01,code=1)
      

      It is better not to throw an error when current state is same as the altered state.

      Attachments

        1. HIVE-18152.1.patch
          19 kB
          Prasanth Jayachandran

        Issue Links

          Activity

            People

              prasanth_j Prasanth Jayachandran
              prasanth_j Prasanth Jayachandran
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: