HBASE-18913 TestShell fails because NoMethodError: undefined method parseColumn

This commit is contained in:
Guanghao Zhang 2017-10-03 09:16:35 +08:00
parent 0db82daa91
commit 2348b7fe45
1 changed files with 2 additions and 2 deletions

View File

@ -722,7 +722,7 @@ EOF
# Returns family and (when has it) qualifier for a column name # Returns family and (when has it) qualifier for a column name
def parse_column_name(column) def parse_column_name(column)
split = org.apache.hadoop.hbase.KeyValue.parseColumn(column.to_java_bytes) split = org.apache.hadoop.hbase.CellUtil.parseColumn(column.to_java_bytes)
set_converter(split) if split.length > 1 set_converter(split) if split.length > 1
[split[0], split.length > 1 ? split[1] : nil] [split[0], split.length > 1 ? split[1] : nil]
end end
@ -793,7 +793,7 @@ EOF
# 2. register the CONVERTER information based on column spec - "cf:qualifier" # 2. register the CONVERTER information based on column spec - "cf:qualifier"
def set_converter(column) def set_converter(column)
family = String.from_java_bytes(column[0]) family = String.from_java_bytes(column[0])
parts = org.apache.hadoop.hbase.KeyValue.parseColumn(column[1]) parts = org.apache.hadoop.hbase.CellUtil.parseColumn(column[1])
if parts.length > 1 if parts.length > 1
@converters["#{family}:#{String.from_java_bytes(parts[0])}"] = String.from_java_bytes(parts[1]) @converters["#{family}:#{String.from_java_bytes(parts[0])}"] = String.from_java_bytes(parts[1])
column[1] = parts[0] column[1] = parts[0]