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 CC8D896AD for ; Tue, 21 Aug 2012 00:47:38 +0000 (UTC) Received: (qmail 87939 invoked by uid 500); 21 Aug 2012 00:47:38 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 87900 invoked by uid 500); 21 Aug 2012 00:47:38 -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 87886 invoked by uid 99); 21 Aug 2012 00:47: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 00:47:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2353F2C5BF0 for ; Tue, 21 Aug 2012 00:47:38 +0000 (UTC) Date: Tue, 21 Aug 2012 11:47:38 +1100 (NCT) From: "Colin Patrick McCabe (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1981260745.32938.1345510058145.JavaMail.jiratomcat@arcas> In-Reply-To: <1999374075.51022.1325150490833.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (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:all-tabpanel ] Colin Patrick McCabe updated HDFS-2727: --------------------------------------- Description: 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}} was: hdfs.c uses deprecated property dfs.block.size. It should use new property dfs.blocksize instead. Target Version/s: 2.2.0-alpha Affects Version/s: 2.2.0-alpha > 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