Revert "HBASE-13058-shell unknown table message update"
Wrong patch!
This reverts commit 977d65a81c
.
This commit is contained in:
parent
977d65a81c
commit
af848f8a71
|
@ -103,8 +103,8 @@ module Shell
|
|||
# Get the special java exception which will be handled
|
||||
cause = e.cause
|
||||
if cause.kind_of?(org.apache.hadoop.hbase.TableNotFoundException) then
|
||||
first_arg = args.first
|
||||
raise "Unknown table #{first_arg}!"
|
||||
str = java.lang.String.new("#{cause}")
|
||||
raise "Unknown table #{str}!"
|
||||
end
|
||||
if cause.kind_of?(org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException) then
|
||||
exceptions = cause.getCauses
|
||||
|
@ -113,10 +113,6 @@ module Shell
|
|||
valid_cols = table(args.first).get_all_columns.map { |c| c + '*' }
|
||||
raise "Unknown column family! Valid column names: #{valid_cols.join(", ")}"
|
||||
end
|
||||
if exception.kind_of?(org.apache.hadoop.hbase.TableNotFoundException) then
|
||||
first_arg = args.first
|
||||
raise "Unknown table #{first_arg}!"
|
||||
end
|
||||
end
|
||||
end
|
||||
if cause.kind_of?(org.apache.hadoop.hbase.TableExistsException) then
|
||||
|
|
Loading…
Reference in New Issue