hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Busbey (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-15611) add examples to shell docs
Date Thu, 07 Apr 2016 15:10:26 GMT

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

Sean Busbey commented on HBASE-15611:
-------------------------------------

h2. How do I tell if compactions are happening, programmatically from the shell?

{code}
hbase(main):104:0> list.each do |table| @hbase.admin(@formatter).instance_eval do p @admin.get_compaction_state(table).to_string
end end
TABLE                                                                                    
                                                                                         
                        
usertable                                                                                
                                                                                         
                        
ycsb                                                                                     
                                                                                         
                        
ycsb_workloade                                                                           
                                                                                         
                        
3 row(s) in 0.0080 seconds

"NONE"
"NONE"
"NONE"
=> ["usertable", "ycsb", "ycsb_workloade"]
hbase(main):105:0> major_compact "ycsb_workloade"
0 row(s) in 0.0950 seconds

hbase(main):106:0> list.each do |table| @hbase.admin(@formatter).instance_eval do p @admin.get_compaction_state(table).to_string
end end
TABLE                                                                                    
                                                                                         
                        
usertable                                                                                
                                                                                         
                        
ycsb                                                                                     
                                                                                         
                        
ycsb_workloade                                                                           
                                                                                         
                        
3 row(s) in 0.0090 seconds

"NONE"
"NONE"
"MAJOR"
=> ["usertable", "ycsb", "ycsb_workloade"]
{code}

This looks a little too in-the-guts to me, so maybe first there should be an improvement jira
that makes answering the question easier.

> add examples to shell docs 
> ---------------------------
>
>                 Key: HBASE-15611
>                 URL: https://issues.apache.org/jira/browse/HBASE-15611
>             Project: HBase
>          Issue Type: Improvement
>          Components: documentation, shell
>            Reporter: Sean Busbey
>              Labels: beginner
>             Fix For: 2.0.0
>
>
> It would be nice if our shell documentation included some additional examples of operational
tasks one can perform.
> things to include to come in comments. when we have a patch to submit we can update the
jira summary to better reflect what scope we end up with.



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

Mime
View raw message