namenode启动源码分析 (#9)

增加实现详细图示。

Reviewed-on: #9
This commit is contained in:
LingZhaoHui 2023-11-05 09:59:46 +00:00
parent 13edab3cfc
commit 32d05ee1a6

View File

@ -92,6 +92,7 @@ protected void initialize(Configuration conf) throws IOException {
// .... 省略
if (NamenodeRole.NAMENODE == role) {
// 启动HTTPServer,会调用NameNodeHttpServer中的start函数是基于org.eclipse.jetty.server.Server实现的
startHttpServer(conf);
}
// 从本地加载FSImage并且与Editlog合并产生新的FSImage
@ -232,3 +233,7 @@ public void activate(Configuration conf, long blockTotal) {
```
详细参见:
![pic](https://pan.zeekling.cn/zeekling/hadoop/nn_0010.png)