hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Misty Stanley-Jones (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-11869) Support snapshot owner
Date Thu, 18 Sep 2014 01:38:34 GMT

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

Misty Stanley-Jones commented on HBASE-11869:
---------------------------------------------

Doc to be added when this is committed (just keeping track)

<para>Prior to HBase 0.94.1, a table could have an owner, which could be different from
the
          table creator, and was stored in the column descriptor. This was removed by <link
            xlink:href="https://issues.apache.org/jira/browse/HBASE-6188">HBASE-6188</link>,
and
          instead, the creator of the table is considered its owner.</para>
        <para>As of <link xlink:href="https://issues.apache.org/jira/browse/HBASE-11869">HBASE-11889</link>,
you can also assign
          HBase Tables have a new metadata attribute <literal>OWNER</literal>,
which is added to
          snapshots taken on that table, and designates who can restore the table from a snapshot.
By default, the
          owner is the user principal who creates the table, though it may be changed at table
          creation time or during an <command>alter</command> operation by setting
or changing the
            <option>OWNER</option> table attribute. Only a single user principal
can own a table at
          a given time. A table owner is implicitly granted all permissions to a given table.
        </para>

> Support snapshot owner
> ----------------------
>
>                 Key: HBASE-11869
>                 URL: https://issues.apache.org/jira/browse/HBASE-11869
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Liu Shaohui
>            Assignee: Liu Shaohui
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: HBASE-11869-trunk-v1.diff, HBASE-11869-trunk-v3.diff, HBASE-11869-trunk-v4.diff
>
>
> In current codebase, the table snapshot operations only can be done by the global admin
, not by  the table admin.
> There is a multi-tenant hbase cluster, each table has different snapshot policies, eg:
do snapshot per week, or snapshot after the new data are imported. 
> We want to release the snapshot permission to each table admin.
> According to [~mbertozzi]'s suggestion, we implement the snapshot owner feature.
> * The user with table admin permission can create snapshot and the owner of this snapshot
is this user.
> * The owner of snapshot can delete and restore the snapshot.
> * Only the user with global admin permission can clone a snapshot, for this operation
creates a new table.
>   



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message