HBASE-2572 hbase/bin/set_meta_block_caching.rb:72: can't convert Java::JavaLang::String into String (TypeError) - little issue with script

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@946280 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-05-19 17:03:38 +00:00
parent 45aa9cb897
commit 7e51b33b00
2 changed files with 4 additions and 2 deletions

View File

@ -337,6 +337,9 @@ Release 0.21.0 - Unreleased
HBASE-2539 Cannot start ZK before the rest in tests anymore
HBASE-2561 Scanning .META. while split in progress yields
IllegalArgumentException (Todd Lipcon via Stack)
HBASE-2572 hbase/bin/set_meta_block_caching.rb:72: can't convert
Java::JavaLang::String into String (TypeError) - little
issue with script
IMPROVEMENTS

View File

@ -68,8 +68,7 @@ scan.addColumn(HConstants::CATALOG_FAMILY, HConstants::REGIONINFO_QUALIFIER);
scanner = metaTable.getScanner(scan)
while (result = scanner.next())
rowid = Bytes.toString(result.getRow())
rowidStr = java.lang.String.new(rowid)
LOG.info("Setting BLOCKCACHE and IN_MEMORY on: " + rowidStr);
LOG.info("Setting BLOCKCACHE and IN_MEMORY on: " + rowid);
hriValue = result.getValue(HConstants::CATALOG_FAMILY, HConstants::REGIONINFO_QUALIFIER)
hri = Writables.getHRegionInfo(hriValue)
family = hri.getTableDesc().getFamily(HConstants::CATALOG_FAMILY)