Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5E536D52B for ; Wed, 5 Sep 2012 17:42:40 +0000 (UTC) Received: (qmail 3956 invoked by uid 500); 5 Sep 2012 17:42:39 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 3764 invoked by uid 500); 5 Sep 2012 17:42:39 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 3755 invoked by uid 99); 5 Sep 2012 17:42:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2012 17:42:39 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of v.rozov@comcast.net designates 76.96.27.211 as permitted sender) Received: from [76.96.27.211] (HELO qmta11.emeryville.ca.mail.comcast.net) (76.96.27.211) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2012 17:42:30 +0000 Received: from omta02.emeryville.ca.mail.comcast.net ([76.96.30.19]) by qmta11.emeryville.ca.mail.comcast.net with comcast id vRs51j0060QkzPwABViAP5; Wed, 05 Sep 2012 17:42:10 +0000 Received: from vrozovlap ([76.103.128.56]) by omta02.emeryville.ca.mail.comcast.net with comcast id vVi91j00X1D8cRo8NVi9hr; Wed, 05 Sep 2012 17:42:09 +0000 Message-ID: <19A4119148BA4C59B0A451FB96770DB1@hyperion.com> From: "Vladimir Rozov" To: Subject: MiniDFSCluster Date: Wed, 5 Sep 2012 10:42:10 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00B6_01CD8B53.1A4EF120" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_00B6_01CD8B53.1A4EF120 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable There are few methods on MiniDFSCluster class that are declared as = static (getBlockFile, getStorageDirPath), though as long as = MiniDFSCluster is not a singleton they should be instance methods not = class methods. In my tests I see that starting second instance of = MiniDFSCluster invalidates the first instance if I don=E2=80=99t change = cluster base directory (existing data directory is fully deleted), but = at the same time static declaration of getBlockFile and = getStorageDirPath does not allow base directory to be changed without = affecting functionality. Thank you, Vlad ------=_NextPart_000_00B6_01CD8B53.1A4EF120--