@Sean Busbey<mailto:sean.bus...@gmail.com> How do you get an instance of TaskMonitor in Jruby? I tried the following and didn't result in anything:
taskmonitor = org.apache.hadoop.hbase.monitoring.TaskMonitor.get taskmonitor.get_tasks.each do |task| printf("%s\r\n", task.to_string) end exit I was trying to mimic the following code in hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/common/TaskMonitorTmpl.jamon TaskMonitor taskMonitor = TaskMonitor.get(); String filter = "general"; String format = "html"; </%args> <%java> List<? extends MonitoredTask> tasks = taskMonitor.getTasks(); ________________________________ From: jeff saremi <jeffsar...@hotmail.com> Sent: Monday, July 10, 2017 11:20 AM To: user@hbase.apache.org Subject: Re: Command line tool to get the list of Failed Regions yep it looks like sky is the limit with the SHell tool Great suggestion! thanks Sean ________________________________ From: Sean Busbey <sean.bus...@gmail.com> Sent: Friday, July 7, 2017 2:11 PM To: user@hbase.apache.org Subject: Re: Command line tool to get the list of Failed Regions you could use the shell in non-interactive mode to do this. I don't have access to an instance ATM, but the JIRA for getting some shell examples has a start https://issues.apache.org/jira/browse/HBASE-15611 [HBASE-15611] add examples to shell docs - ASF JIRA<https://issues.apache.org/jira/browse/HBASE-15611> issues.apache.org 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 ... [HBASE-15611] add examples to shell docs - ASF JIRA<https://issues.apache.org/jira/browse/HBASE-15611> [HBASE-15611] add examples to shell docs - ASF JIRA<https://issues.apache.org/jira/browse/HBASE-15611> issues.apache.org 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 ... issues.apache.org 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 ... look for the one "how do I list regions for a table". if you use that example in an interactive session, you should be able to see what other methods exist on the region object instead of turning it into a string. I'd expect there should be a status on it. On Fri, Jul 7, 2017 at 5:06 PM, Josh Elser <els...@apache.org> wrote: > HBCK can do this, something like `hbase hbck -summary <table_name>`. > > This wouldn't be easily machine-consumable, but the content should be > there. > > > On 7/7/17 3:48 PM, jeff saremi wrote: > >> Is there a command line option that would give us a list of offline >> Regions for a table? or a list of all regions and their status similar to >> the Tasks section of master-status web page? >> >> thanks >> >> >> >> -- Sean