Question : Select the correct option ? 1. NameNode is the bottleneck for reading the file in HDFS 2. NameNode is used to determine the all the blocks of a file 3. Access Mostly Uused Products by 50000+ Subscribers 4. All of the above
Explaination : When a client application wants to read a file - It communicates with the NameNode to determine which blocks make up the file, and which blocks make up the file - It the communicates directly with the datanodes to read the data - The NameNode is not a bottleneck.
Question :
Which is the correct option for accessing the file which is stored in HDFS
Application can access the files using Java API and typically the files are created in the local filesystem and then moved to the HDFS, there is also one command hadoop fs which is used to access the files in HDFS
Question : Which is the correct command to copy files from local to HDFS file systems 1. hadoop fs -copy pappu.txt pappu.txt 2. hadoop fs -copyFromPath pappu.txt pappu.txt 3. Access Mostly Uused Products by 50000+ Subscribers 4. None of the above
1. Pig comes with additional capabilities to MapReduce. Pig programs are executed as MapReduce jobs via the Pig interpreter. 2. Pig comes with no additional capabilities to MapReduce. Pig programs are executed as MapReduce jobs via the Pig interpreter. 3. Access Mostly Uused Products by 50000+ Subscribers 4. Pig comes with additional capabilities to MapReduce. Pig programs are executed as MapReduce jobs via the Pig interpreter.
1. The node containing the first TaskTracker to heartbeat into the JobTracker, regardless of the location of the input split 2. The node containing the first JobTracker to heartbeat into the Namenode, regardless of the location of the input split 3. Access Mostly Uused Products by 50000+ Subscribers 4. The node containing nearest location of the input split