Pregunta de entrevista de M3bi

How to write a custom partitioner for a Hadoop MapReduce job?