Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 46934109BF for ; Sat, 13 Jul 2013 04:30:42 +0000 (UTC) Received: (qmail 453 invoked by uid 500); 13 Jul 2013 04:30:39 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 414 invoked by uid 500); 13 Jul 2013 04:30:39 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 405 invoked by uid 99); 13 Jul 2013 04:30:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Jul 2013 04:30:37 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yuzhihong@gmail.com designates 209.85.215.41 as permitted sender) Received: from [209.85.215.41] (HELO mail-la0-f41.google.com) (209.85.215.41) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Jul 2013 04:30:33 +0000 Received: by mail-la0-f41.google.com with SMTP id fn20so8338503lab.28 for ; Fri, 12 Jul 2013 21:30:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ADYHH3hXjnV6ShQN0FWXrp+UHcKFeZWng7C+25N9N8I=; b=Oz70s1H9qP8EFgAZSZDQCQCIz4IgO9AvB+fENmlZlnmA8QELSO2MQLblhMK0oJZJmI /pIXMSsXMbgFXFanbJyqef3mQQdr6oVJPNrXxBfQuvtMIltXMATu0lSyQoqP3jyAYlba iDAmez5rSDLbsILXOOcJLuqUmtdLmcc4Pneha8kqrl7LoPS7uTHZPJc+csKh357GgDxy wyGbFPxqyrJ1QAE6AETAVyMXzc1baFeWXfEJ/29fJNf9ycsaSV01duSIVQccVJl07eO4 OKKIkigpuw8AhZbE2KLVoyJmm/1ZK+70cCtho0UB2F3+sLdT7Kz3zPouqW9PFn9itBke 9NOA== MIME-Version: 1.0 X-Received: by 10.152.120.228 with SMTP id lf4mr20997080lab.65.1373689811729; Fri, 12 Jul 2013 21:30:11 -0700 (PDT) Received: by 10.112.141.5 with HTTP; Fri, 12 Jul 2013 21:30:11 -0700 (PDT) In-Reply-To: <6695BD3B-5201-46A2-A332-F75E14F97CAD@gmail.com> References: <6695BD3B-5201-46A2-A332-F75E14F97CAD@gmail.com> Date: Fri, 12 Jul 2013 21:30:11 -0700 Message-ID: Subject: Re: Help with HBaseTestingUtility / MiniDFSCluster From: Ted Yu To: dev@hbase.apache.org Cc: David Williams Content-Type: multipart/alternative; boundary=089e0117691542822604e15d1554 X-Virus-Checked: Checked by ClamAV on apache.org --089e0117691542822604e15d1554 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I installed lein on Mac and Linux. I tried 'lein test' on both platforms and the test passed on both: lein test hbase.table-test Starting DataNode 0 with dfs.data.dir: /homes/hortonzy/mobius/target/test-data/246828b9-1be9-4949-9bbc-b215b378fb6= 7/dfscluster_9ed0bd88-d309-4fed-9823-3bbf86973ae4/dfs/data/data1,/homes/hor= tonzy/mobius/target/test-data/246828b9-1be9-4949-9bbc-b215b378fb67/dfsclust= er_9ed0bd88-d309-4fed-9823-3bbf86973ae4/dfs/data/data2 Cluster is active Ran 11 tests containing 14 assertions. 0 failures, 0 errors. Here is Linux OS: Linux a.net 2.6.32-220.23.1.el6.YAHOO.20120713.x86_64 #1 SMP Fri Jul 13 11:40:51 CDT 2012 x86_64 x86_64 x86_64 GNU/Linux Looking at MiniDFSCluster.java, line 426: String ipAddr =3D dn.getSelfAddr().getAddress().getHostAddress(); It seems dn.getSelfAddr().getAddress() returned null. According to: http://docs.oracle.com/javase/7/docs/api/java/net/InetSocketAddress.html#ge= tAddress() This would mean address resolution problem. Can you check ? Cheers On Fri, Jul 12, 2013 at 7:37 PM, David Williams wrote: > Hi all, > > I am having an issue starting the a mini cluster for the > HBaseTestingUtility. In short I can on Mac OSX, but cannot on Linux. B= ut > the error is cryptic and I don't know what to do next. > > I submitted a ticket with full details on StackOverflow, > > > http://stackoverflow.com/questions/17625938/hbase-minidfscluster-java-fai= ls-in-certain-environments > > But when I call .startMiniCluster on an instance of HBaseTestingUtility = , > on Linux (CentOS x86_64), I receive this error: > > > > ERROR in (create-table) (MiniDFSCluster.java:426) > Uncaught exception, not in assertion. > expected: nil > actual: java.lang.NullPointerException: null > at org.apache.hadoop.hdfs.MiniDFSCluster.startDataNodes > (MiniDFSCluster.java:426) > org.apache.hadoop.hdfs.MiniDFSCluster. (MiniDFSCluster.java:284= ) > org.apache.hadoop.hbase.HBaseTestingUtility.startMiniDFSCluster > (HBaseTestingUtility.java:444) > org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster > (HBaseTestingUtility.java:612) > org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster > (HBaseTestingUtility.java:568) > org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster > (HBaseTestingUtility.java:555) > > I would appreciate help in finding out whats going on and how to set up m= y > ENV to use the HBaseTestingUtility. > > Thanks > David > --089e0117691542822604e15d1554--