adspace


What are the restriction to the key and value class ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Which modes can Hadoop be run in? List a few features for each mode?

542


How job tracker schedules an assignment?

496


Give me the examples of Columnar database ?

669


How can you set an arbitrary number of Reducers to be created for a job in Hadoop?

551