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?
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
correct answer is E ….
0
0
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
you get an error message ;
put ‘……’: File exits
0
0
E
0
0