http://hortonworks.com/blog/simplifying-user-logs-management-and-access-in-yarn/
QUESTION: 10
You are the hadoop fs -put command to add a file "sales.txt" to HDFS. This file is small enough
that it fits into a single block, which is replicated to three nodes in your cluster (with a replication
factor of 3). One of the nodes holding this file (a single block) fails. How will the cluster handle
the replication of this file in this situation/
A. The cluster wil re-replicate the file the next time the system administrator reboots the
NameNode daemon (as long as the file's replication doesn't fall two)
B. This file will be immediately re-replicated and al other HDFS operations on the cluster will
halt until the cluster's replication values are restored
C. The file will remain under-replicated until the administrator brings that nodes back online
D. The file will be re-replicated automatically after the NameNode determines it is under
replicated based on the block reports it receives from the DataNodes
Answer(s): B
QUESTION: 11
You are configuring your cluster to run HDFS and MapReduce v2 (MRv2) on YARN. Which
daemons need to be installed on your clusters master nodes?
A. ResourceManager
B. DataNode
C. NameNode
D. JobTracker
E. TaskTracker
F. HMaster
Answer(s): A, D, E
QUESTION: 12
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