Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7B8151072D for ; Thu, 22 Aug 2013 10:19:17 +0000 (UTC) Received: (qmail 54082 invoked by uid 500); 22 Aug 2013 10:19:10 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 53578 invoked by uid 500); 22 Aug 2013 10:19:08 -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 53120 invoked by uid 99); 22 Aug 2013 10:19:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Aug 2013 10:19:05 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of harsh@cloudera.com designates 209.85.219.42 as permitted sender) Received: from [209.85.219.42] (HELO mail-oa0-f42.google.com) (209.85.219.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Aug 2013 10:19:00 +0000 Received: by mail-oa0-f42.google.com with SMTP id i18so3090884oag.1 for ; Thu, 22 Aug 2013 03:18:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=0s0s9tcjDn3U5UyggKLRQ6x17J593rb2uDE5fB+DB/4=; b=LIw9XoA5c7TTVz+oTGiBmMnii79n6T1/5UfrPd/71tG4QGRH7n/sRvSrIUVTPV5NhW xDIgRiQHWdlO5qQrHqJ7vsyqnCEM7dAcyAOi4XQrcPlvbizwQK06pWdfg+GgmP1ojQlK OlSBa/oKy7peIu8u2DLZvVzmTOiH/oe+j65sJOPldRmxwmvJ7TWcMSqkikVdQiP2kTgm UoZV2CESbpgWt3aQWgk8CIwVDKfjYtS2UFV8+xr1zIk2NTckFnDED87YrSz95HbQ/BKU lJ10wgqXYSil2rBI5pdRxkJyLx4teRX2f8PIazjio5GaUxM1+kgFRYSfIm8h4pxuunvc jbPw== X-Gm-Message-State: ALoCoQmhnETaPYsH84J93Bhk15svPloK3iK0B5MKdaerNUJVu6mvawF8OKMpNRz9E7Wbyj76SGpc X-Received: by 10.50.50.104 with SMTP id b8mr1368929igo.1.1377166719865; Thu, 22 Aug 2013 03:18:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.101.202 with HTTP; Thu, 22 Aug 2013 03:18:19 -0700 (PDT) In-Reply-To: References: From: Harsh J Date: Thu, 22 Aug 2013 15:48:19 +0530 Message-ID: Subject: Re: Create a file in local file system in map method To: "" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Can you share what error you run into in trying to write to a local filesystem location from within a map task? Note that the map tasks will run as the same user as the TaskTracker daemon in insecure environments, or as the job submitting user in secure environments. The location you're writing to, should allow permissions appropriately depending on the above. On Thu, Aug 22, 2013 at 3:21 PM, rab ra wrote: > ---------- Forwarded message ---------- > From: "rab ra" > Date: 22 Aug 2013 15:14 > Subject: Create a file in local file system in map method > To: "users@hadoop.apache.org" > > Hi > > i am not able to create a file in my local file system from my map method. > Is there a way to do it? Please provide some links. My map need to generate > one file during execution. When executing in remote node it shoul generate > the file in a predefined location inthe execution node. > > Thanks > Rab -- Harsh J