Posts

Showing posts with the label HDFS interview interview questions

Q/A (Hadoop)

Q - What if Namenode fails in Hadoop? A - The single point of failure in Hadoop 1x is Namenode. If Namenode gets fail, the whole Hadoop cluster will not work. Actually, there will not any data loss only the cluster work will be shut down, because Namenode is only the point of contact to all Datanodes and if the Namenode fails, all communication will stop. Q - What is Data Locality? A - If we bring the data from slave to master, it will cost network congestion + input output channel congestion , and at the same time master node will take a lot of time to process this huge amount of data. We can send this process to data, means we can send the logic to all slaves which contains data and perform processing in the slave itself, result will be sent to name node, will take less time. Q - An a folder, 100 files are there. Each file size is 1 mb, if block size is 64 mb, total how many blocks will be created? A - 100 blocks will be crea...