namenode启动源码分析 #9

Merged
zeekling merged 1 commits from namenode into master 2023-11-05 09:59:46 +00:00

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)