Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 29587F25B for ; Tue, 2 Apr 2013 09:17:20 +0000 (UTC) Received: (qmail 40365 invoked by uid 500); 2 Apr 2013 09:17:15 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 40243 invoked by uid 500); 2 Apr 2013 09:17:14 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 40227 invoked by uid 99); 2 Apr 2013 09:17:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Apr 2013 09:17:14 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yypvsxf19870706@gmail.com designates 209.85.216.49 as permitted sender) Received: from [209.85.216.49] (HELO mail-qa0-f49.google.com) (209.85.216.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Apr 2013 09:17:09 +0000 Received: by mail-qa0-f49.google.com with SMTP id l8so118237qaq.8 for ; Tue, 02 Apr 2013 02:16:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=s35c9VDt8Uui/RbWJD5tdQeohlFJ66L6PCCzzfPQg0w=; b=TZtGhQPZHmufbntpBo87EkYdy5Oasqd4x2YceFO6ynKlXI3XwfkACkvm5y1m8clXCB E0PLdXotYHR09+TG43KonS4eVTZSQ9Yn7dF0qow5PvV8HlAIHCIcKKDiHbJQfLkiUVn7 oa0adp8iNWCRHnMTKr6iYSwNbRC+gL9HuLaMWHGper0PhG6oN/UnGxQKvMaZbByOmmLl 9eUKb81t/DXo49v1BGlkwV24vVRl8Z78M44qQx72BEMopIVcXMURaZpyC8GRZfoCpj/M f9P1Vz75iqv/sJRNDGYHIwk1vLFHvTBziedpYIV9gm/lf5aRPFgAwhEc+bFooV4lDLGK 0GFQ== MIME-Version: 1.0 X-Received: by 10.229.167.136 with SMTP id q8mr5912970qcy.109.1364894208721; Tue, 02 Apr 2013 02:16:48 -0700 (PDT) Received: by 10.49.119.229 with HTTP; Tue, 2 Apr 2013 02:16:48 -0700 (PDT) Date: Tue, 2 Apr 2013 17:16:48 +0800 Message-ID: Subject: MultipleInputs.addInputPath compile error in eclipse(indigo) From: YouPeng Yang To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=e89a8f64747f778d1c04d95d32db X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f64747f778d1c04d95d32db Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable HI GUYS I want to use the the org.apache.hadoop.mapreduce.lib.input.MultipleInputs; However it comes a compile error in my eclipse(indigo): public static void main(String[] args) throws IOException, InterruptedException, ClassNotFoundException { Configuration conf =3D new Configuration(); String[] otheArgs =3D new GenericOptionsParser(conf,args).getRemainingArgs(= ); if(otheArgs.length !=3D 2){ System.err.println("Usage:aaaa"); System.exit(2); } Job job =3D new Job(conf,"Data test2"); job.setReducerClass(CPUReducer.class); job.setOutputKeyClass(Text.class); job.setOutputValueClass(Text.class); MultipleInputs.addInputPath(job, new Path(otheArgs[0]), TextInputFormat.class,CPUMapper.class); MultipleInputs.addInputPath(job, new Path(otheArgs[1]), TextInputFormat.class,NodeReducer.class); ---->The method addInputPath(Job, Path, Class, Class) in the type MultipleInputs is not applicable for the arguments (Job, Path, Class, Class FileOutputFormat.setOutputPath(job,new Path(otheArgs[2])); System.exit(job.waitForCompletion(true) ? 0 : 1); } My questions=A3=BA 1.Does the org.apache.hadoop.mapreduce.lib.input.MultipleInputs belong to the new Hadoop API? Why this error come out,did i miss something? 2.I also found the constructor Job(Configuration, String) is deprecated when i declare Job job =3D new Job(conf,"Data test2"). According to the Hadoop Defenitive Guide ,the API Job is the new Hadoop API. So why the job api is deprecated . I use the hadoop 2.0.0 with the CDH 4.1.2 . please help me. Thanks you. Regards --e89a8f64747f778d1c04d95d32db Content-Type: text/html; charset=GB2312 Content-Transfer-Encoding: quoted-printable
HI GUYS
  I want to use the the org.ap= ache.hadoop.mapreduce.lib.input.MultipleInputs;
 

  However it comes a compile error in= my eclipse(indigo):

 public static void main(String[] args) throws IOException, InterruptedExce= ption, ClassNotFoundException {
Configuration conf =3D new Configuration();
String[] otheArgs = =3D new GenericOptionsParser(conf,args).getRemainingArgs();
if(otheArgs.length !=3D 2){<= /div>
System.err.println(&qu= ot;Usage:aaaa");
= System.exit(2);
}
Job job =3D new Jo= b(conf,"Data test2");
= job.setReducerClass(CPUReducer.class);
job.setOutputKeyCl= ass(Text.class);
job.setOutputValueClass(Text.class);
MultipleInputs.addInputPath(job, new Path(oth= eArgs[0]), TextInputFormat.class,CPUMapper.class);
<= /font>MultipleInputs.addInputPath(job, new P= ath(otheArgs[1]), TextInputFormat.class,NodeReducer.class);
    ---->The method addInputPath(Job, Path, Class<? exte= nds InputFormat>, Class<? extends Mapper>) in the type MultipleInp= uts is not applicable for the arguments (Job, Path, Class<TextInputForma= t>, Class<NodeReducer>

FileOutputFormat.setOutputPath(job,new Path(o= theArgs[2]));
System.exit(job.waitForCompletion(true) ?  0 : 1);

}
 
   My questions=A3=BA
<= div style>  1.Does the org.apache.hadoop.mapreduce.lib.input.MultipleI= nputs belong  
 to the new Hadoop API?
   Why this error co= me out,did i miss something?
  2.I also found  th= e constructor Job(Configuration, String) is deprecated when i declare  = ;Job job =3D new Job(conf,"Data test2").
     According to the Hadoop Defenitive Guide ,th= e API Job  is the new Hadoop API. So why the job api is deprecated .
 
  I use the hadoop 2.0.0 with th= e CDH 4.1.2 .

  please help me.

Thanks you.



<= div style>Regards 

--e89a8f64747f778d1c04d95d32db--