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

Jesse Yates commented on HBASE-5548:
------------------------------------

bq. I installed the patch, when I do general 'help', I see nothing on this new 
facility. I probably should?

Yeah, probably :) I'll add some comments in a follow on patch.

bq. When I create a table, the output is kinda ugly? I suppose no way around 
it.... its not end of world.

You can by appending a ';' to the end of the line. But then you don't know if 
the operation is successful or not, as it suppresses all output. I tried a 
bunch of tricks to not show all that stuff, but nothing seemed to work. We can 
add a comment to the above effect in the guide.

bq. If I do t.put, w/ wrong args it gives me the help but its general help 
rather than help for my table context

Yeah, that is the general put help. I'm thinking it might be nice to add in 
some help specific to a table command more dynamically. I'll look into it.

thanks for the review stack! I'll get up a new patch and also throw it on RB 
(with associated release note) so others can take a look-see before rolling in 
the patch.
                
> 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, 0.94.1
>
>         Attachments: ruby_HBASE-5528-v0.patch, ruby_HBASE-5548-v1.patch, 
> ruby_HBASE-5548-v2.patch, ruby_HBASE-5548-v3.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

        

Reply via email to