CCD-410 · Question #12
You use the hadoop fs -put command to write a 300 MB file using and HDFS block size of 64 MB. Just after this command has finished writing 200 MB of this file, what would another user see when…
The correct answer is C. They would see the current of the file through the last completed block. Usage: hadoop fs -put <localsrc> ... <dst> Copy single src, or multiple srcs from local file system to the destination filesystem. Also reads input from stdin and writes to destination filesystem.
Question
You use the hadoop fs -put command to write a 300 MB file using and HDFS block size of 64 MB. Just after this command has finished writing 200 MB of this file, what would another user see when trying to access this life?
Options
- AThey would see Hadoop throw an ConcurrentFileAccessException when they try to access this file.
- BThey would see the current state of the file, up to the last bit written by the command.
- CThey would see the current of the file through the last completed block.
- DThey would see no content until the whole file written and closed.
How the community answered
(24 responses)- A4% (1)
- B4% (1)
- C79% (19)
- D13% (3)
Explanation
Usage: hadoop fs -put <localsrc> ... <dst> Copy single src, or multiple srcs from local file system to the destination filesystem. Also reads input from stdin and writes to destination filesystem.
Topics
Community Discussion
No community discussion yet for this question.