NM协议详解 #26

Open
zeekling wants to merge 2 commits from client-protocol into master
1 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,37 @@
## NameNode客户端协议详解
协议的定义主要在类NamenodeProtocols中。如下
```java
public interface NamenodeProtocols
extends ClientProtocol,
DatanodeProtocol,
DatanodeLifelineProtocol,
NamenodeProtocol,
RefreshAuthorizationPolicyProtocol,
ReconfigurationProtocol,
RefreshUserMappingsProtocol,
RefreshCallQueueProtocol,
GenericRefreshProtocol,
GetUserMappingsProtocol,
HAServiceProtocol {
}
```
根据交互对象的不同,将协议进行了不同的归类。要想了解协议内容,需要将其单独分开分析。
### NamenodeProtocol 详解
当前协议主要是备NameNode和主NameNode之间的通信协议。
### DatanodeProtocol
DataNode和NameNode之间的协议。
### DatanodeLifelineProtocol
DN和NN之间心跳协议。