Unable to set partitoner to the JobConf object
问题 I wrote a custom partitioner but am unable to set it to the JobConf object in the main class. import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Partitioner; public class FirstCharTextPartitioner extends Partitioner<Text, Text> { @Override public int getPartition(Text key, Text value, int numReduceTasks) { return (key.toString().charAt(0)) % numReduceTasks; } } But when I try to set this to the JobConf object, I get the following error. The method setPartitionerClass(Class)