KeerthanaKnowledge Contributor
What is the difference between Namenode and Datanode?
What is the difference between Namenode and Datanode?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Questions | Answers | Discussions | Knowledge sharing | Communities & more.
1. NameNode:
– NameNode is the central node in the HDFS architecture and serves as the metadata repository for the file system.
– It keeps track of the directory tree structure, file names, and file-to-block mapping.
– NameNode stores metadata information such as the location of each block in the cluster, file permissions, and replication factor.
– NameNode does not store the actual data blocks but rather maintains metadata information in memory and on disk.
2. DataNode:
– DataNode is responsible for storing and serving data blocks in the HDFS.
– Each DataNode stores a portion of the data blocks in the cluster and replicates them based on the replication factor specified by the NameNode.
– DataNode periodically sends heartbeat signals to the NameNode to report their status and availability.
– DataNode handles read and write requests from clients, including storing new data blocks, replicating blocks, and serving data to clients for reading.