Premium

Cloudera Hadoop Developer Certification Questions and Answer (Dumps and Practice Questions)



Question :

Select the correct code snippet which implemets the WritableComparable correctly for a pair of Strings



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

Correct Answer : Get Lastest Questions and Answer :

Explanation: Empty constructor - required for serialization.

Constructor with two String objects provided as input.

Serializes the fields of this object to out, using write method

Deserializes the fields of this object from in.

compareTo - Compares this object to another StringPairWritable object by
comparing the left strings first. If the left strings are equal,
then the right strings are compared.

The equals method compares two StringPairWritable objects for equality. The equals and hashCode methods have been automatically
generated by Eclipse by right-clicking on an empty line, selecting Source, and then selecting the Generate hashCode() and equals() option

hashcode : The hashCode method generates a hash code for a StringPairWritable object. The equals and hashCode methods have been automatically
generated by Eclipse by right-clicking on an empty line, selecting Source, and then selecting the Generate hashCode() and equals() option.





Question :

If you have 100 files of size 100MB and block size is of 64MB then how many maps will run?



 :
1. 100
2. 200
3. Access Mostly Uused Products by 50000+ Subscribers
4. Between 100 and 200

Correct Answer : Get Lastest Questions and Answer :
1 file equal to 2 blocks and each block will be processed by Single Mapper hence there would be 200 Mapper running






Question :

If you want to use a file in distributed cache then in which method should you read it?


 :
1. map
2. run
3. Access Mostly Uused Products by 50000+ Subscribers
4. setup

Correct Answer : Get Lastest Questions and Answer :



Related Questions


Question :

Which is the correct command to list all the files from current directory
 :
1. hadoop fs -ls
2. hadoop fs -list
3. Access Mostly Uused Products by 50000+ Subscribers
4. All of the above




Question :

Which is the correct command ?

 :
1. hadoop fs -ls
2. hadoop fs -copyToLocal /user/pappu/pappu.txt pappu.txt
3. Access Mostly Uused Products by 50000+ Subscribers
4. 1,2 and 3 are correct
5. Only 1 and 2 are correct





Question : Which is the correct command to delete the directory
  : Which is the correct command to delete the directory
1. hadoop fs -r pappu
2. hadoop fs -remove pappu
3. Access Mostly Uused Products by 50000+ Subscribers
4. hadoop fs -rem pappu


Question :

Which statement is correct for the MapReduce
 :
1. MapReduce is a method for distribution a task across multiple nodes
2. Each node processes data stored on that node
3. Access Mostly Uused Products by 50000+ Subscribers
4. All of the above




Question :

Select the feature of Mapreduce
 :
1. Automatic parallelization and distribution
2. fault-tolerance
3. Access Mostly Uused Products by 50000+ Subscribers
4. All of the above



Question : Hadoop Mapreduce code can be written in other than Java language ?
  :  Hadoop Mapreduce code can be written in other than Java language ?
1. True
2. False