Index: hbase-server/src/main/ruby/hbase/admin.rb =================================================================== --- hbase-server/src/main/ruby/hbase/admin.rb (revision 1346081) +++ hbase-server/src/main/ruby/hbase/admin.rb (working copy) @@ -300,8 +300,7 @@ #---------------------------------------------------------------------------------------------- # Truncates table (deletes all records by recreating the table) def truncate(table_name, conf = @conf) - h_table = org.apache.hadoop.hbase.client.HTable.new(conf, table_name) - table_description = h_table.getTableDescriptor() + table_description = @admin.getTableDescriptor(table_name.to_java_bytes) yield 'Disabling table...' if block_given? disable(table_name)