accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-2841) Arbitrary namespace and table metadata tags
Date Wed, 10 Sep 2014 20:39:35 GMT

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

ASF GitHub Bot commented on ACCUMULO-2841:
------------------------------------------

Github user ctubbsii commented on a diff in the pull request:

    https://github.com/apache/accumulo/pull/15#discussion_r17387225
  
    --- Diff: core/src/main/java/org/apache/accumulo/core/client/admin/TableOperations.java
---
    @@ -430,6 +430,21 @@ void rename(String oldTableName, String newTableName) throws AccumuloSecurityExc
        *           if the table does not exist
        */
       Iterable<Entry<String,String>> getProperties(String tableName) throws AccumuloException,
TableNotFoundException;
    +  
    +  /**
    +   * Gets a specific property given its key. Note that recently changed properties may
not be available immediately.
    +   * 
    +   * @param tableName
    +   *          the name of the table
    +   * @param property
    +   *          the name of a per-table property
    +   * @throws TableNotFoundException
    +   *           if the table does not exist
    +   * @throws AccumuloException
    +   *           if a general error occurs   * 
    +   * @return value of the specified property, null if property does not exist
    +   */
    +  String getProperty(String tableName, String property)throws AccumuloException, TableNotFoundException;
    --- End diff --
    
    This API change can be part of a separate issue. Now that you've pointed it out, it seems
like an obvious oversight in our API (who wants to iterate over an iterable to get one property?),
but it is probably outside the scope of this.


> Arbitrary namespace and table metadata tags
> -------------------------------------------
>
>                 Key: ACCUMULO-2841
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2841
>             Project: Accumulo
>          Issue Type: New Feature
>          Components: client
>            Reporter: Christopher Tubbs
>            Assignee: Jenna Huston
>              Labels: metadata, newbie
>             Fix For: 1.7.0
>
>
> Application-level tags (tagName = tagValue) could be added to tables and namespaces,
to allow applications to set application-level metadata about a namespace or table.
> Use cases include management for billing, administrator notes, date created, last ingest
time, stats, information about the table's schema... or anything else an application might
wish to use tags for.
> These tags could be stored in zookeeper, but are probably best stored in the metadata
table (probably in a separate reserved area of the metadata table, ~tag) because they could
be arbitrarily large and do not need to be persisted in memory.
> This feature would include new APIs to manipulate table / namespace metadata. Considerations
should be made to ensure users have appropriate permissions to add tags to an object.
> This feature could be used to implement ACCUMULO-650.



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

Mime
View raw message