Return-Path: Delivered-To: apmail-hadoop-hbase-user-archive@minotaur.apache.org Received: (qmail 85859 invoked from network); 13 May 2009 22:51:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 May 2009 22:51:47 -0000 Received: (qmail 99669 invoked by uid 500); 13 May 2009 22:51:47 -0000 Delivered-To: apmail-hadoop-hbase-user-archive@hadoop.apache.org Received: (qmail 99596 invoked by uid 500); 13 May 2009 22:51:46 -0000 Mailing-List: contact hbase-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-user@hadoop.apache.org Delivered-To: mailing list hbase-user@hadoop.apache.org Received: (qmail 99586 invoked by uid 99); 13 May 2009 22:51:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 May 2009 22:51:46 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sdolgy@gmail.com designates 209.85.220.176 as permitted sender) Received: from [209.85.220.176] (HELO mail-fx0-f176.google.com) (209.85.220.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 May 2009 22:51:37 +0000 Received: by fxm24 with SMTP id 24so1087034fxm.29 for ; Wed, 13 May 2009 15:51:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=hvij5GBs/YzFDpWmJKqcGUU5gFCogcK9en28h/ZJSqg=; b=hZzmEs8Lb/dqZgc29ymnXYUsoKjBkK4WbaoaCNL08FR/L7tZJZr4MOO+VEuIWeCSU3 wLgdrQcL6LygoQfBuNk9w4fehJesWIo/kMw/mzU+z68lnhJ5HtJqzrVuKfgYNBzdg9CZ OVt525JwOlFx4lXRc7qPXPtjxXuGvogZDu73w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=V1MsGpTXRoRdYyFiESk1anF7Le/HLYZv0OPYL0WGAq03qqkBkGtmXVkyaLCDNl+wLr StKT3KyQ+CvXtwZ/HgCqTUuotFumF0/zKM89+2UUhVpMvCjSpwpDBT+SepyMVSOJXduU EpJ+vgcayZl3P03vtSR2dqVYm2ChJTFoVDt9M= MIME-Version: 1.0 Sender: sdolgy@gmail.com Received: by 10.204.64.204 with SMTP id f12mr1415392bki.40.1242255076070; Wed, 13 May 2009 15:51:16 -0700 (PDT) Date: Wed, 13 May 2009 23:51:16 +0100 X-Google-Sender-Auth: 175e5c5492a7468b Message-ID: <2e760b510905131551k5b515a0fi3c8bd6f003040ae6@mail.gmail.com> Subject: HBase indexes From: Sasha Dolgy To: hbase-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001636c5b361879a070469d30c4b X-Virus-Checked: Checked by ClamAV on apache.org --001636c5b361879a070469d30c4b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi there, I have the following table created, with indexes. {NAME => 'foo', IS_ROOT => 'false', IS_META => 'false', FAMILIES => [{NAME => 'entry', BLOOMFILTER => 'false', COMPRESSION => 'NONE', VERSIONS => '3', LENGTH => '2147483647', TTL => '-1', IN_MEMORY => 'false', BLOCKCACHE => 'false'}], INDEXES => [ID => hostname, ID => msg, ID => char_count, ID => ip]} Now this in turn will create new 'tables' in HBase: hbase(main):033:0> list foo-char_count foo-hostname foo-msg foo-ip hbase(main):037:0> describe 'foo-ip' {NAME => 'foo-ip', IS_ROOT => 'false', IS_META => 'false', FAMILIES => [{NAME => 'entry', BLOOMFILTER => 'false ', COMPRESSION => 'NONE', VERSIONS => '3', LENGTH => '2147483647', TTL => '-1', IN_MEMORY => 'false', BLOCKCAC HE => 'false'}, {NAME => '__INDEX__', BLOOMFILTER => 'false', COMPRESSION => 'NONE', VERSIONS => '3', LENGTH = > '2147483647', TTL => '-1', IN_MEMORY => 'false', BLOCKCACHE => 'false'}], INDEXES => []} Great. So this works so far. I then insert a few thousand rows into the 'foo' table and then run a normal scan: Scanner search = hbaseTableName.getScanner(searchString, "", Long.MAX_VALUE, filter); ... This works fine, but when I try an indexed scan i receive back no results. Does another process need to encourage the indexes to function? Thanks in advance, and apologies if this is something simple...big learning curve -sd -- Sasha Dolgy sasha.dolgy@gmail.com --001636c5b361879a070469d30c4b--