HBASE-20241 splitormerge_enabled does not work

Signed-off-by: Ted Yu <yuzhihong@gmail.com>
This commit is contained in:
Peter Somogyi 2018-03-21 14:20:27 +01:00
parent a6eeb26cc0
commit e2fc21e4a1
1 changed files with 4 additions and 4 deletions

View File

@ -142,9 +142,9 @@ module Hbase
def splitormerge_switch(type, enabled)
switch_type = nil
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'
switch_type = org.apache.hadoop.hbase.client.Admin::MasterSwitchType::MERGE
switch_type = org.apache.hadoop.hbase.client::MasterSwitchType::MERGE
else
raise ArgumentError, 'only SPLIT or MERGE accepted for type!'
end
@ -160,9 +160,9 @@ module Hbase
def splitormerge_enabled(type)
switch_type = nil
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'
switch_type = org.apache.hadoop.hbase.client.Admin::MasterSwitchType::MERGE
switch_type = org.apache.hadoop.hbase.client::MasterSwitchType::MERGE
else
raise ArgumentError, 'only SPLIT or MERGE accepted for type!'
end