PrepAway - Latest Free Exam Questions & Answers

What happens when you issue that third command?

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 that third command?

PrepAway - Latest Free Exam Questions & Answers

A.
The write succeeds, overwriting foo.txt in HDFS with no warning

B.
The write silently fails

C.
The file is uploaded and stored as a plain named input

D.
You get an error message telling you that input is not a directory

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 foo.txt already exists, and asking you if you would like
to overwrite

G.
You get a warning that foo.txt is being overwritten

4 Comments on “What happens when you issue that third command?

  1. Gaurav says:

    HDFS doesn’t allows you to overwrite a file, if you try to do so it gives you a error message like “file already exists”. Correct answer is E




    0



    0

Leave a Reply

Your email address will not be published. Required fields are marked *