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

Allow for server-side commands

    XMLWordPrintableJSON

Details

    Description

      Ambari currently handles client-/agent-side commands; however there is no ability to handle server-side commands. Server-side commands should be specified as a task in a stage and managed along with the stage.

      Use Case: Generate principals and keytabs on the Ambari server before sending the keytabs to their relevant hosts.

      Implementation: To add the concept of a server-side task:

      • update org.apache.ambari.server.serveraction.ServerAction to be an abstract class
        • server-side tasks must implement this class
      • reuse existing host_role_command and execution_command data
        • server-side tasks are to have a role of AMBARI_SERVER_ACTION
        • server-side execution command data should be encapsulated as JSON and specify the ServerAction implementation class and any needed payload data
      • org.apache.ambari.server.actionmanager.ActionScheduler and org.apache.ambari.server.serveraction.ServerActionManagerImpl need to be updated to handle the execution of server-side tasks
        • each server-side task should be executed in its own thread.
          • server_side tasks should be executed in (staged) order, serially - not in parallel
          • server_side tasks should ensure not to mess up stage ordering

      Attachments

        1. AMBARI-7985_11.patch
          2 kB
          Robert Levas
        2. AMBARI-7985_10.patch
          119 kB
          Robert Levas
        3. AMBARI-7985_08.patch
          118 kB
          Robert Levas
        4. AMBARI-7985_07.patch
          118 kB
          Robert Levas
        5. AMBARI-7985_06.patch
          116 kB
          Robert Levas
        6. AMBARI-7985_05.patch
          110 kB
          Robert Levas
        7. AMBARI-7985_04.patch
          110 kB
          Robert Levas
        8. AMBARI-7985_03.patch
          112 kB
          Robert Levas
        9. AMBARI-7985_03.patch
          112 kB
          Robert Levas
        10. AMBARI-7985_02.patch
          112 kB
          Robert Levas
        11. AMBARI-7985_01.patch
          107 kB
          Robert Levas
        12. AMBARI-7985_01.patch
          107 kB
          Robert Levas

        Issue Links

          Activity

            People

              rlevas Robert Levas
              rlevas Robert Levas
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: