Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 28475 invoked from network); 22 Jun 2009 11:43:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jun 2009 11:43:11 -0000 Received: (qmail 79933 invoked by uid 500); 22 Jun 2009 11:43:20 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 79847 invoked by uid 500); 22 Jun 2009 11:43:19 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 79837 invoked by uid 99); 22 Jun 2009 11:43:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2009 11:43:19 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=MISSING_MID,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [203.104.17.250] (HELO smtp102.biz.mail.in2.yahoo.com) (203.104.17.250) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 22 Jun 2009 11:43:08 +0000 Received: (qmail 23952 invoked from network); 22 Jun 2009 11:42:45 -0000 Received: from unknown (HELO csoft341) (shravan.mahankali@196.12.38.195 with login) by smtp102.biz.mail.in2.yahoo.com with SMTP; 22 Jun 2009 11:42:44 -0000 X-Yahoo-SMTP: jbupKISswBCZoyRNpKqKfJb5XLBHxPLucuMO9IUusNFlNRLYl3DuLwdHWbk- X-YMail-OSG: OiiEV7AVM1mBbPbjOR_enJszQnVuIaKJzXxYr_lZbNvoJolkN7IIpqLo8t0T.dFqLfO6509WgiFJS8SF_w7GHZ_qm8caXSs4c_ARBLQ9MaXWsZ9pwoG2_dmhH4BZFjpN5O2U53MP3SCuv8gQa4.6Dl_CqJZ_KZH1MGWy86m3tQRpuCwbhQY.M7_lIQkwfwWUJZr8GZ11TtjvVm77et0kEQtbcgNP_eVdJX5oO5k8YBshcMshH0p6mD9FWgJPjQFZCcJItMI- X-Yahoo-Newman-Property: ymail-3 Reply-To: From: "Shravan Mahankali" To: , "'Harish Mallipeddi'" Subject: RE: java.io.IOException: Error opening job jar Date: Mon, 22 Jun 2009 17:12:47 +0530 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_019B_01C9F35C.AA725450" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcnzJN9zf3+K8uSVSYK9hnuJcrwEKAAAaD6wAAGxdKAAADH4kA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3264 In-Reply-To: <000b01c9f32d$60fb4e50$22f1eaf0$@com> X-Virus-Checked: Checked by ClamAV on apache.org Message-Id: <20090622114318.3893481601D@nike.apache.org> ------=_NextPart_000_019B_01C9F35C.AA725450 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi Harish, PFA the AggregateWordCount.jar file. I was able to open this jar file using a sample Java file written with JarFile api, and this is the same api used inside org.apache.hadoop.util.RunJar class, where my jar is rejected and throwing the error!!! Also find attached the sample java file - RunJar1.java Thank You, Shravan Kumar. M Catalytic Software Ltd. [SEI-CMMI Level 5 Company] ----------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system administrator - netopshelpdesk@catalytic.com -----Original Message----- From: Ramakishore Yelamanchilli [mailto:kyelaman@cisco.com] Sent: Monday, June 22, 2009 5:04 PM To: core-user@hadoop.apache.org; shravan.mahankali@catalytic.com; 'Harish Mallipeddi' Subject: RE: java.io.IOException: Error opening job jar Can you attach the jar file you have? -Ram -----Original Message----- From: Shravan Mahankali [mailto:shravan.mahankali@catalytic.com] Sent: Monday, June 22, 2009 3:49 AM To: 'Harish Mallipeddi'; core-user@hadoop.apache.org Subject: RE: java.io.IOException: Error opening job jar Thanks for your reply Harish. Am running this example from with in the directory containing AggregateWordCount.jar file. But even then, I have this issue. Earlier I had issue of java.lang.ClassNotFoundException: org.apache.hadoop.examples.AggregateWordCount$WordCountPlugInClass, so in some thread some one have suggested using -libjars, so I tried, but there was not great!!! I did not think it is SUCH A HARD JOB (almost 20+ hours with no success) to just run an example provided by Hadoop in its distribution!!! Thank You, Shravan Kumar. M Catalytic Software Ltd. [SEI-CMMI Level 5 Company] ----------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system administrator - netopshelpdesk@catalytic.com _____ From: Harish Mallipeddi [mailto:harish.mallipeddi@gmail.com] Sent: Monday, June 22, 2009 4:03 PM To: core-user@hadoop.apache.org; shravan.mahankali@catalytic.com Subject: Re: java.io.IOException: Error opening job jar It cannot find your job jar file. Make sure you run this command from the directory that has the AggregateWordCount.jar (and you can lose the -libjars flag too - you need that only if you need to specify extra jar dependencies apart from your job jar file). - Harish On Mon, Jun 22, 2009 at 3:45 PM, Shravan Mahankali wrote: Hi Group, I was having trouble getting through an example Hadoop program. I have searched the mailing list but could not find any thing useful. Below is the issue: 1) Executed below command to submit a job to Hadoop: /hadoop-0.18.3/bin/hadoop jar -libjars AggregateWordCount.jar org.apache.hadoop.examples.AggregateWordCount words/* aggregatewordcount_output 2 textinputformat 2) Following is the error: java.io.IOException: Error opening job jar: org.apache.hadoop.examples.AggregateWordCount at org.apache.hadoop.util.RunJar.main(RunJar.java:90) at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68) Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:203) at java.util.jar.JarFile.(JarFile.java:132) at java.util.jar.JarFile.(JarFile.java:70) at org.apache.hadoop.util.RunJar.main(RunJar.java:88) ... 4 more Please advice. Thank You, Shravan Kumar. M Catalytic Software Ltd. [SEI-CMMI Level 5 Company] ----------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system administrator - netopshelpdesk@catalytic.com -- Harish Mallipeddi http://blog.poundbang.in ------=_NextPart_000_019B_01C9F35C.AA725450--