You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Sriram V <vs...@gmail.com> on 2015/01/27 22:19:12 UTC
Re: Overwrite a row
Hi Ted,
I am referring to
http://grokbase.com/p/hbase/user/134kvzt6ah/overwrite-a-row Does this mean
that if I am using hbase 0.94.6, the mutate row option will not remove the
previously present column qualifiers if they are empty in my latest update?
Thanks,
Sriram
Re: Overwrite a row
Posted by sriram <vs...@gmail.com>.
Thanks Lars for additional info. Will try that.
Thanks,
Sriram
--
View this message in context: http://apache-hbase.679495.n3.nabble.com/Re-Overwrite-a-row-tp4067918p4067935.html
Sent from the HBase User mailing list archive at Nabble.com.
Re: Overwrite a row
Posted by lars hofhansl <la...@apache.org>.
That is how HBase works, in all versions. If you do not want this, you have to delete the other 10, with Delete.deleteColumns(...).You can use a RowMutation if you want to do this all in one transaction.
-- Lars
From: sriram <vs...@gmail.com>
To: user@hbase.apache.org
Sent: Tuesday, January 27, 2015 5:07 PM
Subject: Re: Overwrite a row
Yes Ted. So what I am facing is, My hbase is already having a record. For
example) Consider it to be having 20 fields. Now I am going to replace those
20 fields with only 10 fields.
Hence I create a RowMutation with Put object having only those 10 fields and
write it into Hbase. What happens is, those 10 fields are getting updated in
hbase with the latest value. But the other already existing 10 fields are
still present instead of getting deleted. Can you please let me know if I am
missing something?
Thanks,
Sriram
--
View this message in context: http://apache-hbase.679495.n3.nabble.com/Re-Overwrite-a-row-tp4067918p4067926.html
Sent from the HBase User mailing list archive at Nabble.com.
Re: Overwrite a row
Posted by sriram <vs...@gmail.com>.
Yes Ted. So what I am facing is, My hbase is already having a record. For
example) Consider it to be having 20 fields. Now I am going to replace those
20 fields with only 10 fields.
Hence I create a RowMutation with Put object having only those 10 fields and
write it into Hbase. What happens is, those 10 fields are getting updated in
hbase with the latest value. But the other already existing 10 fields are
still present instead of getting deleted. Can you please let me know if I am
missing something?
Thanks,
Sriram
--
View this message in context: http://apache-hbase.679495.n3.nabble.com/Re-Overwrite-a-row-tp4067918p4067926.html
Sent from the HBase User mailing list archive at Nabble.com.
Re: Overwrite a row
Posted by Ted Yu <yu...@gmail.com>.
Have you seen http://search-hadoop.com/m/3rLhsinhQ ?
bq. they are empty
I assume the above is the same as 'absent' in your mutation.
Cheers
On Tue, Jan 27, 2015 at 1:19 PM, Sriram V <vs...@gmail.com> wrote:
> Hi Ted,
>
> I am referring to
> http://grokbase.com/p/hbase/user/134kvzt6ah/overwrite-a-row Does this mean
> that if I am using hbase 0.94.6, the mutate row option will not remove the
> previously present column qualifiers if they are empty in my latest update?
>
> Thanks,
> Sriram
>