In this question, first explain NAS and HDFS, and then compare their features as follows:
1) Network-attached storage (NAS) is a file-level computer data storage server connected to a computer network providing data access to a heterogeneous group of clients. NAS can either be a hardware or software which provides services for storing and accessing files. Whereas Hadoop Distributed File System (HDFS) is a distributed filesystem to store data using commodity hardware.
2) In HDFS Data Blocks are distributed across all the machines in a cluster. Whereas in NAS data is stored on a dedicated hardware.
3) HDFS is designed to work with MapReduce paradigm, where computation is moved to the data. NAS is not suitable for MapReduce since data is stored separately from the computations.
4) HDFS uses commodity hardware which is cost-effective, whereas a NAS is a high-end storage devices which includes high cost.
Posted Date:- 2021-08-31 05:13:28