+1 vote
in HDFS by

Suppose there is file of size 514 MB stored in HDFS (Hadoop 2.x) using default block size configuration and default replication factor. Then, how many blocks will be created in total and what will be the size of each block?

1 Answer

0 votes
by

Default block size in Hadoop 2.x is 128 MB. So, a file of size 514 MB will be divided into 5 blocks ( 514 MB/128 MB) where the first four blocks will be of 128 MB and the last block will be of 2 MB only. Since, we are using the default replication factor i.e. 3, each block will be replicated thrice. Therefore, we will have 15 blocks in total where 12 blocks will be of size 128 MB each and 3 blocks of size 2 MB each.

Related questions

+1 vote
asked Jan 26, 2020 in Big Data | Hadoop by rajeshsharma
+1 vote
asked Nov 7, 2020 in Hadoop by SakshiSharma
...