Premium

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



Question : Suppose we have a MapReduce job, which needs two Mappers MapperA , MapperB and then one Reducer after that also it required two more mappers
MapperC and MapperD . Below is the code snippet of chaining entire flow.

JobConf conf = new JobConf(true);
JobConf confA = new JobConf(false);

JobConf confB = new JobConf(false);
JobConf reduceConf = new JobConf(false);
JobConf confC = new JobConf(false);
JobConf confD = new JobConf(false);

ChainMapper.addMapper(conf, MapperA.class,Text.class, Text.class,Text.class, Text.class,true, confA);
ChainMapper.addMapper(conf, MapperB.class,Text.class, Text.class,Text.class, Text.class,false, 1);
ChainReducer.setReducer(conf, Reduce.class,Text.class, Text.class,Text.class, Text.class,true, 2);
ChainMapper.addMapper(conf, MapperC.class,Text.class, Text.class,Text.class, Text.class,false, 3);
ChainMapper.addMapper(conf, MapperD.class,Text.class, Text.class,Text.class, Text.class,false, 4);

How can you replace 1,2,3,4
 : Suppose we have a MapReduce job, which needs two Mappers MapperA , MapperB and then one Reducer after that also it required two more mappers
1. 1-->confB , 2-->reduceConf , 3-->confC , 4--> confD

2. 1-->confB , 2-->reduceConf , 3-->confB , 4--> confB

3. Access Mostly Uused Products by 50000+ Subscribers

4. 1-->confA , 2-->reduceConf , 3-->confC , 4--> confC

Correct Answer : Get Lastest Questions and Answer :
Explanation:




Question : Select correct statement, regarding MapReduce chaining


 : Select correct statement, regarding MapReduce chaining
1. ChainMapper and ChainReducer to chain successive mapper or Successive reducers

2. Output of one Mapper class can go to another Mapper in same Task

3. Access Mostly Uused Products by 50000+ Subscribers

4. 1,2

5. 1,2,3


Correct Answer : Get Lastest Questions and Answer :
Explanation:




Question : SequenceFile in a MapReduce job are:


 : SequenceFile in a MapReduce job are:
1. Before submitting data to Mapper , it is always converted in SequnceFile

2. Mapper always generate intermediate outpout as a SequnceFile

3. Access Mostly Uused Products by 50000+ Subscribers

4. 1,2

5. 1,2,3

Correct Answer : Get Lastest Questions and Answer :
Explanation:


Related Questions


Question : Please map the below, for compression types?
A. NONE
B. RECORD
C. BLOCK

1. Do not compress
2. Compress only values
3. Access Mostly Uused Products by 50000+ Subscribers
4. Compress both value and key

 : Please map the below, for compression types?
1. A-1, B-4, C-3
2. A-1, B-3, C-4
3. Access Mostly Uused Products by 50000+ Subscribers
4. A-1, B-2, C-3
5. A-3, B-2, C-4


Question : Which of the following information, is stored in a header of Sequence file?
A. Magic number to know, it s a SequnceFile
B. Type of key
C. Type of Value
D. Compression Codec detail

 : Which of the following information, is stored in a header of Sequence file?
1. A,D
2. C,D
3. Access Mostly Uused Products by 50000+ Subscribers
4. B,C,D
5. A,B,C,D


Question : In case of SequenceFile, all the keys are stored in header and their respective values are stored as a content. Including key length and value
length.
 : In case of SequenceFile, all the keys are stored in header and their respective values are stored as a content. Including key length and value
1. True
2. False


Question : Select correct statement regarding SequenceFile
A. '\n' is used as a record terminator
B. Sync marker is used as a record terminator
C. The key-value records are bundled into blocks.
D. The block delimiters are called "markers", and the size of a block is tunable
 : Select correct statement regarding SequenceFile
1. A,C,D
2. A,B,D
3. Access Mostly Uused Products by 50000+ Subscribers
4. A,B,C
5. A,B,C,D


Question : You have to write a Job , which reads SequenceFile and produce as an output Compressed SequenceFile (Compression type is Gzip). Below is the
code snippet for Driver class

setOutputFormatClass(1)
setCompressOutput(2)
setOutputCompressorClass(3)
setOutputCompressionType(4)
setInputFormatClass(5)

Map the below.

B. job,true
C. job, GzipCodec.class
D. job, CompressionType.BLOCK
E. SequenceFileInputFormat.class
A. SequenceFileOutputFormat.class

 : You have to write a Job , which reads SequenceFile and produce as an output Compressed SequenceFile (Compression type is Gzip). Below is the
1. 1-B, 2-A, 3-D, 4-C, 5-E
2. 1-E, 2-B, 3-C, 4-D, 5-A
3. Access Mostly Uused Products by 50000+ Subscribers
4. 1-A, 2-B, 3-C, 4-D, 5-E
5. 1-D, 2-B, 3-C, 4-A, 5-E


Question : Using SequenceFile can save disk space as well as time if more than one MapReduce jobs are chained together
 : Using SequenceFile can save disk space as well as time if more than one MapReduce jobs are chained together
1. True
2. False