Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3908B184ED for ; Mon, 14 Mar 2016 17:26:56 +0000 (UTC) Received: (qmail 38713 invoked by uid 500); 14 Mar 2016 17:26:54 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 38646 invoked by uid 500); 14 Mar 2016 17:26:54 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 38622 invoked by uid 99); 14 Mar 2016 17:26:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Mar 2016 17:26:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id A8F371A14CC for ; Mon, 14 Mar 2016 17:26:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.67 X-Spam-Level: * X-Spam-Status: No, score=1.67 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.329, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id U2h-USaagkuY for ; Mon, 14 Mar 2016 17:26:51 +0000 (UTC) Received: from mgate2.illumina.com (mgate2.illumina.com [206.190.72.216]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id BF9145F39E for ; Mon, 14 Mar 2016 17:26:50 +0000 (UTC) X-ASG-Debug-ID: 1457976401-086aad3e7243fa80001-ZI2oBf Received: from USSD-PRD-EXCA01.illumina.com (ussd-prd-exca01.illumina.com [10.12.36.94]) by mgate2.illumina.com with ESMTP id rrUzIYZ42dwnu6fR (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 Mar 2016 10:26:42 -0700 (PDT) X-Barracuda-Envelope-From: mparsian@illumina.com X-ASG-Whitelist: Client Received: from USSD-PRD-EXMB01.illumina.com ([fe80::31cf:106e:9fba:7c12]) by USSD-PRD-EXCA01.illumina.com ([10.12.36.94]) with mapi id 14.03.0279.002; Mon, 14 Mar 2016 10:26:41 -0700 From: "Parsian, Mahmoud" To: Nkechi Achara , "user@hbase.apache.org" Subject: Re: Example of spinning up a Hbase mock style test for integration testing in scala Thread-Topic: Example of spinning up a Hbase mock style test for integration testing in scala X-ASG-Orig-Subj: Re: Example of spinning up a Hbase mock style test for integration testing in scala Thread-Index: AQHRfb4aCRPXMXZjoEasWYAIZYY+2Z9ZLTqAgAB2ioD//44YAA== Date: Mon, 14 Mar 2016 17:26:40 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.12.48.100] Content-Type: multipart/alternative; boundary="_000_D30C420A16F02mparsianilluminacom_" MIME-Version: 1.0 X-Barracuda-Connect: ussd-prd-exca01.illumina.com[10.12.36.94] X-Barracuda-Start-Time: 1457976402 X-Barracuda-Encrypted: ECDHE-RSA-AES256-SHA X-Barracuda-URL: https://10.10.0.15:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 10221 X-Virus-Scanned: by bsmtpd at illumina.com X-Barracuda-BRTS-Status: 1 --_000_D30C420A16F02mparsianilluminacom_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi Keech, Please post your sample test, its run log, version of Hbase , hadoop, =85 And make sure that hadoop-core-1.2.1.jar is not your classpath (causes many= errors!). Best, Mahmoud From: Nkechi Achara > Date: Monday, March 14, 2016 at 10:14 AM To: "user@hbase.apache.org" >, Mahmoud Parsian > Subject: Re: Example of spinning up a Hbase mock style test for integration= testing in scala Thanks Mahmoud, This is what I am using, but as the previous reply stated, I receiving an= exception when starting the cluster. Thinking about it, it looks to be more of a build problem of my hbase mini = cluster, as I am receiving the following error: 16/03/14 12:29:00 WARN datanode.DataNode: IOException in BlockReceiver.run(= ): java.io.IOException: Failed to move meta file for ReplicaBeingWritten, blk_= 1073741825_1001, RBW getNumBytes() =3D 7 getBytesOnDisk() =3D 7 getVisibleLength()=3D 7 getVolume() =3D C:\Users\unknown\Documents\trs\target\test-data\780= d11ca-27b8-4004-bed8-480bc9903125\dfscluster_d292c05b-0190-43b1-83b2-bebf48= 3c8b3c\dfs\data\data1\current getBlockFile() =3D C:\Users\unknown\Documents\trs\target\test-data\780= d11ca-27b8-4004-bed8-480bc9903125\dfscluster_d292c05b-0190-43b1-83b2-bebf48= 3c8b3c\dfs\data\data1\current\BP-1081755239-10.66.90.86-1457954925705\curre= nt\rbw\blk_1073741825 bytesAcked=3D7 bytesOnDisk=3D7 from C:\Users\unknown\Documents\trs\target\test-data\780d= 11ca-27b8-4004-bed8-480bc9903125\dfscluster_d292c05b-0190-43b1-83b2-bebf483= c8b3c\dfs\data\data1\current\BP-1081755239-10.66.90.86-1457954925705\curren= t\rbw\blk_1073741825_1001.meta to C:\Users\unknown\Documents\trs\target\tes= t-data\780d11ca-27b8-4004-bed8-480bc9903125\dfscluster_d292c05b-0190-43b1-8= 3b2-bebf483c8b3c\dfs\data\data1\current\BP-1081755239-10.66.90.86-145795492= 5705\current\finalized\subdir0\subdir0\blk_1073741825_1001.meta at org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.move= BlockFiles(FsDatasetImpl.java:615) at org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.BlockPoolSlice.add= Block(BlockPoolSlice.java:250) at org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsVolumeImpl.addBl= ock(FsVolumeImpl.java:229) at org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.fina= lizeReplica(FsDatasetImpl.java:1119) at org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.fina= lizeBlock(FsDatasetImpl.java:1100) at org.apache.hadoop.hdfs.server.datanode.BlockReceiver$PacketResponder.fin= alizeBlock(BlockReceiver.java:1293) at org.apache.hadoop.hdfs.server.datanode.BlockReceiver$PacketResponder.run= (BlockReceiver.java:1233) at java.lang.Thread.run(Thread.java:745) Caused by: 3: The system cannot find the path specified. at org.apache.hadoop.io.nativeio.NativeIO.renameTo0(Native Method) at org.apache.hadoop.io.nativeio.NativeIO.renameTo(NativeIO.java:830) at org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetImpl.move= BlockFiles(FsDatasetImpl.java:613) ... 7 more 16/03/14 12:29:00 INFO datanode.DataNode: Starting CheckDiskError Thread Thanks, Keech On 14 Mar 2016 6:10 pm, "Parsian, Mahmoud" > wrote: Hi Keech, You may use the org.apache.hadoop.hbase.HBaseCommonTestingUtility class to start a ZK, and an HBase cluster and then do your unit tests and integration. I am using this with junit and it works very well. But I am using Java only. Best regards, Mahmoud Parsian On 3/13/16, 11:52 PM, "Nkechi Achara" > wrote: >Hi, > >I am trying to find an example of how to spin up a Hbase server in a mock >or integration style, so I can test my code locally in my IDE. >I have tried fake-hbase and hbase testing utility and receive errors >especially when trying to start the cluster. >Has anyone got any examples in scala to do this? > >Thanks, > >Keech --_000_D30C420A16F02mparsianilluminacom_--