nerdexam
Cloudera

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.

Hadoop Ecosystem Fundamentals

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)
  • A
    4% (1)
  • B
    4% (1)
  • C
    79% (19)
  • D
    13% (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

#HDFS#block size#file write visibility#concurrent access

Community Discussion

No community discussion yet for this question.

Full CCD-410 Practice