PrepAway - Latest Free Exam Questions & Answers

Which action should you take to relieve this situation and store more files in HDFS?

You need to move a file titled “weblogs” into HDFS. When you try to copy the file, you can’t. You
know you have ample space on your DataNodes. Which action should you take to relieve this
situation and store more files in HDFS?

PrepAway - Latest Free Exam Questions & Answers

A.
Increase the block size on all current files in HDFS.

B.
Increase the block size on your remaining files.

C.
Decrease the block size on your remaining files.

D.
Increase the amount of memory for the NameNode.

E.
Increase the number of disks (or size) for the NameNode.

F.
Decrease the block size on all current files in HDFS.

Explanation:
Note:
* -put localSrc destCopies the file or directory from the local file system identified by localSrc to
dest within the DFS.
* What is HDFS Block size? How is it different from traditional file system block size?

In HDFS data is split into blocks and distributed across multiple nodes in the cluster. Each block is
typically 64Mb or 128Mb in size. Each block is replicated multiple times. Default is to replicate
each block three times. Replicas are stored on different nodes. HDFS utilizes the local file system
to store each HDFS block as a separate file. HDFS Block size can not be compared with the
traditional file system block size.

5 Comments on “Which action should you take to relieve this situation and store more files in HDFS?

  1. Sameer says:

    You have enough space on DataNodes, that means less memory to store metadata is prohibiting bringing in more data.
    Answer B – Increase block size, so that you have lesser metadata to store on NameNode.

    However, going by this even D looks to be an answer.




    0



    0
  2. Henry says:

    D. While increasing the block size would mean less metadata for block location to keep in memory, this does not 1)help the situation as all or part of the files would have to be rewritten in the new block size first before memory is freed up 2)so just changing the block size on your remaining files would hardly be a solution.




    0



    0

Leave a Reply

Your email address will not be published. Required fields are marked *