HBASE-9211 "ERROR: undefined method `message' for nil:NilClass" in the shell on error
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1523031 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
486d9e16a6
commit
143ee011d4
|
@ -2880,7 +2880,7 @@ public class HBaseAdmin implements Abortable, Closeable {
|
|||
public void cloneSnapshot(final String snapshotName, final TableName tableName)
|
||||
throws IOException, TableExistsException, RestoreSnapshotException, InterruptedException {
|
||||
if (tableExists(tableName)) {
|
||||
throw new TableExistsException("Table '" + tableName + " already exists");
|
||||
throw new TableExistsException(tableName);
|
||||
}
|
||||
internalRestoreSnapshot(snapshotName, tableName);
|
||||
waitUntilTableIsEnabled(tableName);
|
||||
|
|
|
@ -90,8 +90,8 @@ module Shell
|
|||
rescue org.apache.hadoop.hbase.regionserver.NoSuchColumnFamilyException
|
||||
valid_cols = table(args.first).get_all_columns.map { |c| c + '*' }
|
||||
raise "Unknown column family! Valid column names: #{valid_cols.join(", ")}"
|
||||
rescue org.apache.hadoop.hbase.TableExistsException => e
|
||||
raise "Table already exists: #{e.message}!"
|
||||
rescue org.apache.hadoop.hbase.TableExistsException
|
||||
raise "Table already exists: #{args.first}!"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue