Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CCEEDCD37 for ; Tue, 21 Aug 2012 03:26:47 +0000 (UTC) Received: (qmail 18289 invoked by uid 500); 21 Aug 2012 03:26:46 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 17927 invoked by uid 500); 21 Aug 2012 03:26:40 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 17859 invoked by uid 99); 21 Aug 2012 03:26:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2012 03:26:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 226432C5BF2 for ; Tue, 21 Aug 2012 03:26:38 +0000 (UTC) Date: Tue, 21 Aug 2012 14:26:38 +1100 (NCT) From: "Eli Collins (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1500333806.33427.1345519598141.JavaMail.jiratomcat@arcas> In-Reply-To: <1999374075.51022.1325150490833.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-2727) hdfs.c uses deprecated property dfs.block.size MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-2727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13438426#comment-13438426 ] Eli Collins commented on HDFS-2727: ----------------------------------- +1 Nit: the diff to jni_helper.c is a nop (removes the EOL), I'll revert it > hdfs.c uses deprecated property dfs.block.size > ---------------------------------------------- > > Key: HDFS-2727 > URL: https://issues.apache.org/jira/browse/HDFS-2727 > Project: Hadoop HDFS > Issue Type: Sub-task > Affects Versions: 0.23.0, 2.2.0-alpha > Reporter: Sho Shimauchi > Assignee: Colin Patrick McCabe > Priority: Minor > Attachments: HDFS-2727.001.patch, HDFS-2727.002.patch > > > libhdfs uses the deprecated property {{dfs.block.size}}. It would be better for libhdfs to use the FileSystem#getDefaultBlockSize API instead. > This API has two advantages: > 1. It uses the new, non-deprecated {{dfs.blocksize}} property > 2. It handles string escapes like 'M' for 'megabytes' etc. which can appear in {{dfs.blocksize}} and {{dfs.block.size}} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira