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

Ryan Thiessen commented on HBASE-4756:
--------------------------------------

A simple example:
org<tab>

longer example:
import org.apache.hadoop.hbase.HBaseConfiguration
import org.apache.hadoop.hbase.HConstants
import org.apache.hadoop.hbase.client.HBaseAdmin
import org.apache.hadoop.hbase.util.Bytes

config = HBaseConfiguration.new
config.set 'fs.default.name', config.get(HConstants::HBASE_DIR)

admin = HBaseAdmin.new(config)

row = scanner = admin.listTables[0]
row.getFamilies.<tab>
                
> Enable tab-completion in HBase shell
> ------------------------------------
>
>                 Key: HBASE-4756
>                 URL: https://issues.apache.org/jira/browse/HBASE-4756
>             Project: HBase
>          Issue Type: Improvement
>          Components: shell
>            Reporter: Ryan Thiessen
>            Priority: Minor
>
> Tab-completion in the HBase irb shell is nifty for debugging.  Without the 
> +X-O option it frequently crashes.  Is there any reason not to enable this by 
> default?
> This would be as simple as:
> -  CLASS="org.jruby.Main ${HBASE_HOME}/bin/hirb.rb"
> +  CLASS="org.jruby.Main -X+O ${HBASE_HOME}/bin/hirb.rb"

--
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