Difference between NameNode and DataNode in Hadoop

Free Online Certification Courses – Learn Today. Lead Tomorrow. Forums Apache Hadoop Difference between NameNode and DataNode in Hadoop

Viewing 2 reply threads
  • Author
    Posts
    • #5862
      DataFlair TeamDataFlair Team
      Spectator

      What is the difference between NameNode and DataNode in Hadoop?
      Comparison between Name Node vs Data Node

    • #5863
      DataFlair TeamDataFlair Team
      Spectator

      NameNode:

      It maintains and manages the slave nodes and assign the task to them.
      It only stores the metadata of HDFS. Namenode executes file system namespace operations like opening, closing and renaming files and directions.
      All replication factor details should maintain in Name node.This metadata is available in memory in the master for faster retrieval data.

      DataNode:

      This is the daemon that runs on the slave, these are actual workers nodes that store the data. Data nodes are the slaves which are deployed on each machine and provide actual storage. Data nodes are responsible for serving read and write requests from the file system clients, also perform block creation, deletion, and replication upon instruction from the name node.

      For more details please follow: HDFS Tutorial

    • #5865
      DataFlair TeamDataFlair Team
      Spectator

      Name Node:
      It is a daemon that runs on Master, it is responsible for dividing the tasks amongst the slaves, Name Node should be deployed on reliable Hardware, It stores Meta data about the data stored on Slaves. Whenever a data node goes down then Name Node has to send the Balancer command to store the Blocks into some other data node.

      Data Node:
      It is a Daemon that runs on Slave, It responsible for storing actual data. Data nodes can be deployed on Commodity Hardware. Data Nodes need to continuously send Heartbeats to the Name Node.

      For more details please follow: HDFS Tutorial

Viewing 2 reply threads
  • You must be logged in to reply to this topic.