Re: Command line tool to get the list of Failed Regions

2017-07-10 Thread jeff saremi
@Sean Busbey 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

Re: Command line tool to get the list of Failed Regions

2017-07-10 Thread jeff saremi
yep it looks like sky is the limit with the SHell tool Great suggestion! thanks Sean From: Sean Busbey 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

Re: Command line tool to get the list of Failed Regions

2017-07-10 Thread jeff saremi
Thanks Josh The output is a little hard to parse automatically but may work out if nothing else does the trick From: Josh Elser Sent: Friday, July 7, 2017 2:06 PM To: user@hbase.apache.org Subject: Re: Command line tool to get the list of

Re: Command line tool to get the list of Failed Regions

2017-07-07 Thread Sean Busbey
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 look for the one "how do I list regions for a table". if you use that example in an

Re: Command line tool to get the list of Failed Regions

2017-07-07 Thread Josh Elser
HBCK can do this, something like `hbase hbck -summary `. 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

Command line tool to get the list of Failed Regions

2017-07-07 Thread jeff saremi
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