public class Master extends Object implements LiveTServerSet.Listener, TableObserver, CurrentState, HighlyAvailableService
The master will also coordinate log recoveries and reports general status.
| Constructor and Description |
|---|
Master(ServerContext context) |
public Master(ServerContext context) throws IOException
IOExceptionpublic MasterState getMasterState()
getMasterState in interface CurrentStatepublic boolean stillMaster()
public void mustBeOnline(Table.ID tableId) throws ThriftTableOperationException
ThriftTableOperationExceptionpublic ServerContext getContext()
public TableManager getTableManager()
public String getInstanceID()
public String getZooKeeperRoot()
public AccumuloConfiguration getConfiguration()
public LiveTServerSet.TServerConnection getConnection(TServerInstance server)
public void setMergeState(MergeInfo info, MergeState state) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void clearMergeState(Table.ID tableId) throws org.apache.zookeeper.KeeperException, InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic boolean hasCycled(long time)
public void clearMigrations(Table.ID tableId)
public void run()
throws IOException,
InterruptedException,
org.apache.zookeeper.KeeperException
IOExceptionInterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic ZooLock getMasterLock()
public void update(LiveTServerSet current, Set<TServerInstance> deleted, Set<TServerInstance> added)
update in interface LiveTServerSet.Listenerpublic void stateChanged(Table.ID tableId, TableState state)
stateChanged in interface TableObserverpublic void initialize()
initialize in interface TableObserverpublic void sessionExpired()
sessionExpired in interface TableObserverpublic Set<Table.ID> onlineTables()
onlineTables in interface CurrentStatepublic Set<TServerInstance> onlineTabletServers()
onlineTabletServers in interface CurrentStatepublic Collection<MergeInfo> merges()
merges in interface CurrentStatepublic void shutdownTServer(TServerInstance server)
public EventCoordinator getEventCoordinator()
public ServerConfigurationFactory getConfigurationFactory()
public VolumeManager getFileSystem()
public void assignedTablet(KeyExtent extent)
public void waitForBalance()
public MasterMonitorInfo getMasterMonitorInfo()
public boolean delegationTokensAvailable()
public Set<KeyExtent> migrationsSnapshot()
migrationsSnapshot in interface CurrentStatepublic Set<TServerInstance> shutdownServers()
shutdownServers in interface CurrentStatepublic void markDeadServerLogsAsClosed(Map<TServerInstance,List<org.apache.hadoop.fs.Path>> logsForDeadServers) throws WalStateManager.WalMarkerException
public void updateBulkImportStatus(String directory, BulkImportState state)
public void removeBulkImportStatus(String directory)
public Long getSteadyTime()
public boolean isActiveService()
isActiveService in interface HighlyAvailableServicepublic org.apache.hadoop.fs.FSDataOutputStream getOutputStream(String path) throws IOException
IOExceptionpublic org.apache.hadoop.fs.FSDataInputStream getInputStream(String path) throws IOException
IOExceptionCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.