HBASE-20241 splitormerge_enabled does not work
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
This commit is contained in:
parent
dd9e46bbf5
commit
c20a2a4673
|
@ -142,9 +142,9 @@ module Hbase
|
||||||
def splitormerge_switch(type, enabled)
|
def splitormerge_switch(type, enabled)
|
||||||
switch_type = nil
|
switch_type = nil
|
||||||
if type == 'SPLIT'
|
if type == 'SPLIT'
|
||||||
switch_type = org.apache.hadoop.hbase.client.Admin::MasterSwitchType::SPLIT
|
switch_type = org.apache.hadoop.hbase.client::MasterSwitchType::SPLIT
|
||||||
elsif type == 'MERGE'
|
elsif type == 'MERGE'
|
||||||
switch_type = org.apache.hadoop.hbase.client.Admin::MasterSwitchType::MERGE
|
switch_type = org.apache.hadoop.hbase.client::MasterSwitchType::MERGE
|
||||||
else
|
else
|
||||||
raise ArgumentError, 'only SPLIT or MERGE accepted for type!'
|
raise ArgumentError, 'only SPLIT or MERGE accepted for type!'
|
||||||
end
|
end
|
||||||
|
@ -160,9 +160,9 @@ module Hbase
|
||||||
def splitormerge_enabled(type)
|
def splitormerge_enabled(type)
|
||||||
switch_type = nil
|
switch_type = nil
|
||||||
if type == 'SPLIT'
|
if type == 'SPLIT'
|
||||||
switch_type = org.apache.hadoop.hbase.client.Admin::MasterSwitchType::SPLIT
|
switch_type = org.apache.hadoop.hbase.client::MasterSwitchType::SPLIT
|
||||||
elsif type == 'MERGE'
|
elsif type == 'MERGE'
|
||||||
switch_type = org.apache.hadoop.hbase.client.Admin::MasterSwitchType::MERGE
|
switch_type = org.apache.hadoop.hbase.client::MasterSwitchType::MERGE
|
||||||
else
|
else
|
||||||
raise ArgumentError, 'only SPLIT or MERGE accepted for type!'
|
raise ArgumentError, 'only SPLIT or MERGE accepted for type!'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue