nerdexam
Cloudera

CCA-500 · Question #66

Which three file actions can execute as you write a file into HDFS?

The correct answer is C. You can rename the file D. You can delete the file E. You can move the file. CD: When a file is deleted by a user or an application, it is not immediately removed from HDFS. Instead, HDFS first renames it to a file in the /trash directory. The file can be restored quickly as long as it remains in /trash. A file remains in /trash for a configurable…

Troubleshooting

Question

Which three file actions can execute as you write a file into HDFS?

Options

  • AYou can index the file
  • BYou can update the files contents
  • CYou can rename the file
  • DYou can delete the file
  • EYou can move the file

How the community answered

(26 responses)
  • A
    8% (2)
  • B
    19% (5)
  • C
    73% (19)

Explanation

CD: When a file is deleted by a user or an application, it is not immediately removed from HDFS. Instead, HDFS first renames it to a file in the /trash directory. The file can be restored quickly as long as it remains in /trash. A file remains in /trash for a configurable amount of time. After the expiry of its life in /trash, the NameNode deletes the file from the HDFS namespace. The deletion of a file causes the blocks associated with the file to be freed. Note that there could be an appreciable time delay between the time a file is deleted by a user and the time of the corresponding increase in free space in HDFS. Runs a HDFS filesystem checking utility. COMMAND_OPTION include: Move corrupted files to /lost+found Delete corrupted files.

Topics

#HDFS write semantics#file operations#concurrent access

Community Discussion

No community discussion yet for this question.

Full CCA-500 Practice