Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS >> mail # dev >> MapFile.Writer


Copy link to this message
-
MapFile.Writer
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

 
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB