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 DACEF97F9 for ; Thu, 6 Oct 2011 00:32:07 +0000 (UTC) Received: (qmail 49933 invoked by uid 500); 6 Oct 2011 00:32:04 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 49885 invoked by uid 500); 6 Oct 2011 00:32:04 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 49877 invoked by uid 99); 6 Oct 2011 00:32:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2011 00:32:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.213.176] (HELO mail-yx0-f176.google.com) (209.85.213.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2011 00:31:58 +0000 Received: by yxn22 with SMTP id 22so2945146yxn.35 for ; Wed, 05 Oct 2011 17:31:38 -0700 (PDT) Received: by 10.236.184.70 with SMTP id r46mr305783yhm.100.1317861097169; Wed, 05 Oct 2011 17:31:37 -0700 (PDT) Received: from [192.168.1.120] (173-162-124-90-miami.hfc.comcastbusiness.net. [173.162.124.90]) by mx.google.com with ESMTPS id 8sm9725087anv.9.2011.10.05.17.31.35 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Oct 2011 17:31:36 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1244.3) Subject: Re: problem while running wordcount on lion x From: Jignesh Patel In-Reply-To: Date: Wed, 5 Oct 2011 20:31:34 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <25BE998B-C843-40C5-AB46-EE5315F83DC7@websoft.com> References: To: common-user@hadoop.apache.org X-Mailer: Apple Mail (2.1244.3) have used eclipse to export the file and then got following error hadoop-user$ bin/hadoop jar = wordcountsmp/wordcount.jarorg.apache.hadoop.examples.WordCount input = output Exception in thread "main" java.io.IOException: Error opening job jar: = wordcountsmp/wordcount.jarorg.apache.hadoop.examples.WordCount at org.apache.hadoop.util.RunJar.main(RunJar.java:90) 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:127) at java.util.jar.JarFile.(JarFile.java:135) at java.util.jar.JarFile.(JarFile.java:72) at org.apache.hadoop.util.RunJar.main(RunJar.java:88) I tried following=20 java -jar xf wordcountsmp/wordcount.jar and got the error Unable to access jar file xf my jar file size is 5kb. I am feeling somehow eclipse export in macOS is = not creating appropriate jar. On Oct 5, 2011, at 8:16 PM, Brock Noland wrote: > Hi, >=20 > On Wed, Oct 5, 2011 at 7:13 PM, Jignesh Patel = wrote: >>=20 >>=20 >> I also found another problem if I directly export from eclipse as a = jar >> file then while trying javac -jar or hadoop -jar doesn't recognize = that jar. >> However same jar works well with windows. >=20 >=20 >=20 > Can you please share the error message? Note, the structure of the = hadoop > command is: >=20 > hadoop jar file.jar class.name >=20 > Note, no - in front of jar like `java -jar' >=20 > Brock