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 1BA7D10E2C for ; Mon, 28 Apr 2014 23:32:24 +0000 (UTC) Received: (qmail 84462 invoked by uid 500); 28 Apr 2014 23:32:15 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 84334 invoked by uid 500); 28 Apr 2014 23:32:15 -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 84326 invoked by uid 99); 28 Apr 2014 23:32:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2014 23:32:15 +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.213.182 as permitted sender) Received: from [209.85.213.182] (HELO mail-ig0-f182.google.com) (209.85.213.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2014 23:32:09 +0000 Received: by mail-ig0-f182.google.com with SMTP id uy17so5455682igb.9 for ; Mon, 28 Apr 2014 16:31:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=+7KIi/Ll+WIOV0Wyb1GIAYCs00rGc1y8i+WPWGZNfVY=; b=g4DUq+C8rKH49wbXQI3BkI1+TnlWopdZh17B1v866nFgNiX6zK1quHiGhB8G3hf0qE wcozfSKde4/mWp1mC1lfl3s7F4KCM+8MhcKTkLr8HluCddMYuZr8K2OwinRIaeq4e9c3 NE5cQHOU76JFCdQklToUysyBTjB9He4Bgad27TVC45YzYnpmN8FiAFcr7Vr5UTV5U+iF XvlRnt82RIDC6vU/o6hoKaKayf331uj61naeUxZn6QQIkEF4pzlO5GAYGetrmhGOmElQ 49PK7RlR3ZJdfOSNLmu5zqytRALHh2pasCHA9cN/50jh25uKUN5FKJ0cxm0f+GE3KfgF 5J6w== X-Gm-Message-State: ALoCoQlXZM0NtTQO6PLwQxFGqLauTQYtU26tf+MBGOoUNxnhHf8hb8kz8bWcVryZeePD5AEqxwYN X-Received: by 10.50.122.67 with SMTP id lq3mr24575482igb.8.1398727909119; Mon, 28 Apr 2014 16:31:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.50.168 with HTTP; Mon, 28 Apr 2014 16:31:29 -0700 (PDT) In-Reply-To: <007501cf62cd$60603810$2120a830$@126.com> References: <004e01cf6291$104040a0$30c0c1e0$@126.com> <007501cf62cd$60603810$2120a830$@126.com> From: Harsh J Date: Tue, 29 Apr 2014 05:01:29 +0530 Message-ID: Subject: =?GB2312?B?UmU6ILTwuLQ6IGhkZnMgd3JpdGUgcGFydGlhbGx5?= To: "" Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org You do not need to alter the packet size to write files - why do you think you need larger packets than the default one? On Mon, Apr 28, 2014 at 4:04 PM, wrote: > Hi Harsh, > > > > I=A1=AFm using HDFS client to write GZIP compressed files, I want to writ= e once a > file, in order to not uncompressing it. So I should make every write > completely, otherwise file will corrupted. > > I=A1=AFm raising up the client=A1=AFs write packet size to avoid partiall= y write. But > it doesn=A1=AFt work, since it can=A1=AFt bigger than 16M(file size > 16M= ). > > That=A1=AFs my problem. > > > > Thank a lot for replying. > > > > Regards, > > Ken Huang > > > > =B7=A2=BC=FE=C8=CB: user-return-15182-tdhkx=3D126.com@hadoop.apache.org > [mailto:user-return-15182-tdhkx=3D126.com@hadoop.apache.org] =B4=FA=B1=ED= Harsh J > =B7=A2=CB=CD=CA=B1=BC=E4: 2014=C4=EA4=D4=C228=C8=D5 13:30 > =CA=D5=BC=FE=C8=CB: > =D6=F7=CC=E2: Re: hdfs write partially > > > > Packets are chunks of the input you try to pass to the HDFS writer. What > problem are you exactly facing (or, why are you trying to raise up the > client's write packet size)? > > > > On Mon, Apr 28, 2014 at 8:52 AM, wrote: > > Hello everyone, > > > > Since the default dfs.client-write-packet-size is 64K and it can=A1=AFt b= e bigger > than 16M. > > So if write bigger than 16M a time, how to make sure it doesn=A1=AFt writ= e > partially ? > > > > Does anyone knows how to fix this? > > > > Thanks a lot. > > > > -- > > Ken Huang > > > > > > -- > Harsh J --=20 Harsh J