hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajeshbabu chintaguntla <rajeshbabu.chintagun...@huawei.com>
Subject RE: how to get record if comma is the part of rowkey
Date Thu, 20 Feb 2014 12:24:29 GMT
Hi Upendra,
comma is missing between table name and rowkey. Thats why you are getting the error. 
It should be like this.
hbase(main):024:0> get 'StudentScoreCard','3,BCA'

Thanks,
Rajeshbabu
________________________________________
From: Upendra Yadav [upendra1024@gmail.com]
Sent: Thursday, February 20, 2014 5:47 PM
To: user@hbase.apache.org
Subject: Re: how to get record if comma is the part of rowkey

with
hbase(main):024:0> get 'StudentScoreCard' '3\,BCA'

ERROR: wrong number of arguments (1 for 2)

Still i am getting same error....


On Thu, Feb 20, 2014 at 5:42 PM, praveenesh kumar <praveenesh@gmail.com>wrote:

> As far as I know, hbase shell is ruby based. Try using escape character ( \
> )  before using comma ( , )
> hbase(main):022:0> get 'StudentScoreCard' '3\,BCA'
>
> Regards
> Prav
>
>
> On Thu, Feb 20, 2014 at 12:04 PM, Upendra Yadav <upendra1024@gmail.com
> >wrote:
>
> > Hi,
> >
> > how to get record if comma is the part of rowkey
> >
> > I have data like :
> > hbase(main):020:0> scan 'StudentScoreCard'
> > ROW                         COLUMN+CELL
> >
> >  1,BCA                      column=marks:Bio, timestamp=1392896198268,
> > value=86
> >
> > And now insted of SCAN command i want to use GET command(get ), but i m
> > getting error...:
> >
> > hbase(main):022:0> get 'StudentScoreCard' '3,BCA'
> >
> > ERROR: wrong number of arguments (1 for 2)
> >
> > ==================
> >
>

Mime
View raw message