HBASE-2109
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@901034 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
44572e6a2d
commit
fb6ed7f687
|
@ -315,6 +315,8 @@ Release 0.21.0 - Unreleased
|
||||||
./bin/start-hbase.sh in a checkout
|
./bin/start-hbase.sh in a checkout
|
||||||
HBASE-2136 Forward-port the old mapred package
|
HBASE-2136 Forward-port the old mapred package
|
||||||
HBASE-2133 Increase default number of client handlers
|
HBASE-2133 Increase default number of client handlers
|
||||||
|
HBASE-2109 status 'simple' should show total requests per second, also
|
||||||
|
the requests/sec is wrong as is
|
||||||
|
|
||||||
NEW FEATURES
|
NEW FEATURES
|
||||||
HBASE-1961 HBase EC2 scripts
|
HBASE-1961 HBase EC2 scripts
|
||||||
|
|
|
@ -286,24 +286,28 @@ module HBase
|
||||||
puts(" %s" % [ server ])
|
puts(" %s" % [ server ])
|
||||||
end
|
end
|
||||||
elsif format != nil and format == "simple"
|
elsif format != nil and format == "simple"
|
||||||
|
load = 0
|
||||||
|
regions = 0
|
||||||
puts("%d live servers" % [ status.getServers() ])
|
puts("%d live servers" % [ status.getServers() ])
|
||||||
for server in status.getServerInfo()
|
for server in status.getServerInfo()
|
||||||
puts(" %s:%d %d" % \
|
puts(" %s:%d %d" % \
|
||||||
[ server.getServerAddress().getHostname(), \
|
[ server.getServerAddress().getHostname(), \
|
||||||
server.getServerAddress().getPort(), server.getStartCode() ])
|
server.getServerAddress().getPort(), server.getStartCode() ])
|
||||||
puts(" %s" % [ server.getLoad().toString() ])
|
puts(" %s" % [ server.getLoad().toString() ])
|
||||||
|
load += server.getLoad().getNumberOfRequests()
|
||||||
|
regions += server.getLoad().getNumberOfRegions()
|
||||||
end
|
end
|
||||||
puts("%d dead servers" % [ status.getDeadServers() ])
|
puts("%d dead servers" % [ status.getDeadServers() ])
|
||||||
for server in status.getDeadServerNames()
|
for server in status.getDeadServerNames()
|
||||||
puts(" %s" % [ server ])
|
puts(" %s" % [ server ])
|
||||||
end
|
end
|
||||||
|
puts("Aggregate load: %d, regions: %d" % [ load , regions ] )
|
||||||
else
|
else
|
||||||
puts("%d servers, %d dead, %.4f average load" % \
|
puts("%d servers, %d dead, %.4f average load" % \
|
||||||
[ status.getServers(), status.getDeadServers(), \
|
[ status.getServers(), status.getDeadServers(), \
|
||||||
status.getAverageLoad()])
|
status.getAverageLoad()])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def hcd(arg)
|
def hcd(arg)
|
||||||
# Return a new HColumnDescriptor made of passed args
|
# Return a new HColumnDescriptor made of passed args
|
||||||
# TODO: This is brittle code.
|
# TODO: This is brittle code.
|
||||||
|
|
Loading…
Reference in New Issue