Namenodes and Datanodes are a part of hadoop cluster. Suppose you have a hadoop cluster and an external network and you want to connect these two, then you will use edge nodes. Edge nodes are the interface between hadoop cluster and the external network.