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 98C76111CB for ; Sat, 23 Aug 2014 06:47:37 +0000 (UTC) Received: (qmail 27327 invoked by uid 500); 23 Aug 2014 06:47:32 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 27191 invoked by uid 500); 23 Aug 2014 06:47:32 -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 27181 invoked by uid 99); 23 Aug 2014 06:47:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Aug 2014 06:47:32 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rabmdu@gmail.com designates 209.85.220.176 as permitted sender) Received: from [209.85.220.176] (HELO mail-vc0-f176.google.com) (209.85.220.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Aug 2014 06:47:02 +0000 Received: by mail-vc0-f176.google.com with SMTP id id10so13121074vcb.21 for ; Fri, 22 Aug 2014 23:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=9aqNLNhZ6PurgiQvVsrB9Q/aaF+DsLyhSAvDzm0AK4A=; b=GI5lZhs6QKdrqSJZGAPQ4jZ2E6Ul+wT7QeOCXE8kCL/k1nAGf+tGGtOEoFWsirffCC BNuOMUdA/KbJdxCSXyfTlGzNQiWxvK+fTqFfNbHEZ+XG21+HuBTvqNgYOrgi7+KabDST sQGDMTiMUragNpBOa0qBgkscYJ+QwHeMV8lAxUYJt/6fXufdVFub17i6tX3tabxUhdzr HQBzAFVDiU0tPVym7ZY9NjKyt0fDJ6wo1tb6S4YUmWy89nKdevFOG9xAck4Vuur+9f9W N88dURiIfiySmYBfiZqfx+Vj39UeBb5EDoaBbDNRHoLToZZV7pJRlDUIAe5u3VLi1/34 Elgw== MIME-Version: 1.0 X-Received: by 10.220.44.80 with SMTP id z16mr7253544vce.7.1408776421463; Fri, 22 Aug 2014 23:47:01 -0700 (PDT) Received: by 10.220.173.2 with HTTP; Fri, 22 Aug 2014 23:47:01 -0700 (PDT) Received: by 10.220.173.2 with HTTP; Fri, 22 Aug 2014 23:47:01 -0700 (PDT) In-Reply-To: References: Date: Sat, 23 Aug 2014 12:17:01 +0530 Message-ID: Subject: Re: Appending to HDFS file From: rab ra To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7b34313c2b5c7f050146528d X-Virus-Checked: Checked by ClamAV on apache.org --047d7b34313c2b5c7f050146528d Content-Type: text/plain; charset=UTF-8 Hi By default, it is true in hadoop 2.4.1. Nevertheless, I have set it to true explicitly in hdfs-site.xml. Still, I am not able to achieve append. Regards On 23 Aug 2014 11:20, "Jagat Singh" wrote: > What is value of dfs.support.append in hdfs-site.cml > > > https://hadoop.apache.org/docs/r2.3.0/hadoop-project-dist/hadoop-hdfs/hdfs-default.xml > > > > > On Sat, Aug 23, 2014 at 1:41 AM, rab ra wrote: > >> Hello, >> >> I am currently using Hadoop 2.4.1.I am running a MR job using hadoop >> streaming utility. >> >> The executable needs to write large amount of information in a file. >> However, this write is not done in single attempt. The file needs to be >> appended with streams of information generated. >> >> In the code, inside a loop, I open a file in hdfs, appends some >> information. This is not working and I see only the last write. >> >> How do I accomplish append operation in hadoop? Can anyone share a >> pointer to me? >> >> >> >> >> regards >> Bala >> > > --047d7b34313c2b5c7f050146528d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hi

By default, it is true in hadoop 2.4.1. Nevertheless, I have set it to t= rue explicitly in hdfs-site.xml. Still, I am not able to achieve append.

Regards

On 23 Aug 2014 11:20, "Jagat Singh" &l= t;jagatsingh@gmail.com> wrot= e:
What is value of=C2=A0dfs.support.append in hdfs-site.cml

<= span style=3D"line-height:17.280000686645508px">



On Sat, Aug 23, 2014 at 1:41 AM, rab ra = <rabmdu@gmail.com> wrote:
Hello,

I am currently using Hadoop 2.4.= 1.I am running a MR job using hadoop streaming utility.=C2=A0
The executable needs to write large amount of information in a = file. However, this write is not done in single attempt. The file needs to = be appended with streams of information generated.=C2=A0

In the code, inside a loop, I open a file in hdfs, appe= nds some information. This is not working and I see only the last write.=C2= =A0

How do I accomplish append operation in hadoop= ? Can anyone share a pointer to me?




regards
Bala

--047d7b34313c2b5c7f050146528d--