[jira] [Commented] (SENTRY-2153) Get owner.privileges value from hive for a given DB

2018-03-13 Thread kalyan kumar kalvagadda (JIRA)

[ 
https://issues.apache.org/jira/browse/SENTRY-2153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16397064#comment-16397064
 ] 

kalyan kumar kalvagadda commented on SENTRY-2153:
-

we need to extend the current notifications for create and alter database to 
hold these properties. This need changes to corresponding JSON message.

> Get owner.privileges value from hive for a given DB
> ---
>
> Key: SENTRY-2153
> URL: https://issues.apache.org/jira/browse/SENTRY-2153
> Project: Sentry
>  Issue Type: Sub-task
>  Components: Sentry
>Affects Versions: 2.1.0
>Reporter: Na Li
>Assignee: kalyan kumar kalvagadda
>Priority: Major
> Fix For: 2.1.0
>
>
> Sentry needs to get the "owner.privileges" value from hive for a given DB, 
> and cache it. So when a new table is created, the user can get implicit owner 
> privileges accordingly.
> When the value of "owner.privileges changes, Sentry should update the cache 
> value to the latest value.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SENTRY-2153) Get owner.privileges value from hive for a given DB

2018-03-13 Thread kalyan kumar kalvagadda (JIRA)

[ 
https://issues.apache.org/jira/browse/SENTRY-2153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16397061#comment-16397061
 ] 

kalyan kumar kalvagadda commented on SENTRY-2153:
-

db properties are stored in parameters in Database instance.

> Get owner.privileges value from hive for a given DB
> ---
>
> Key: SENTRY-2153
> URL: https://issues.apache.org/jira/browse/SENTRY-2153
> Project: Sentry
>  Issue Type: Sub-task
>  Components: Sentry
>Affects Versions: 2.1.0
>Reporter: Na Li
>Assignee: kalyan kumar kalvagadda
>Priority: Major
> Fix For: 2.1.0
>
>
> Sentry needs to get the "owner.privileges" value from hive for a given DB, 
> and cache it. So when a new table is created, the user can get implicit owner 
> privileges accordingly.
> When the value of "owner.privileges changes, Sentry should update the cache 
> value to the latest value.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (SENTRY-2153) Get owner.privileges value from hive for a given DB

2018-03-13 Thread kalyan kumar kalvagadda (JIRA)

[ 
https://issues.apache.org/jira/browse/SENTRY-2153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16396952#comment-16396952
 ] 

kalyan kumar kalvagadda commented on SENTRY-2153:
-

Here are the steps I'm taking
 # Understanding how "dbproperties" are stored in Database instance
 # See if the notification events for create and alter database are to be 
updated to capture db properties
 # Build a LRU cache in sentry which provides following
 ## Store the db properties
 ## Retrieve DB properties
 ## Update the  db properties

> Get owner.privileges value from hive for a given DB
> ---
>
> Key: SENTRY-2153
> URL: https://issues.apache.org/jira/browse/SENTRY-2153
> Project: Sentry
>  Issue Type: Sub-task
>  Components: Sentry
>Affects Versions: 2.1.0
>Reporter: Na Li
>Assignee: kalyan kumar kalvagadda
>Priority: Major
> Fix For: 2.1.0
>
>
> Sentry needs to get the "owner.privileges" value from hive for a given DB, 
> and cache it. So when a new table is created, the user can get implicit owner 
> privileges accordingly.
> When the value of "owner.privileges changes, Sentry should update the cache 
> value to the latest value.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)