You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (Commented) (JIRA)" <ji...@apache.org> on 2012/03/09 23:38:57 UTC
[jira] [Commented] (HBASE-5548) Add ability to get a table in the
shell
[ https://issues.apache.org/jira/browse/HBASE-5548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13226552#comment-13226552 ]
stack commented on HBASE-5548:
------------------------------
I don't get this comment:
{code}
+ #define the command name in 'where' namespace
+ #which actually just delegates to the shell instance
{code}
Instead of
{code}
+ ret = translate_hbase_exceptions(*args) { command(*args) }
+ return ret
{code}
.. why not just
{code}
+ return translate_hbase_exceptions(*args) { command(*args) }
{code}
Don't need this anymore
+# Copyright 2010 The Apache Software Foundation
I don't see table.help. Is it missing from this patch?
Can you include snippet of a session using this new facility in shell?
Good on you Jesse
> Add ability to get a table in the shell
> ---------------------------------------
>
> Key: HBASE-5548
> URL: https://issues.apache.org/jira/browse/HBASE-5548
> Project: HBase
> Issue Type: Improvement
> Components: shell
> Reporter: Jesse Yates
> Assignee: Jesse Yates
> Fix For: 0.96.0
>
> Attachments: ruby_HBASE-5528-v0.patch
>
>
> Currently, all the commands that operate on a table in the shell first have to take the table as name as input.
> There are two main considerations:
> * It is annoying to have to write the table name every time, when you should just be able to get a reference to a table
> * the current implementation is very wasteful - it creates a new HTable for each call (but reuses the connection since it uses the same configuration)
> We should be able to get a handle to a single HTable and then operate on that.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira