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 A68E3C8DB for ; Thu, 20 Nov 2014 10:33:13 +0000 (UTC) Received: (qmail 14149 invoked by uid 500); 20 Nov 2014 10:33:02 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 14007 invoked by uid 500); 20 Nov 2014 10:33:01 -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 13997 invoked by uid 99); 20 Nov 2014 10:33:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2014 10:33:01 +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 rohithsharmaks@huawei.com designates 119.145.14.66 as permitted sender) Received: from [119.145.14.66] (HELO szxga03-in.huawei.com) (119.145.14.66) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Nov 2014 10:32:57 +0000 Received: from 172.24.2.119 (EHLO szxeml448-hub.china.huawei.com) ([172.24.2.119]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id AXK30602; Thu, 20 Nov 2014 18:32:34 +0800 (CST) Received: from SZXEML512-MBS.china.huawei.com ([169.254.8.60]) by szxeml448-hub.china.huawei.com ([10.82.67.191]) with mapi id 14.03.0158.001; Thu, 20 Nov 2014 18:32:31 +0800 From: Rohith Sharma K S To: "user@hadoop.apache.org" Subject: RE: Change the blocksize in 2.5.1 Thread-Topic: Change the blocksize in 2.5.1 Thread-Index: AQHQBKqLdGRudh5AfUS7vN5V2rzTiZxpTy0w Date: Thu, 20 Nov 2014 10:32:30 +0000 Message-ID: <0EE80F6F7A98A64EBD18F2BE839C9115676A29BB@szxeml512-mbs.china.huawei.com> References: <546DBE42.7050004@usc.es> In-Reply-To: <546DBE42.7050004@usc.es> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.18.168.138] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020207.546DC342.01B6,ss=1,re=0.001,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=169.254.8.60, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 50b6b67c072b356d26a1270eaef730d5 X-Virus-Checked: Checked by ClamAV on apache.org It seems HADOOP_CONF_DIR is poiniting different location!!? May be you can check hdfs-site.xml is in classpath when you execute hdfs co= mmand. Thanks & Regards Rohith Sharma K S -----Original Message----- From: Tom=E1s Fern=E1ndez Pena [mailto:tf.pena@gmail.com] On Behalf Of Tom= =E1s Fern=E1ndez Pena Sent: 20 November 2014 15:41 To: user@hadoop.apache.org Subject: Change the blocksize in 2.5.1 Hello everyone, I've just installed Hadoop 2.5.1 from source code, and I have problems chan= ging the default block size. My hdfs-site.xml file I've set the property dfs.blocksize 67108864 to have blocks of 64 MB, but it seems that the system ignore this setting. = When I copy a new file, it uses a block size of 128M. Only if I specify the= block size when the file is created (ie hdfs dfs -Ddfs.blocksize=3D$((64*1024*1024)) -put file .) it uses a block size of 64 MB. Any idea? Best regards Tomas -- Tom=E1s Fern=E1ndez Pena Centro de Investigaci=F3ns en Tecnolox=EDas da Informaci=F3n, CITIUS. Univ. Santiago de Compostela Tel: +34 881816439, Fax: +34 881814112, https://citius.usc.es/equipo/persoal-adscrito/?tf.pena Pubkey 1024D/81F6435A, Fprint=3DD140 2ED1 94FE 0112 9D03 6BE7 2AFF EDED 81F6 435A