Download BDA Module 1 Notes for VTU and more Lecture notes Machine Learning in PDF only on Docsity!
"BIG DATA ANALYTICS" (15CS82 CBCS as per VTU Syllabus) Module-1 Hadoop Distributed File System (HDFS) Basics Hadoop Distributed File System (HDFS) is a distributed file system which is designed to run on commodity hardware. Commodity hardware is cheaper in cost. Since Hadoop requires processing power of multiple machines and since it is expensive to deploy costly hardware, we use commodity hardware. When commodity hardware is used, failures are more common rather than an exception. HDFS is highly fault-tolerant and is designed to run on commodity hardware. HDFS provides high throughput access to the data stored. So it is extremely useful when you want to build applications which require large data sets. HDFS was originally built as infrastructure layer for Apache Nutch. It is now pretty much part of Apache Hadoop project. HDFS Architecture : __| Metadata (Name, replicas, ...): | vin \ Block ops hee Datanodes \.__ Datanodes ‘ e Replication a _ a “Blocks \ a a“ x “ Vv Fig 1.1 HDFS ARchitecture HDFS has master/slave architecture. In this architecture one of the machines will be designated as a master node (or name node). Every other machine would be acting as slave (or data node). NameNode/DataNode are java processes that run on the machines when Hadoop software is installed. NameNode is responsible for managing the metadata about the HDFS Files. This metadata includes various information about the HDFS File such as Name of the file, File Permissions, FileSize, Blocks etc. It is also responsible for performing various namespace operations like opening, closing, renaming the files or directories. Whenever a file is to be stored in HDFS, it is divided into blocks. By default, blocksize is 64MB (Configurable). These blocks are replicated (default is 3) and stored across various datanodes to take care of hardware failures and for faster data transfers. NameNode maintains a mapping of blocks to DataNodes.