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 AE7D8F337 for ; Tue, 6 Aug 2013 05:38:37 +0000 (UTC) Received: (qmail 40173 invoked by uid 500); 6 Aug 2013 05:38:35 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 39518 invoked by uid 500); 6 Aug 2013 05:38:28 -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 39510 invoked by uid 99); 6 Aug 2013 05:38:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Aug 2013 05:38:27 +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 (nike.apache.org: domain of justlooks@gmail.com designates 209.85.214.170 as permitted sender) Received: from [209.85.214.170] (HELO mail-ob0-f170.google.com) (209.85.214.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Aug 2013 05:38:20 +0000 Received: by mail-ob0-f170.google.com with SMTP id eh20so7466032obb.1 for ; Mon, 05 Aug 2013 22:37:59 -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 :content-type; bh=ewnjJWkQDCWxZSUmGMp3C5rHPnqYAbCXp0ikaG1VnRc=; b=mFS7WC6ZinuEzFuaC6cSmUAY3qjPOsDrh2yiUq20Rtk0hoXe29d8dPreigF3XMM9Lo AI5+SoNnqCY3OBfAlCBlYIzd42ddw6SZ9FlB+TgiZLpIQrKeWAPRI/Y7iS4qaOCPjVmL u2v6jPaPAKHcg25zuyKO1KCN9LYpxE8gmUHrkbnwZLy5QDaxlgCN/bG+XKqpU0EfgFYl KPUYTKEXL7+IpFA1Gdj7yAFodobbNG6YjolAlY+X3y5NgP9zYd1EE9iEIKnLRfWu7/g2 Q5Pf04FHpirmbFXV3QbJV+89zEadnI+dwZS0Q6cpElQudgSeJG8CMgp6OOx2g+s7ct+1 7LDA== MIME-Version: 1.0 X-Received: by 10.60.54.39 with SMTP id g7mr16908837oep.18.1375767479117; Mon, 05 Aug 2013 22:37:59 -0700 (PDT) Received: by 10.182.129.138 with HTTP; Mon, 5 Aug 2013 22:37:59 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Aug 2013 13:37:59 +0800 Message-ID: Subject: Re: issue about put key value and reverse key value into hbase From: ch huang To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=089e01161db0e2ec9304e340d3b5 X-Virus-Checked: Checked by ClamAV on apache.org --089e01161db0e2ec9304e340d3b5 Content-Type: text/plain; charset=ISO-8859-1 thanks ,it's work fine! On Mon, Aug 5, 2013 at 9:37 PM, Ted Yu wrote: > Can you try double quote ? > > hbase(main):004:0> put 'usertable', "\x00\x00R", 'family', 'won' > 0 row(s) in 0.1200 seconds > > hbase(main):005:0> get 'usertable', "\x00\x00R" > COLUMN CELL > family: timestamp=1375709809258, value=won > 1 row(s) in 0.0190 seconds > > On Mon, Aug 5, 2013 at 1:59 AM, ch huang wrote: > > > hi,all: > > > > i have a key value like 'testkey' , and value '\x00\x00R', i wanto to > > store them in hbase as rowkey and value > > > > rowkey => 'testkey' , info:key => '\x00\x00R' > > > > and > > > > rowkey => '\x00\x00R' ,info:value => 'testkey' > > > > but i try the following command ,it not correct > > > > hbase(main):001:0> put 'demo','\x00\x00R','info:kv','testme' > > 0 row(s) in 0.1180 seconds > > hbase(main):002:0> scan 'demo' > > ROW COLUMN+CELL > > \x5Cx00\x5Cx00R column=info:kv, > > timestamp=1375692802127, value=testme > > 1 row(s) in 0.0610 seconds > > hbase(main):003:0> put 'demo','testme','info:vk','\x00\x00R' > > 0 row(s) in 0.0060 seconds > > hbase(main):004:0> scan 'demo' > > ROW COLUMN+CELL > > \x5Cx00\x5Cx00R column=info:kv, > > timestamp=1375692802127, value=testme > > testme column=info:vk, > > timestamp=1375693076792, value=\x5Cx00\x5Cx00R > > 2 row(s) in 0.0190 seconds > > > --089e01161db0e2ec9304e340d3b5--