Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-788

Triggers when a new partition is created for a table

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: None
    • Labels:
      None

      Description

      One requirement for HIVE-787 is that users would like to run a command whenever a new partition of a Hive table gets created.

      There are several ways to achieve this functionality:

      A. Probe and wait: We can have the scripts running in a loop checking if a new partition is created.
      Pros: easy to write, easy to control
      Cons: will introduce another delay based on the probing interval.

      B. Triggered: The command is registered inside the hive metastore. Whenever a partition gets created, we run the registered command.

      Several questions around option B are:
      1. whether to support registration of HiveQL or shell command;
      2. which machine/environment to run the command;
      3. what to do if the registered command failed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                zshao Zheng Shao
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: