首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

HBase Log Split 配置有关

2013-12-16 
HBase Log Split 配置相关(1)HMaster?SplitLogManager? ? // get a list for previously failed RS which

HBase Log Split 配置相关

(1)HMaster?SplitLogManager

? ? // get a list for previously failed RS which need log splitting work

? ? // we recover hbase:meta region servers inside master initialization and

? ? // handle other failed servers in SSH in order to start up master node ASAP

? ? Set<ServerName> previouslyFailedServers = this.fileSystemManager

? ? ? ? .getFailedServersFromLogFolders();

? ?LogSplit工作经由SSH(ServerShutdownHandler)触发,

? ?M_SERVER_SHUTDOWN ? ? ? ? (70, ExecutorType.MASTER_SERVER_OPERATIONS)

? ?this.executorService.startExecutorService(ExecutorType.MASTER_SERVER_OPERATIONS,

? ? ? conf.getInt("hbase.master.executor.serverops.threads", 5));

? ?HMaster每次最多处理?hbase.master.executor.serverops.threads 这么多个SSH,如果启动时有大量的异常Server需要处理时,可以调大这个参数。

?

(2)HRegionServer ?SplitLogWorker

? ??https://issues.apache.org/jira/browse/HBASE-9736

? ? this.maxConcurrentTasks =

? ? ? ? conf.getInt("hbase.regionserver.wal.max.splitters", DEFAULT_MAX_SPLITTERS);

? ?同时可以获取多个Task来处理。一个Task实际对应一个HLog文件。

?

热点排行