Cloudera
CCD-333 · Question #34
You use the hadoop fs 璸ut command to write a 300 MB file using an 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…
The correct answer is A. They would see no content until the whole file is written and closed. See the full explanation below for the reasoning.
Question
You use the hadoop fs 璸ut command to write a 300 MB file using an 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 file?
Options
- AThey would see no content until the whole file is written and closed.
- BThey would see the content of the file through the last completed block.
- CThey would see the current state of the file, up to the last bit written by the command.
- DThey would see Hadoop throw an concurrentFileAccessException when they try to access
How the community answered
(59 responses)- A80% (47)
- B12% (7)
- C3% (2)
- D5% (3)
Community Discussion
No community discussion yet for this question.