Premium

Mapr (HP) Hadoop Developer Certification Questions and Answers (Dumps and Practice Questions)



Question : Which of the following method of InputSplit class will return all the nodes where the data for the split would be local?


 : Which of the following method of InputSplit class will return all the nodes where the data for the split would be local?
1. getLength()

2. getLocations()

3. Access Mostly Uused Products by 50000+ Subscribers

4. getLocationList()


Correct Answer : Get Lastest Questions and Answer :
Explanation: abstract long getLength()
Get the size of the split, so that the input splits can be sorted by size.
abstract String[] getLocations()
Get the list of nodes by name where the data for the split would be local.





Question : Which of the following is a responsibility of RecordReader?


 : Which of the following is a responsibility of RecordReader?
1. breaks up the data in an input split into key-value pairs and presents them to the Mapper

2. determines the record boundaries

3. Access Mostly Uused Products by 50000+ Subscribers

4. 1,2

5. 1,2,3

Correct Answer : Get Lastest Questions and Answer :
Explanation: The record reader breaks the data into key/value pairs for input to the Mapper.




Question : Select correct statement, which applies for Mapper?


 : Select correct statement, which applies for Mapper?
1. Maps input key/value pairs to a set of intermediate key/value pairs.

2. map() method of the Mapper is called for each key-value pair once, and output sent to the Patitioner.

3. Access Mostly Uused Products by 50000+ Subscribers

4. 1,2

5. 1,2,3


Correct Answer : Get Lastest Questions and Answer :
Explanation: The output of the maps jobs is stored in the local disk of the mappers. Once the map job finishes these local outputs are then
transferred to reducers.
You can check your $HADOOP_HOME/conf/mapred-site.xml to check where mapper outputs are stored.



Related Questions


Question : You have following data in a Hive table, assuming based on the tag you want to join the data
colortable,1,pink,300
colortable,2,red,500
colortable,3,yellow,300
flowertable,1,rose
flowertable,2,amaryllis
flowertable,3,sunflower
flowertable,4,lily
flowertable,5,cosmos
And produce the output as below hive query.
Select color,flower from colortable join flowertable ON (colortable.id=flowertable.id)
Select the correct MapReduce program which produces the output as above query.

  : You have following data in a Hive table, assuming based on the tag you want to join the data
1. 1
2. 2
3. Access Mostly Uused Products by 50000+ Subscribers


Question :

  :
1. 1
2. 2
3. Access Mostly Uused Products by 50000+ Subscribers


Question :

There are two input files as below to MapReduce Join job.

input/A
A.a11 A.a12
A.a21 A.a22
B.a21 A.a32
A.a31 A.a32
B.a31 A.a32

input/B
A.a11 B.a12
A.a11 B.a13
B.a11 B.a12
B.a21 B.a22
A.a31 B.a32
B.a31 B.a32

After running the MapReduce join code snippet(Left Hand Side)

What would be the first line of the output

 :
1. A.a11 A.a12 B.a12
2. A.a11 A.a12 A.a11 B.a13
3. Access Mostly Uused Products by 50000+ Subscribers
4. B.a21 A.a32 B.a21 B.a22


Question :

Select the correct code snippet which will produce the 12 files each for a month, considering you have defined 12 reducers for this job

Sample input data
10.1.255.266,hadoopexam.com,index.html,20/Aug/2013
10.1.255.2,hadoopexam.com,index.html,11/Feb/2013
10.1.255.233,hadoopexam.com,index.html,14/Jan/2013

 :
1. 1
2. 2
3. Access Mostly Uused Products by 50000+ Subscribers


Question :

From the below given code snippet please select the correct one which is able to create Compressed Sequence file.

 :
1. 1
2. 2
3. Access Mostly Uused Products by 50000+ Subscribers


Question :

Select the correct code snippet which is able to read the compressed sequence file

 :
1. 1
2. 2
3. Access Mostly Uused Products by 50000+ Subscribers