What are the restriction to the key and value class ?



What are the restriction to the key and value class ?..

Answer / Akhilendra Kumar Singh

"The Key and Value classes in Hadoop MapReduce have some restrictions: 1) Both keys and values must implement the interfaces Writable or comparable, as well as their respective Comparable interface (Comparable<Key> and Comparable<Value>). 2) Keys and Values should be serializable. 3) The Key class should implement the public no-arg constructor to enable Hadoop framework's deserialization of key objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hadoop General Interview Questions

Where is hadoop-env.sh file present?

1 Answers  


How can native libraries be included in yarn jobs?

1 Answers  


Name the operating system(s) which are supported for production hadoop deployment?

1 Answers  


What is the default replication factor and how will you change it?

1 Answers  


What is the difference between an inputsplit and a block?

1 Answers  


List Hadoop’s three configuration files?

1 Answers  


For using hadoop list the network requirements?

1 Answers  


What do you understand by standalone (or local) mode?

1 Answers  


How can one write custom record reader?

1 Answers  


Is there another way to check whether Namenode is working?

1 Answers  


Which one is default?

1 Answers  


Name the most common input formats defined in hadoop?

1 Answers  


Categories