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 1DECBDBFC for ; Thu, 25 Oct 2012 11:56:35 +0000 (UTC) Received: (qmail 69832 invoked by uid 500); 25 Oct 2012 11:56:33 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 69606 invoked by uid 500); 25 Oct 2012 11:56:29 -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 69516 invoked by uid 99); 25 Oct 2012 11:56:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2012 11:56:28 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.220.169] (HELO mail-vc0-f169.google.com) (209.85.220.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2012 11:56:20 +0000 Received: by mail-vc0-f169.google.com with SMTP id fl17so2093142vcb.14 for ; Thu, 25 Oct 2012 04:55:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version:x-mailer:x-gm-message-state; bh=BTS9ISgajHrUZD1Zuu5Zc/TSb0pOO2z+0wS/Gn7mNpU=; b=F+ckIrIvX3SEn+8VepmmCYmpBp+AIi0DYprk3cyJVHTspHfcwJThJ97ExNbw1hLsuq 15gSYZSPc7MoO1gsZPgzgl/ipplqOiIODnjPEIDaU/fC953ugqqloX1OwCVgYXB56yp0 bdMm1tboAjAkR0KHNLVKbNMQaZy9ybvSS3SGn4JJpJ/MUng6hNHa2GeDxAokPpX59oVP PAPReax9F/AuXgBPazA7uf0VaL+Z28yB3fnJT4kiKH8/tp5p7x0QyTF7z6g/FPuZt8LQ MRIunyUjN3Jj817Oz6FKmDqB69+zLTuJ4AVoU0TOBNwiw4pWlEBeGdwNAunjAdpf/71m +C3A== Received: by 10.58.32.234 with SMTP id m10mr34450093vei.60.1351166159015; Thu, 25 Oct 2012 04:55:59 -0700 (PDT) Received: from [192.168.10.60] (ip-64-134-43-37.public.wayport.net. [64.134.43.37]) by mx.google.com with ESMTPS id k14sm18722097vdh.19.2012.10.25.04.55.57 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Oct 2012 04:55:58 -0700 (PDT) From: Michael Spiegle Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: How do I test SampleRegionWALObserver? Message-Id: <20A8D871-E8EC-4E13-A5EE-F03FF8781135@nauticaltech.com> Date: Thu, 25 Oct 2012 07:56:05 -0400 To: user@hbase.apache.org Mime-Version: 1.0 (Mac OS X Mail 6.1 \(1498\)) X-Mailer: Apple Mail (2.1498) X-Gm-Message-State: ALoCoQk9nhhUDm69SjPDkvcqQxHITWYbMfk4CY+t+cW5enzo+e+8zrPDuDV8ELxK7JZxJNc6D/K+ X-Virus-Checked: Checked by ClamAV on apache.org I'm using CDH4, but I'd imagine that the steps would be similar for = upstream HBase. I've already got the tests JAR file loaded as part of = my classpath. I also have the following in my hbase-site.xml: hbase.coprocessor.region.classes = org.apache.hadoop.hbase.coprocessor.SampleRegionWALObserver= When I start HBase, the following shows up in my logs: # grep Sample /var/log/hbase/hbase-hbase-regionserver-hbase01.log=20 2012-10-24 13:06:13,126 INFO = org.apache.hadoop.hbase.coprocessor.CoprocessorHost: System coprocessor = org.apache.hadoop.hbase.coprocessor.SampleRegionWALObserver was loaded = successfully with priority (536870911). However, when I 'PUT' new rows in my table, I see no log entries show up = for SampleRegionWALObserver. After looking at the = SampleRegionWALObserver code, it seems that I need to call = setTestValues() in order to get preWALWrite() to execute the rest of the = code. I think this is something that I might be able to accomplish via = the 'hbase shell', but I can't figure out how. Can anyone help point me = in the right direction? For reference, this is the code I'm looking at: = http://svn.apache.org/repos/asf/hbase/tags/0.92.1/src/test/java/org/apache= /hadoop/hbase/coprocessor/SampleRegionWALObserver.java Regards, Michael Spiegle=