Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 724AB1076A for ; Tue, 17 Sep 2013 21:24:25 +0000 (UTC) Received: (qmail 21122 invoked by uid 500); 17 Sep 2013 21:23:59 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 21001 invoked by uid 500); 17 Sep 2013 21:23:56 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 20969 invoked by uid 99); 17 Sep 2013 21:23:55 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Sep 2013 21:23:55 +0000 Date: Tue, 17 Sep 2013 21:23:55 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HBASE-9562) Make HLogPE run against configured FS 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/HBASE-9562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack resolved HBASE-9562. -------------------------- Resolution: Fixed Fix Version/s: (was: 0.96.1) 0.96.0 Assignee: stack Committed to 0.96 and trunk. > Make HLogPE run against configured FS > ------------------------------------- > > Key: HBASE-9562 > URL: https://issues.apache.org/jira/browse/HBASE-9562 > Project: HBase > Issue Type: Sub-task > Components: Performance, wal > Reporter: stack > Assignee: stack > Fix For: 0.96.0 > > Attachments: 9562.txt > > > HLogPE will not pick up the configured fs from *.xml files; always goes against localfs > Simple patch: > {code} > diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/HLogPerformanceEvaluation.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/HLogPerformanceEvalu > index 9c07046..f73258b 100644 > --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/HLogPerformanceEvaluation.java > +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/wal/HLogPerformanceEvaluation.java > @@ -47,6 +47,7 @@ import org.apache.hadoop.hbase.regionserver.wal.HLog.Entry; > import org.apache.hadoop.hbase.util.Bytes; > import org.apache.hadoop.util.Tool; > import org.apache.hadoop.util.ToolRunner; > +import org.apache.hadoop.hbase.HConstants; > /** > * This class runs performance benchmarks for {@link HLog}. > @@ -170,8 +171,12 @@ public final class HLogPerformanceEvaluation extends Configured implements Tool > } > // Run HLog Performance Evaluation > + // First set the fs from configs. Do it for both configs in case we > + // are on hadoop1 > + getConf().set("fs.default.name", getConf().get(HConstants.HBASE_DIR)); > + getConf().set("fs.defaultFS", getConf().get(HConstants.HBASE_DIR)); > FileSystem fs = FileSystem.get(getConf()); > - LOG.info("" + fs); > + LOG.info("FileSystem: " + fs); > try { > if (rootRegionDir == null) { > rootRegionDir = TEST_UTIL.getDataTestDir("HLogPerformanceEvaluation"); > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira