hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Biju N <bijuatapa...@gmail.com>
Subject MapFile.Writer
Date Sun, 11 May 2014 22:25:53 GMT
Trying to create a write to a MapFile on Hadoop version 2.2.0

MapFile.Writer writer = new MapFile.Writer(conf,
path,SequenceFile.Writer.keyClass(key.getClass()),

SequenceFile.Writer.valueClass(value.getClass()));


But fails with illegal argument exception eventhough the key can value
class option is set. Any help is much appreciated.


Exception in thread "main" java.lang.IllegalArgumentException: key class or
comparator option must be set

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message