diff --git a/hbase-shell/src/main/ruby/hbase/admin.rb b/hbase-shell/src/main/ruby/hbase/admin.rb index 9f8551cd967..6e3de37bbc8 100644 --- a/hbase-shell/src/main/ruby/hbase/admin.rb +++ b/hbase-shell/src/main/ruby/hbase/admin.rb @@ -849,7 +849,6 @@ module Hbase family.setCacheIndexesOnWrite(JBoolean.valueOf(arg.delete(org.apache.hadoop.hbase.HColumnDescriptor::CACHE_INDEX_ON_WRITE))) if arg.include?(org.apache.hadoop.hbase.HColumnDescriptor::CACHE_INDEX_ON_WRITE) family.setCacheBloomsOnWrite(JBoolean.valueOf(arg.delete(org.apache.hadoop.hbase.HColumnDescriptor::CACHE_BLOOMS_ON_WRITE))) if arg.include?(org.apache.hadoop.hbase.HColumnDescriptor::CACHE_BLOOMS_ON_WRITE) family.setEvictBlocksOnClose(JBoolean.valueOf(arg.delete(org.apache.hadoop.hbase.HColumnDescriptor::EVICT_BLOCKS_ON_CLOSE))) if arg.include?(org.apache.hadoop.hbase.HColumnDescriptor::EVICT_BLOCKS_ON_CLOSE) - family.setCacheDataInL1(JBoolean.valueOf(arg.delete(org.apache.hadoop.hbase.HColumnDescriptor::CACHE_DATA_IN_L1))) if arg.include?(org.apache.hadoop.hbase.HColumnDescriptor::CACHE_DATA_IN_L1) family.setInMemory(JBoolean.valueOf(arg.delete(org.apache.hadoop.hbase.HColumnDescriptor::IN_MEMORY))) if arg.include?(org.apache.hadoop.hbase.HColumnDescriptor::IN_MEMORY) if arg.include?(org.apache.hadoop.hbase.HColumnDescriptor::IN_MEMORY_COMPACTION) family.setInMemoryCompaction( diff --git a/hbase-shell/src/test/ruby/hbase/admin_test.rb b/hbase-shell/src/test/ruby/hbase/admin_test.rb index 5184996792d..7318c1a7194 100644 --- a/hbase-shell/src/test/ruby/hbase/admin_test.rb +++ b/hbase-shell/src/test/ruby/hbase/admin_test.rb @@ -202,13 +202,11 @@ module Hbase command(:create, @create_test_name, { NAME => 'a', CACHE_BLOOMS_ON_WRITE => 'TRUE', - CACHE_DATA_IN_L1 => 'TRUE', CACHE_INDEX_ON_WRITE => 'TRUE', EVICT_BLOCKS_ON_CLOSE => 'TRUE', COMPRESSION_COMPACT => 'GZ'}) assert_equal(['a:'], table(@create_test_name).get_all_columns.sort) assert_match(/CACHE_BLOOMS_ON_WRITE/, admin.describe(@create_test_name)) - assert_match(/CACHE_DATA_IN_L1/, admin.describe(@create_test_name)) assert_match(/CACHE_INDEX_ON_WRITE/, admin.describe(@create_test_name)) assert_match(/EVICT_BLOCKS_ON_CLOSE/, admin.describe(@create_test_name)) assert_match(/GZ/, admin.describe(@create_test_name))