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