0 votes
in HDFS by

What are the restriction to the Key and Value Class?

1 Answer

0 votes
by
The key and value classes have to be serialized by the framework. To make them serializable Hadoop provides a Writable interface. As you know from the java itself that the key of the Map should be comparable, hence the key has to implement one more interface Writable Comparable.
...