HBASE-3314 [shell] 'move' is broken
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1042771 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
564b9d08c0
commit
9bb903da97
|
@ -744,6 +744,7 @@ Release 0.90.0 - Unreleased
|
||||||
HBASE-3304 Get spurious master fails during bootup
|
HBASE-3304 Get spurious master fails during bootup
|
||||||
HBASE-3298 Regionserver can close during a split causing double assignment
|
HBASE-3298 Regionserver can close during a split causing double assignment
|
||||||
HBASE-3309 " Not running balancer because dead regionserver processing" is a lie
|
HBASE-3309 " Not running balancer because dead regionserver processing" is a lie
|
||||||
|
HBASE-3314 [shell] 'move' is broken
|
||||||
|
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
|
|
|
@ -167,19 +167,19 @@ module Hbase
|
||||||
#----------------------------------------------------------------------------------------------
|
#----------------------------------------------------------------------------------------------
|
||||||
# Assign a region
|
# Assign a region
|
||||||
def assign(region_name, force)
|
def assign(region_name, force)
|
||||||
@admin.assign(Bytes::toBytes(region_name), java.lang.Boolean::valueOf(force))
|
@admin.assign(Bytes.toBytes(region_name), java.lang.Boolean::valueOf(force))
|
||||||
end
|
end
|
||||||
|
|
||||||
#----------------------------------------------------------------------------------------------
|
#----------------------------------------------------------------------------------------------
|
||||||
# Unassign a region
|
# Unassign a region
|
||||||
def unassign(region_name, force)
|
def unassign(region_name, force)
|
||||||
@admin.unassign(Bytes::toBytes(region_name), java.lang.Boolean::valueOf(force))
|
@admin.unassign(Bytes.toBytes(region_name), java.lang.Boolean::valueOf(force))
|
||||||
end
|
end
|
||||||
|
|
||||||
#----------------------------------------------------------------------------------------------
|
#----------------------------------------------------------------------------------------------
|
||||||
# Move a region
|
# Move a region
|
||||||
def move(encoded_region_name, server = nil)
|
def move(encoded_region_name, server = nil)
|
||||||
@admin.move(encoded_region_name, server ? [server].to_java: nil)
|
@admin.move(Bytes.toBytes(encoded_region_name), server ? Bytes.toBytes(server): nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
#----------------------------------------------------------------------------------------------
|
#----------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue