You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Upendra Yadav <up...@gmail.com> on 2014/02/20 13:04:38 UTC
how to get record if comma is the part of rowkey
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)
==================
RE: how to get record if comma is the part of rowkey
Posted by rajeshbabu chintaguntla <ra...@huawei.com>.
hbase(main):022:0> get 'StudentScoreCard' '3,BCA'
There should be comma between table name and rowkey.
hbase> get 't1', 'r1'
Thanks,
Rajeshbabu
________________________________________
From: Upendra Yadav [upendra1024@gmail.com]
Sent: Thursday, February 20, 2014 5:34 PM
To: user@hbase.apache.org
Subject: how to get record if comma is the part of rowkey
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)
==================
Re: how to get record if comma is the part of rowkey
Posted by Upendra Yadav <up...@gmail.com>.
Oh... thanks a lot... :P
On Thu, Feb 20, 2014 at 5:54 PM, rajeshbabu chintaguntla <
rajeshbabu.chintaguntla@huawei.com> wrote:
> 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)
> > >
> > > ==================
> > >
> >
>
RE: how to get record if comma is the part of rowkey
Posted by rajeshbabu chintaguntla <ra...@huawei.com>.
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 <pr...@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)
> >
> > ==================
> >
>
Re: how to get record if comma is the part of rowkey
Posted by Upendra Yadav <up...@gmail.com>.
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 <pr...@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)
> >
> > ==================
> >
>
Re: how to get record if comma is the part of rowkey
Posted by praveenesh kumar <pr...@gmail.com>.
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 <up...@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)
>
> ==================
>