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 ECAD69176 for ; Sat, 23 Jun 2012 09:10:20 +0000 (UTC) Received: (qmail 3117 invoked by uid 500); 23 Jun 2012 09:10:17 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 2684 invoked by uid 500); 23 Jun 2012 09:10:16 -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 2654 invoked by uid 99); 23 Jun 2012 09:10:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jun 2012 09:10:15 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of harsh@cloudera.com designates 209.85.160.48 as permitted sender) Received: from [209.85.160.48] (HELO mail-pb0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jun 2012 09:09:59 +0000 Received: by pbbrq8 with SMTP id rq8so5437789pbb.35 for ; Sat, 23 Jun 2012 02:09:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=Zj2WKdMBeRUIgtzeJBL/iKWGefkbsTbwrCr9GImlGlY=; b=B5msn+gUTTLCuMEPv9xc1iFJa2QBu8crsbsXRRf+ICm9p+rndBY6sVyOgq7Yj1Jpqs 6OLP+gaou2ZxcvWajyEgH3Pt6RLck1GB9AIAm5TycHxqvZgjX8S85gb4Qrv60/nJ9dwW wYw96Ngv5HBiVdKr3y1grlNeQPUjvNU+3VbmUavQBDYEtRkx+fAnMYMQ5bvDzuQmRQ9D TI4ZlYidULO7ydTEVNjkOJ53gqoZyhW4b/9YOuWvokHKf3x23ud1c6aC5BG/MUpmgCuR 8YzmC/nCe8C1Pb4YQJr1CLGaVryp81KWzVz3aSTgYH69aYk6HFiKy9h66sEoBgTeLGHv 6gYA== Received: by 10.68.201.7 with SMTP id jw7mr18922176pbc.60.1340442578164; Sat, 23 Jun 2012 02:09:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.130.201 with HTTP; Sat, 23 Jun 2012 02:09:17 -0700 (PDT) In-Reply-To: References: From: Harsh J Date: Sat, 23 Jun 2012 14:39:17 +0530 Message-ID: Subject: Re: Problem with running hadoop jar demo.jar in local mode. To: common-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQm7/75gg0auVz/9X+O/pbxlGJ91ZRTbOxvYBkKDzs4uUuh94gPbgbpaTiQQymDh9/Bwys5B Your local /tmp directory needs to be writable by your user, for the "hadoop jar" method to execute properly out of the box. If that is not possible, edit your conf/core-site.xml to change the "hadoop.tmp.dir" default of "/tmp/hadoop-${user.name}" to somewhere that is writable by you, perhaps "${user.home}/tmp" for your user alone. On Sat, Jun 23, 2012 at 1:10 PM, Sheng Guo wrote: > Hi all, > > sorry to bother, I have a simple hadoop job. It was running well both in > local mode and in real hadoop cluster. Recently I try to run it again in > single node cluster, and I got the following error: > > $ hadoop-1.0.1/bin/hadoop jar CarDemo.jar > > Exception in thread "main" java.io.IOException: Mkdirs failed to create > /tmp/hadoop-sguo/hadoop-unjar6763909861121801460/META-INF/license > at org.apache.hadoop.util.RunJar.unJar(RunJar.java:47) > at org.apache.hadoop.util.RunJar.main(RunJar.java:132) > > > I tried this both on 0.20.2 and 1.0.0. Both of them exit with exception > like the above. > Can anyone help me on this? > > Thanks!! > > Sheng -- Harsh J