谁将为 hadoop 中的块创建块 ID?
who will create the block ids for blocks in hadoop?
我想知道谁将为 hadoop 中的块创建块 ID,无论是 HDFS 客户端还是名称 node.Please 让我知道。
NameNode分配block ID,交给客户端。客户端然后在与 DataNode 通信时使用此块 ID 将数据写入块。
Apache JIRA HDFS-4645 documents the current design for allocation of block IDs. It uses a monotonically increasing ID starting from a specific constant. If you're interested in seeing the code for this, refer to the BlockIdManager and SequentialBlockIdGenerator 类 在 Apache Hadoop 代码库中。
我想知道谁将为 hadoop 中的块创建块 ID,无论是 HDFS 客户端还是名称 node.Please 让我知道。
NameNode分配block ID,交给客户端。客户端然后在与 DataNode 通信时使用此块 ID 将数据写入块。
Apache JIRA HDFS-4645 documents the current design for allocation of block IDs. It uses a monotonically increasing ID starting from a specific constant. If you're interested in seeing the code for this, refer to the BlockIdManager and SequentialBlockIdGenerator 类 在 Apache Hadoop 代码库中。