Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6FA8D1196D for ; Sun, 11 May 2014 22:33:42 +0000 (UTC) Received: (qmail 47980 invoked by uid 500); 11 May 2014 22:26:20 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 47889 invoked by uid 500); 11 May 2014 22:26:20 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 47881 invoked by uid 99); 11 May 2014 22:26:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 May 2014 22:26:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bijuatapache@gmail.com designates 74.125.82.193 as permitted sender) Received: from [74.125.82.193] (HELO mail-we0-f193.google.com) (74.125.82.193) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 May 2014 22:26:14 +0000 Received: by mail-we0-f193.google.com with SMTP id u57so1597056wes.8 for ; Sun, 11 May 2014 15:25:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=c00aaeuAw0DS7ndHmRZKktMFcErn+j8wSOcKuKFT5ds=; b=I553XsiuIrPGPdDaK4fF6hSub8yi/J7Ey4tI8BBJaR67R2bipc+oOvAucr1ECFmdpT KKfQ1q1x4lVrIY4iaX9+kTI5gIJSDohaFgm6tj6gI7hpvn8JewvV7QAPUsFjUSjYMALu 8ZOwhVEnXnjBLhXu0Ee7ni5b4RBSESsmL4/oIP9OIj3dwbauAlYgWG8P99cKiieBwaKw YjQkU/lfIaAJQrcb/5cV0WgCx1dNLrS79iQk/QTxl4HM5aDHolj1TkLxthADAHD8cgn2 p1iLct/Scz7c7wfRn/EnQjXWFPUJGLGbvbVdSrOPJETaMTrdoLWammcDyJM/qUFoZ98k 7i9g== MIME-Version: 1.0 X-Received: by 10.180.182.115 with SMTP id ed19mr12681167wic.29.1399847153631; Sun, 11 May 2014 15:25:53 -0700 (PDT) Received: by 10.194.71.14 with HTTP; Sun, 11 May 2014 15:25:53 -0700 (PDT) Date: Sun, 11 May 2014 18:25:53 -0400 Message-ID: Subject: MapFile.Writer From: Biju N To: hdfs-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7b66f59f55066b04f9275032 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b66f59f55066b04f9275032 Content-Type: text/plain; charset=UTF-8 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 --047d7b66f59f55066b04f9275032--