博客
关于我
95-10-025-启动-BrokerId相关
阅读量:78 次
发布时间:2019-02-26

本文共 588 字,大约阅读时间需要 1 分钟。

1.视界

在这里插入图片描述

1.概述

kafka启动的时候,初始化了BrokerId

2. 入口

kafka.server.KafkaServer#startup /** Get or create cluster_id  格式如:oAm52n7NSaugaePYYVS1EA  * 唯一标识有一个集群,如果已经存在那么直接返回  * */_clusterId = getOrGenerateClusterId(zkClient)info(s"Cluster ID = $clusterId")/* generate brokerId */val (brokerId, initialOfflineDirs) = getBrokerIdAndOfflineDirsconfig.brokerId = brokerIdlogContext = new LogContext(s"[KafkaServer id=${config.brokerId}] ")this.logIdent = logContext.logPrefix// initialize dynamic broker configs from ZooKeeper. Any updates made after this will be// applied after DynamicConfigManager starts./*

转载地址:http://csg.baihongyu.com/

你可能感兴趣的文章
MySQL中ON DUPLICATE KEY UPDATE的介绍与使用、批量更新、存在即更新不存在则插入
查看>>
MYSQL中TINYINT的取值范围
查看>>
MySQL中UPDATE语句的神奇技巧,让你操作数据库如虎添翼!
查看>>
Mysql中varchar类型数字排序不对踩坑记录
查看>>
MySQL中一条SQL语句到底是如何执行的呢?
查看>>
MySQL中你必须知道的10件事,1.5万字!
查看>>
MySQL中使用IN()查询到底走不走索引?
查看>>
Mysql中使用存储过程插入decimal和时间数据递增的模拟数据
查看>>
MySql中关于geometry类型的数据_空的时候如何插入处理_需用null_空字符串插入会报错_Cannot get geometry object from dat---MySql工作笔记003
查看>>