Solved

Assume You Have a File Named Foo

Question 22

Multiple Choice

Assume you have a file named foo.txt in your local directory. You issue the following three commands: Hadoop fs -mkdir input Hadoop fs -put foo.txt input/foo.txt Hadoop fs -put foo.txt input What happens when you issue the third command?


A) The write succeeds, overwriting foo.txt in HDFS with no warning
B) The file is uploaded and stored as a plain file named input
C) You get a warning that foo.txt is being overwritten
D) You get an error message telling you that foo.txt already exists, and asking you if you would like to overwrite it.
E) You get a error message telling you that foo.txt already exists. The file is not written to HDFS
F) You get an error message telling you that input is not a directory
G) The write silently fails

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents