org.apache.hadoop.hbase.master
Class HMasterCommandLine.LocalHMaster

java.lang.Object
  extended by org.apache.hadoop.hbase.util.HasThread
      extended by org.apache.hadoop.hbase.master.HMaster
          extended by org.apache.hadoop.hbase.master.HMasterCommandLine.LocalHMaster
All Implemented Interfaces:
Runnable, Abortable, MasterServices, MasterProtos.MasterService.BlockingInterface, RegionServerStatusProtos.RegionServerStatusService.BlockingInterface, Server, Stoppable
Enclosing class:
HMasterCommandLine

public static class HMasterCommandLine.LocalHMaster
extends HMaster


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.master.HMaster
MASTER
 
Constructor Summary
HMasterCommandLine.LocalHMaster(org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
 void run()
          Main processing loop for the HMaster.
 
Methods inherited from class org.apache.hadoop.hbase.master.HMaster
abort, addColumn, addColumn, assignRegion, assignRegion, balance, balance, balanceSwitch, checkTableModifiable, constructMaster, createConfigurationSubset, createNamespace, createNamespace, createTable, createTable, deleteColumn, deleteColumn, deleteNamespace, deleteNamespace, deleteSnapshot, deleteTable, deleteTable, disableTable, disableTable, dispatchMergingRegions, dispatchMergingRegions, enableCatalogJanitor, enableTable, enableTable, execMasterService, execProcedure, getActiveMasterManager, getAssignmentManager, getAverageLoad, getCatalogTracker, getClusterId, getClusterStatus, getClusterStatus, getCompletedSnapshots, getConfiguration, getCoprocessorHost, getCoprocessors, getExecutorService, getHFileCleaner, getInfoServer, getLastFlushedSequenceId, getLoadBalancerClassName, getLoadedCoprocessors, getMasterActiveTime, getMasterAddressTracker, getMasterFileSystem, getMasterStartTime, getNamespaceDescriptor, getNamespaceDescriptor, getRegionServerFatalLogBuffer, getRegionServerInfoPort, getSchemaAlterStatus, getSecurityCapabilities, getServerManager, getServerName, getSnapshotManagerForTesting, getTableDescriptors, getTableDescriptors, getTableLockManager, getTableNames, getZooKeeper, getZooKeeperWatcher, isAborted, isActiveMaster, isBalancerEnabled, isBalancerOn, isCatalogJanitorEnabled, isInitializationStartsMetaRegionAssignment, isInitialized, isMasterRunning, isMasterRunning, isProcedureDone, isRestoreSnapshotDone, isServerShutdownHandlerEnabled, isSnapshotDone, isStopped, listNamespaceDescriptors, listNamespaceDescriptors, listTableDescriptorsByNamespace, listTableDescriptorsByNamespace, listTableNamesByNamespace, listTableNamesByNamespace, main, modifyColumn, modifyColumn, modifyNamespace, modifyNamespace, modifyTable, modifyTable, moveRegion, offlineRegion, regionServerReport, regionServerStartup, registerService, reportRegionStateTransition, reportRSFatalError, restoreSnapshot, runCatalogScan, setBalancerRunning, setCatalogJanitorEnabled, shutdown, shutdown, snapshot, startCatalogJanitorChore, stop, stopMaster, stopMaster, switchBalancer, synchronousBalanceSwitch, truncateTable, truncateTable, unassignRegion
 
Methods inherited from class org.apache.hadoop.hbase.util.HasThread
getName, getThread, interrupt, isAlive, isInterrupted, join, join, join, setDaemon, setName, setPriority, setUncaughtExceptionHandler, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HMasterCommandLine.LocalHMaster

public HMasterCommandLine.LocalHMaster(org.apache.hadoop.conf.Configuration conf)
                                throws IOException,
                                       org.apache.zookeeper.KeeperException,
                                       InterruptedException
Throws:
IOException
org.apache.zookeeper.KeeperException
InterruptedException
Method Detail

run

public void run()
Description copied from class: HMaster
Main processing loop for the HMaster.
  1. Block until becoming active master
  2. Finish initialization via finishInitialization(MonitoredTask)
  3. Enter loop until we are stopped
  4. Stop services and perform cleanup once stopped

Specified by:
run in interface Runnable
Overrides:
run in class HMaster


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.