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 EBB3510C98 for ; Sun, 3 Nov 2013 14:58:55 +0000 (UTC) Received: (qmail 4653 invoked by uid 500); 3 Nov 2013 14:58:31 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 4505 invoked by uid 500); 3 Nov 2013 14:58:20 -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 4495 invoked by uid 99); 3 Nov 2013 14:58:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Nov 2013 14:58:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [72.30.239.152] (HELO nm39-vm8.bullet.mail.bf1.yahoo.com) (72.30.239.152) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Nov 2013 14:58:08 +0000 Received: from [98.139.212.149] by nm39.bullet.mail.bf1.yahoo.com with NNFMP; 03 Nov 2013 14:57:47 -0000 Received: from [98.139.212.220] by tm6.bullet.mail.bf1.yahoo.com with NNFMP; 03 Nov 2013 14:57:47 -0000 Received: from [127.0.0.1] by omp1029.mail.bf1.yahoo.com with NNFMP; 03 Nov 2013 14:57:47 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 675651.68010.bm@omp1029.mail.bf1.yahoo.com Received: (qmail 57942 invoked by uid 60001); 3 Nov 2013 14:57:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1383490667; bh=PNT6Y3BiZ0ySUGC5Ol2L/Zjjr26LbiVdbbjqPFQnpRs=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=SgGi6lSRONdRvaLi1ampxLQk8fW9K45rCRrEqFq4EOb0sdvqO/hdvtctnS9zy4AOARhLpgAnORGLI20NVOZJ7YnI8fqYDlq4Wd1D8kTPfNRNxw2n8EBglkSDN6i9s/KKPIlfU7Ms7cQdOmCN+093/LoAl33xfAlwiVNNG9fBjvI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=fFBH/dYKwKZqlOZaOuiJ4YTpBq55U8IW0PtQTuPkwqiFDzaCPjB6lxFQla1Vt8LQQJTz/F5iy6bh8InTP+i90kY39OsuH7tR4O32GqJnFSVanMEfZuJSO9SGzVs7LiGwh1eVeG9X0zUHePmlI7wy4/ib29GyaNco36mD2NcLJpI=; X-YMail-OSG: 1OmcBxsVM1n7UiFeyvSdi_KgHpLBZlA7C8ZlTD6GPbyVrB_ nhjJmrHgF9M36iAFJWongY5yIwaSV8dPvXMaBgNVnhjbK6kev5SvkVbeicKR kgvZUuGZIK9RFL3v9bz7qkysQRN3XoQLwwPaa7AL5F30YzphdGEZkAdkWkot alBY6YiE4C3Ql80osMBRfCAYoorr62d4qELOKXO9HrES5EQqwLj.Cj.TMePV SUu.3sgRKe.lbaGs1fl.u5CeTFHuy3TGtUWpL4KJNRuFobqnhJ_dCtJRq0Rn JqOeyyqjzZVRFZByr5fSFzg9uHopGp9m0G17Ln9i.6JZyd4zTdX8pU9CYnZk 7iYF2BGqZ.K2OpV2UPaUwN21aIlL0kOqMz4iJ2eyB67aAxm4oSSgfRhzunH_ tx_bgJi63NoTnNxnkuq_3.MrDqNRIStjvRZMK.SZM9eFqNX7048CzqPj5NI3 HU9PkLYee7_jwvcs8NePOVNlGtKgAhYrsj3hwgmsZtkvx2HtFpStf73kHKlA eXmw2Nn8.EdmrTWbhWJjQ9Fqso0oKObCZuPKB51ZqnPVVf2g7WpVeDaSlGq. c.zGbR1hFtwPzRUqq44T5pkiSYIA6w78G4teNJg6.eKIMgZZePQAq58_1V4s JxbLDzref..KJft4Slp98WsSqf.yH9OapTmUcpJOngfkOo.OtLwiYUtwYyhU fkIFLybiHOZ4xpEf5vCaZfwSOuhFKdbs- Received: from [46.143.214.42] by web141401.mail.bf1.yahoo.com via HTTP; Sun, 03 Nov 2013 06:57:47 PST X-Rocket-MIMEInfo: 002.001,SGkKCkkgd2FudCB0byBydW4gYSBtYXAgcmVkdWNlIGpvYiBmcm9tIGFuIElERShOZXRCZWFucykgYW5kIGFzIGEgY2xpZW50LCBteSBoYWRvb3DCoCBjbHVzdGVyIGlzIGluIGRpZmZlcmVudCBtYWNoaW5lLCBzbyBJIHNldCBiZWxvdyBjb2RlIGluIG15IGpvYiBjb25mIHRvIHJ1biBhIGpvYiBpbiByZW1vdGUgOgoKwqDCoMKgwqDCoCAKwqBjb25maWcgPSBuZXcgQ29uZmlndXJhdGlvbigpOwrCoGNvbmZpZy5zZXQoImZzLmRlZmF1bHQubmFtZSIsICJoZGZzOi8vMTkyLjE2OC4yMC4xMzA6OTAwMCIpOwrCoGMBMAEBAQE- X-Mailer: YahooMailWebService/0.8.161.596 Message-ID: <1383490667.36054.YahooMailNeo@web141401.mail.bf1.yahoo.com> Date: Sun, 3 Nov 2013 06:57:47 -0800 (PST) From: fateme Abiri Reply-To: fateme Abiri Subject: submit job to remote hadoop cluster To: "user@hadoop.apache.org" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="783862642-231341077-1383490667=:36054" X-Virus-Checked: Checked by ClamAV on apache.org --783862642-231341077-1383490667=:36054 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi=0A=0AI want to run a map reduce job from an IDE(NetBeans) and as a clien= t, my hadoop=C2=A0 cluster is in different machine, so I set below code in = my job conf to run a job in remote :=0A=0A=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = =0A=C2=A0config =3D new Configuration();=0A=C2=A0config.set("fs.default.nam= e", "hdfs://192.168.20.130:9000");=0A=C2=A0config.set("mapred.job.tracker",= "192.168.20.130:9001");=0AJob job =3D new Job(config, "myJob");=C2=A0 =0Aj= ob.setJarByClass(MyMapReducClass.class); =0Ajob.setMapperClass(Mapper.class= );=0Ajob.setReducerClass(Reducer.class);=0A=E2=80=A6...........=0A=0A=0A=C2= =A0my Reducer.class &=C2=A0 Reducer.class is in=C2=A0 MyMapReducClass.class= ...=0A=0Aknow I want to run my code directly from IDE(NetBeans) , without u= sing command: =0A$hadoop jar =E2=80=A6.=0AI mean I use ToolRunner.run(new M= yMapReducClass() , args) in my code.=0A=0A=0Abut when I run the code I have= this Error:=0A=0A=C2=A0attempt_201311031101_0008_m_000008_0, Status : FAIL= ED=0Ajava.lang.RuntimeException: java.lang.ClassNotFoundException:=0A=C2=A0= MyMapReducClass$Mapper=0A=0A=C2=A0as I said I do : job.setJarByClass(MyMapR= educClass.class);=0Aand the Mapper.class is in=C2=A0 MyMapReducClass!!!!=0A= =0A=0AIf its necessary to set $Hadoop ClassPath, is it possible to set it f= rom my IDE(NetBeans)? Because of some security reason I don't have any perm= ission to ssh to hadoop cluster to set this parameter every time for all pr= ogram execution !!!=0A=0Ain general: =0A=0Awhat pre-requirestics should I d= o=C2=A0 to run map-reduce job from IDE(NetBeans) in mylocal machine on remo= te cluster?=0AShould I copy the jar file of=C2=A0 my classes and library in= hadoop cluster? I have them only in my local machine and do not copy them = on hadoop cluster!!!=0A=0Aplease say me what can I do?=0A=0A=E2=80=93 Tanx = so much --783862642-231341077-1383490667=:36054 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi

I want to run a map reduce job from an IDE(Net= Beans) and as a client, my hadoop  cluster is in different machine, so= I set below code in my job conf to run a job in remote :

 &nbs= p;   
 config =3D new Configuration();
 con= fig.set("fs.default.name", "hdfs://192.168.20.130:9000");
 config.s= et("mapred.job.tracker", "192.168.20.130:9001");
Job job =3D new Job(con= fig, "myJob"); 
job.setJarByClass(MyMapReducClass.class);
job.= setMapperClass(Mapper.class);
job.setReducerClass(Reducer.class);
=E2= =80=A6...........


 my Reducer.class &  Reducer.cla= ss is in  MyMapReducClass.class...

know I want to run my code d= irectly from IDE(NetBeans) , without using command:
$hadoop jar =E2=80= =A6.
I mean I use ToolRunner.run(new MyMapReducClass() , args) in my code.

but when I run the code I have this Error:

 attempt_201311= 031101_0008_m_000008_0, Status : FAILED
java.lang.RuntimeException: java= .lang.ClassNotFoundException:
 MyMapReducClass$Mapper

 = as I said I do : job.setJarByClass(MyMapReducClass.class);
and the Mappe= r.class is in  MyMapReducClass!!!!


If its necessary to set = $Hadoop ClassPath, is it possible to set it from my IDE(NetBeans)? Because = of some security reason I don't have any permission to ssh to hadoop cluste= r to set this parameter every time for all program execution !!!

in = general:

what pre-requirestics should I do  to run map-reduce = job from IDE(NetBeans) in mylocal machine on remote cluster?
Should I co= py the jar file of  my classes and library in hadoop cluster? I have t= hem only in my local machine and do not copy them on hadoop cluster!!!

please say me what can I do?

=E2=80=93 Tanx so mu= ch

--783862642-231341077-1383490667=:36054--