hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sushanth Sowmyan (JIRA)" <>
Subject [jira] [Commented] (HIVE-9271) Add ability for client to request metastore to fire an event
Date Tue, 20 Jan 2015 22:05:34 GMT


Sushanth Sowmyan commented on HIVE-9271:

btw, per the hive manual, "ALTER TABLE TOUCH PARTITION" seems to be a way to do this:

Alter Table/Partition Touch
ALTER TABLE table_name TOUCH [PARTITION partition_spec];
TOUCH reads the metadata, and writes it back. This has the effect of causing the pre/post
execute hooks to fire. An example use case is if you have a hook that logs all the tables/partitions
that were modified, along with an external script that alters the files on HDFS directly.
Since the script modifies files outside of hive, the modification wouldn't be logged by the
hook. The external script could call TOUCH to fire the hook and mark the said table or partition
as modified.
Also, it may be useful later if we incorporate reliable last modified times. Then touch would
update that time as well.

I'm not certain if what this translates to is markPartitionForEvent, because I haven't looked
at the impl yet.

> Add ability for client to request metastore to fire an event
> ------------------------------------------------------------
>                 Key: HIVE-9271
>                 URL:
>             Project: Hive
>          Issue Type: New Feature
>          Components: Metastore
>            Reporter: Alan Gates
>            Assignee: Alan Gates
> Currently all events in Hive are fired by the metastore.  However, there are events that
only the client fully understands, such as DML operations.  There should be a way for the
client to request the metastore to fire a particular event.

This message was sent by Atlassian JIRA

View raw message