[
https://issues.apache.org/jira/browse/HIVE-24413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17247720#comment-17247720
]
Zhihua Deng commented on HIVE-24413:
------------------------------------
Hi [~AlexeyVi]. The metastore does not know the the operation when calling
method getTable. For example, issue a getTable may be write/select or
something else related. do you have any ideas on this? we have some trouble
on this.
Thanks, Zhihua
> MetaStorePreEventListener is incomplete
> ---------------------------------------
>
> Key: HIVE-24413
> URL: https://issues.apache.org/jira/browse/HIVE-24413
> Project: Hive
> Issue Type: Improvement
> Components: Metastore
> Affects Versions: 3.1.2
> Reporter: Alexey Vishnevskiy
> Priority: Major
> Fix For: All Versions
>
>
> According to Hive documentation, MetaStorePreEventListener should be used to
> perform authorization and/or additional actions for every metastore call.
> MetaStorePreEventListener is implemented and works for some calls, but does
> not work for others. For example, It does work for calls: getTable,
> createDatabase, createTable, alterTable, alterPartition, etc... but does not
> get called for alterDatabase, getFields, getDatabases, getTableStatistics,
> etc...
> Proper implementation of MetaStorePreEventListener would require a lot of
> changes in different classes so it seems that it is better to add a similar
> listener in the descendant of org.apache.thrift.ProcessFunction and change
> ThriftHiveMetastore generated by thrift compiler to descend all
> auto-generated classes from it, not from the ProcessFunction directly. This
> applies to all versions of HiveMetastore with MetaStorePreEventListener
> implemented.
> I would like to contribute code for this functionality for the trunk - please
> let me know your suggestions and thoughts.
> Thanks!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)