hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zg...@apache.org
Subject hbase git commit: HBASE-18913 TestShell fails because NoMethodError: undefined method parseColumn
Date Tue, 03 Oct 2017 03:53:11 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-2 0db82daa9 -> 2348b7fe4


HBASE-18913 TestShell fails because NoMethodError: undefined method parseColumn


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2348b7fe
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2348b7fe
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2348b7fe

Branch: refs/heads/branch-2
Commit: 2348b7fe4514a93f5b0cef2a76f65c98258fa7aa
Parents: 0db82da
Author: Guanghao Zhang <zghao@apache.org>
Authored: Tue Oct 3 09:16:35 2017 +0800
Committer: Guanghao Zhang <zghao@apache.org>
Committed: Tue Oct 3 11:52:46 2017 +0800

----------------------------------------------------------------------
 hbase-shell/src/main/ruby/hbase/table.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/2348b7fe/hbase-shell/src/main/ruby/hbase/table.rb
----------------------------------------------------------------------
diff --git a/hbase-shell/src/main/ruby/hbase/table.rb b/hbase-shell/src/main/ruby/hbase/table.rb
index 33c80ae..320ec7c 100644
--- a/hbase-shell/src/main/ruby/hbase/table.rb
+++ b/hbase-shell/src/main/ruby/hbase/table.rb
@@ -722,7 +722,7 @@ EOF
 
     # Returns family and (when has it) qualifier for a column name
     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
       [split[0], split.length > 1 ? split[1] : nil]
     end
@@ -793,7 +793,7 @@ EOF
     # 2. register the CONVERTER information based on column spec - "cf:qualifier"
     def set_converter(column)
       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
         @converters["#{family}:#{String.from_java_bytes(parts[0])}"] = String.from_java_bytes(parts[1])
         column[1] = parts[0]


Mime
View raw message