[
https://issues.apache.org/jira/browse/HBASE-6894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13491711#comment-13491711
]
stack commented on HBASE-6894:
------------------------------
MS> I"ll fix the below comments on help screens on commit (They are not your
issues -- I just saw them reviewing this):
In alter help, this example does not illustrate the point that you can alter
multiple familes at once:
hbase> alter 't1', 'f1', {NAME => 'f2', IN_MEMORY => true}, 'f3'
Lets not have two ways to do something:
hbase> alter 't1', NAME => 'f1', METHOD => 'delete'
hbase> alter 't1', 'delete' => 'f1'
Should we explain CONFIG? Its not explained in create command.
Question for you Sergey:
How do I remove something from CONFIG? Maybe you can't just now. For another
issue.
Table attributes are currently anonymous... They look the same as a CF only w/o
a NAME => attribute. Should they be named as in
TABLE_ATTRIBUTES => {CONFIG {'x' => 'y', 'OWNER' => 'SOMEOWNER'}}
METHOD => 'table_att' as analog for CF NAME => 'name' was ugly. I'm glad you
removed that... just wondering if we should add something back to say what they
are.
I'm up for commit. This fixes a bunch of stuff. It unearths the fact that
there is a load more work to do in here but that is not your fault.
> Adding metadata to a table in the shell is both arcane and painful
> ------------------------------------------------------------------
>
> Key: HBASE-6894
> URL: https://issues.apache.org/jira/browse/HBASE-6894
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 0.96.0
> Reporter: stack
> Assignee: Sergey Shelukhin
> Labels: noob
> Attachments: HBASE-6894.patch, HBASE-6894.patch, HBASE-6894.patch,
> HBASE-6894-v2.patch, HBASE-6894-v3.1-squashed.patch,
> HBASE-6894-v3-squashed.patch, HBASE-6894-v4-squashed.patch
>
>
> In production we have hundreds of tables w/ whack names like 'aliaserv',
> 'ashish_bulk', 'age_gender_topics', etc. It be grand if you could look in
> master UI and see stuff like owner, eng group responsible, miscellaneous
> description, etc.
> Now, HTD has support for this; each carries a dictionary. Whats a PITA
> though is adding attributes to the dictionary. Here is what seems to work on
> trunk (though I do not trust it is doing the right thing):
> {code}
> hbase> create 'SOME_TABLENAME', {NAME => 'd', VERSION => 1, COMPRESSION =>
> 'LZO'}
> hbase> # Here is how I added metadata
> hbase> disable 'SOME_TABLENAME'
> hbase> alter 'SOME_TABLENAME', METHOD => 'table_att', OWNER => 'SOMEON',
> CONFIG => {'ENVIRONMENT' => 'BLAH BLAH', 'SIZING' => 'The size should be
> between 0-10K most of the time with new URLs coming in and getting removed as
> they are processed unless the pipeline has fallen behind', 'MISCELLANEOUS' =>
> 'Holds the list of URLs waiting to be processed in the parked page detection
> analyzer in ingestion pipeline.'}
> ...
> describe...
> enable...
> {code}
> The above doesn't work in 0.94. Complains about the CONFIG, the keyword we
> are using for the HTD dictionary.
> It works in 0.96 though I'd have to poke around some more to ensure it is
> doing the right thing.
> But this METHOD => 'table_att' stuff is really ugly.... can we fix it?
> And I can't add table attributes on table create seemingly.
> A little bit of thought and a bit of ruby could clean this all up.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira