In an Apache Hadoop map-reduce program, what are the options for using sets/lists as keys in the output from the mapper?
My initial idea was to use ArrayWritable
as key type, but that is not allowed, as the class does not implement WritableComparable
. Do I need to define a custom class, or is there some other set like class in the Hadoop libraries that can act as key?