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