diff --git a/hbase-shell/src/main/ruby/shell/commands.rb b/hbase-shell/src/main/ruby/shell/commands.rb index 00ee8ebc5c9..d1b91f40799 100644 --- a/hbase-shell/src/main/ruby/shell/commands.rb +++ b/hbase-shell/src/main/ruby/shell/commands.rb @@ -177,6 +177,12 @@ module Shell error = regex.match(str) raise error[:message].capitalize unless error.nil? end + if cause.is_a?(org.apache.hadoop.hbase.DoNotRetryIOException) + regex = /.*UnsupportedOperationException: quota support disabled.*/ + error = regex.match(cause.message) + error_msg = 'Quota Support disabled. Please enable in configuration.' + raise error_msg unless error.nil? + end # Throw the other exception which hasn't been handled above raise cause