Question : If you have written a Mapper which has both Input key and Value as Text. Which of the following component you will us eto break entire text in the Individual fields.
1. NameNode
2. TaskTracker
3. Application Master
4. StringTokenizer
Correct Answer : 4 Explanation:
Question : As you have following map() function of the Mapper
public void map(Text text, Text value, Content cnt) throws .... cnt.write(new Text("Hadoop"), new Text("Exam"));
1. The default partitioner assigns key-values pairs to reduces based on an internal random number generator. 2. The default partitioner implements a round-robin strategy, shuffling the key-value pairs to each reducer in turn. This ensures an event partition of the key space. 3. Access Mostly Uused Products by 50000+ Subscribers ranges are associated with different buckets, and each bucket is assigned to a specific reducer. 4. The default partitioner computes the hash of the key and divides that value modulo the number of reducers. The result determines the reducer assigned to process the key-value pair. 5. The default partitioner computes the hash of the value and takes the mod of that value with the number of reducers. The result determines the reducer assigned to process the key-value pair.
1. Intermediate data in streamed across the network from Mapper to the Reduce and is never written to disk. 2. Into in-memory buffers on the TaskTracker node running the Mapper that spill over and are written into HDFS. 3. Access Mostly Uused Products by 50000+ Subscribers 4. Into in-memory buffers that spill over to the local file system (outside HDFS) of the TaskTracker node running the Reducer 5. Into in-memory buffers on the TaskTracker node running the Reducer that spill over and are written into HDFS.
1. The key and value types specified in the JobConf.setMapInputKeyClass and JobConf.setMapInputValuesClass methods 2. The data types specified in HADOOP_MAP_DATATYPES environment variable 3. Access Mostly Uused Products by 50000+ Subscribers 4. The InputFormat used by the job determines the mapper's input key and value types.