org.apache.hadoop.hbase.catalog
Class MetaMigrationRemovingHTD

java.lang.Object
  extended by org.apache.hadoop.hbase.catalog.MetaMigrationRemovingHTD

Deprecated. Used migration from 0.90 to 0.92 so will be going away in next release

public class MetaMigrationRemovingHTD
extends Object

Tools to help with migration of meta tables so they no longer host instances of HTableDescriptor.


Constructor Summary
MetaMigrationRemovingHTD()
          Deprecated.  
 
Method Summary
static HRegionInfo090x getHRegionInfo090x(byte[] bytes)
          Deprecated. Get HREgionInfoForMigration serialized from bytes.
static boolean isMetaHRIUpdated(MasterServices services)
          Deprecated.  
static void migrateRootAndMeta(MasterServices masterServices)
          Deprecated. Migrate root and meta to newer version.
static boolean updateMetaWithNewHRI(MasterServices services)
          Deprecated.  
static Set<HTableDescriptor> updateMetaWithNewRegionInfo(MasterServices masterServices)
          Deprecated. Update legacy META rows, removing HTD from HRI.
static void updateRootWithMetaMigrationStatus(CatalogTracker catalogTracker)
          Deprecated. Update the version flag in -ROOT-.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaMigrationRemovingHTD

public MetaMigrationRemovingHTD()
Deprecated. 
Method Detail

updateMetaWithNewRegionInfo

public static Set<HTableDescriptor> updateMetaWithNewRegionInfo(MasterServices masterServices)
                                                         throws IOException
Deprecated. 
Update legacy META rows, removing HTD from HRI.

Parameters:
masterServices -
Returns:
List of table descriptors.
Throws:
IOException

migrateRootAndMeta

public static void migrateRootAndMeta(MasterServices masterServices)
                               throws IOException
Deprecated. 
Migrate root and meta to newer version. This updates the META and ROOT and removes the HTD from HRI.

Parameters:
masterServices -
Throws:
IOException

updateRootWithMetaMigrationStatus

public static void updateRootWithMetaMigrationStatus(CatalogTracker catalogTracker)
                                              throws IOException
Deprecated. 
Update the version flag in -ROOT-.

Parameters:
catalogTracker -
Throws:
IOException

isMetaHRIUpdated

public static boolean isMetaHRIUpdated(MasterServices services)
                                throws IOException
Deprecated. 
Returns:
True if the meta table has been migrated.
Throws:
IOException

updateMetaWithNewHRI

public static boolean updateMetaWithNewHRI(MasterServices services)
                                    throws IOException
Deprecated. 
Returns:
True if migrated.
Throws:
IOException

getHRegionInfo090x

public static HRegionInfo090x getHRegionInfo090x(byte[] bytes)
Deprecated. 
Get HREgionInfoForMigration serialized from bytes.

Parameters:
bytes - serialized bytes
Returns:
An instance of a 090 HRI or null if we failed deserialize


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.