[ https://issues.apache.org/jira/browse/HIVE-2853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phabricator updated HIVE-2853: ------------------------------ Attachment: HIVE-2853.D2175.1.patch kevinwilfong requested code review of "HIVE-2853 [jira] Add pre event listeners to metastore". Reviewers: JIRA https://issues.apache.org/jira/browse/HIVE-2853 Added a new class of MetaStorePreEventListeners which are called before an action is taken by the metastore. They are run before most validation and the call to the Raw Store (after getting objects like partitons and tables where convenient). These are hooks like MetaStoreEventListener implementations, and are currently called on all functions for which MetaStoreEventListeners are called, though this can change. Currently there are event listeners in the metastore which run after the completion of a method. It would be useful to have similar hooks which run before the metastore method is executed. These can be used to make validating names, locations, etc. customizable. TEST PLAN EMPTY REVISION DETAIL https://reviews.facebook.net/D2175 AFFECTED FILES metastore/src/test/org/apache/hadoop/hive/metastore/DummyPreListener.java metastore/src/test/org/apache/hadoop/hive/metastore/TestMetaStoreEventListener.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java metastore/src/java/org/apache/hadoop/hive/metastore/MetaStorePreEventListener.java metastore/src/java/org/apache/hadoop/hive/metastore/events/PreCreateDatabaseEvent.java metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropDatabaseEvent.java metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropPartitionEvent.java metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAlterPartitionEvent.java metastore/src/java/org/apache/hadoop/hive/metastore/events/Event.java metastore/src/java/org/apache/hadoop/hive/metastore/events/PreCreateTableEvent.java metastore/src/java/org/apache/hadoop/hive/metastore/events/PreDropTableEvent.java metastore/src/java/org/apache/hadoop/hive/metastore/events/ListenerEvent.java metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAlterTableEvent.java metastore/src/java/org/apache/hadoop/hive/metastore/events/PreLoadPartitionDoneEvent.java metastore/src/java/org/apache/hadoop/hive/metastore/events/PreAddPartitionEvent.java common/src/java/org/apache/hadoop/hive/conf/HiveConf.java MANAGE HERALD DIFFERENTIAL RULES https://reviews.facebook.net/herald/view/differential/ WHY DID I GET THIS EMAIL? https://reviews.facebook.net/herald/transcript/4773/ Tip: use the X-Herald-Rules header to filter Herald messages in your client. > Add pre event listeners to metastore > ------------------------------------ > > Key: HIVE-2853 > URL: https://issues.apache.org/jira/browse/HIVE-2853 > Project: Hive > Issue Type: Improvement > Reporter: Kevin Wilfong > Assignee: Kevin Wilfong > Attachments: HIVE-2853.D2175.1.patch > > > Currently there are event listeners in the metastore which run after the > completion of a method. It would be useful to have similar hooks which run > before the metastore method is executed. These can be used to make > validating names, locations, etc. customizable. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira