From 998539d05df5022d82a2a5da71f05c6f21d7bba7 Mon Sep 17 00:00:00 2001 From: Andrew Kyle Purtell Date: Mon, 24 Oct 2011 23:22:20 +0000 Subject: [PATCH] HBASE-3512 Shell support for listing currently loaded coprocessors git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1188444 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 2 ++ src/main/ruby/hbase/admin.rb | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index 67b281f4ee0..147501e93f9 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -397,6 +397,8 @@ Release 0.92.0 - Unreleased HBASE-4578 NPE when altering a table that has moving regions (gaojinchao) HBASE-4070 Improve region server metrics to report loaded coprocessors to master (Eugene Koontz via apurtell) + HBASE-3512 Shell support for listing currently loaded coprocessors (Eugene + Koontz via apurtell) TESTS HBASE-4450 test for number of blocks read: to serve as baseline for expected diff --git a/src/main/ruby/hbase/admin.rb b/src/main/ruby/hbase/admin.rb index 00348c12bcb..61e04d81885 100644 --- a/src/main/ruby/hbase/admin.rb +++ b/src/main/ruby/hbase/admin.rb @@ -386,6 +386,10 @@ module Hbase for k, v in status.getRegionsInTransition() puts(" %s" % [v]) end + master_coprocs = java.util.Arrays.toString(@admin.getMasterCoprocessors()) + if master_coprocs != nil + puts("master coprocessors: %s" % master_coprocs) + end puts("%d live servers" % [ status.getServersSize() ]) for server in status.getServers() puts(" %s:%d %d" % \