You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2009/03/03 07:14:56 UTC
[jira] Created: (HBASE-1234) Change HBase StoreKey format
Change HBase StoreKey format
----------------------------
Key: HBASE-1234
URL: https://issues.apache.org/jira/browse/HBASE-1234
Project: Hadoop HBase
Issue Type: Improvement
Reporter: stack
Fix For: 0.20.0
HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.
Things to consider:
<row> <columnfamily> <columnqualifier> <timestamp> <keytype>
Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).
keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?
How are we going to support keys that go in out of chronological order?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
RE: [jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by "Jim Kellerman (POWERSET)" <Ji...@microsoft.com>.
I'd like to see us make things easier on the servers and let
clients do a bit more work. So whichever approach is more
server side efficient, let's do that.
---
Jim Kellerman, Powerset (Live Search, Microsoft Corporation)
> -----Original Message-----
> From: Erik Holstad [mailto:erikholstad@gmail.com]
> Sent: Sunday, March 08, 2009 11:19 AM
> To: hbase-dev@hadoop.apache.org
> Subject: Re: [jira] Commented: (HBASE-1234) Change HBase StoreKey format
>
> Hey Stack!
> The reason I wanted to change the layout was because it would be easier on
> the client side
> when we are building the result structure, depending on the structure type
> you are building
> you might want to put row+fam+qf+ts in the same byte[] and you could do
> that
> in just one
> fetch, but if you see a lot of just getting the row and think that that
> extra getFamLength will
> slow things down, I think that that is more important.
>
> Erik
Re: [jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by Erik Holstad <er...@gmail.com>.
Hey Stack!
The reason I wanted to change the layout was because it would be easier on
the client side
when we are building the result structure, depending on the structure type
you are building
you might want to put row+fam+qf+ts in the same byte[] and you could do that
in just one
fetch, but if you see a lot of just getting the row and think that that
extra getFamLength will
slow things down, I think that that is more important.
Erik
Re: [jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by stack <st...@duboce.net>.
Tell me more about what you are thinking Erik. How you mean open?
I changed it because it seemed to make better sense when I started in on the
KeyValue class; most of the accesses are to get the rows to do compares so
my thought was not to not mix in any column concerns. Let me go back though
because now KeyValue has been mostly flushed out,
http://github.com/ryanobjc/hbase/blob/3bd3ea1a5c541a9510acd7c1e8ea165209e3bb27/src/java/org/apache/hadoop/hbase/regionserver/KeyValue.java,
let me see if the original format might not make more sense after all.
St.Ack
On Sat, Mar 7, 2009 at 12:58 PM, Erik Holstad <er...@gmail.com> wrote:
> Hey Stack!
> Been looking at the code and will put up my stuff on git as soon as I can
> check them
> out properly. Just one thing that I saw, the format for the key is now
> (rowLen)(row)(familyLen)(family)
> I think it would be better to have it
> (rowLen)(familyLen)(row)(family)
> just to keep it open of how to treat the array at the client side in the
> future.
>
> Erik
>
Re: [jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by Erik Holstad <er...@gmail.com>.
Hey Stack!
Been looking at the code and will put up my stuff on git as soon as I can
check them
out properly. Just one thing that I saw, the format for the key is now
(rowLen)(row)(familyLen)(family)
I think it would be better to have it
(rowLen)(familyLen)(row)(family)
just to keep it open of how to treat the array at the client side in the
future.
Erik
Re: [jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by Erik Holstad <er...@gmail.com>.
Hi!
So what I did was to make my own Key class that just basically wraps a
KeyValue and has no length, maybe I should add that, hmm.
The reason for all these different proposals is that we were playing around
with. Keeping the puts and deletes in different sections and so
on. It looks like we re going back to the original design of interleaving
puts and deletes, since there was no way of early out if they are not
stored together.
So about the Key format, for this minute it looks like the first design is
still really good and hopefully I'm not going to come up with some reason
to change it :)
Regards Erik
Re: [jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by Ryan Rawson <ry...@gmail.com>.
+1 I like it.
HFile would only require modest modifications to support this.
-ryan
On Wed, Mar 4, 2009 at 11:12 AM, stack <st...@duboce.net> wrote:
> I just chatted with Erik and I missed what he was saying altogether. His
> point was that we can drop the columnqualifier length IF we know the key
> overall length which I think is going to be true in near all cases.
>
> Chatting further (Jon and Erik just came by the house), they argue that the
> native regionserver entity should be a KeyValue blob whose format is:
>
> keylength
> valuelength
> key
> value
>
> ..where the key is then further decomposable as suggested below
> (rowlength-int, familylength-int, row, family, qualifier, timestamp, type).
> The blob would be carried in a ByteBuffer.
>
> On the way in, we'd make one of these out of the proffered row, column,
> etc.
> and shove it into the Memcache (Memcache would change from TreeMap to
> TreeSet). Flushing would be append of this KeyValue to hfile.
>
> On way out, we'd pick the KeyValue blob from hfile and move this through
> the
> system out to the RPC.
>
> (One day we might put the KeyValue blob on nio if we use something other
> than hadoop's RPC).
>
> St.Ack
>
> On Wed, Mar 4, 2009 at 9:06 AM, stack <st...@duboce.net> wrote:
>
> > On Wed, Mar 4, 2009 at 8:19 AM, Erik Holstad <erikholstad@gmail.com
> >wrote:
> >
> >> Was thinking this morning that me might have to do some adjustments in
> the
> >> format,
> >> we wanted <int><int><int><row><fam><qf><ts><type> for the key and
> >> <int><value> or
> >> something like that, right?
> >> But what is stored in HFile right now is if I'm not mistaken
> >> <int><int><key><val>, so if
> >> we want to match that I think we need to do some small adjustments
> >> probably
> >> to something
> >> like:
> >> <keyLen><valLen><rowLen><famLent><row><fam><qf><ts><type><val>
> >
> >
> >
> > I think we are saying the same thing (if your omission of columnqualifier
> > length was not intentional).
> >
> > In hfile currently its as you say:
> >
> > keylength
> > vallength
> > key
> > value
> >
> > where key expands to
> >
> > vint // Length of the row as vint
> > row
> > vint // Length of the column -- family + qualifier -- as vint
> > column
> > timestamp
> >
> > The proposal is that hfile is as it was only the key now exands to:
> >
> > int // rowlength as a short
> > int // column family length in a byte
> > int // column qualifier length in a short
> > row
> > columnfamily
> > columnqualifier
> > timestamp
> > type
> >
> > St.Ack
> >
> >
> >
>
Re: [jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by stack <st...@duboce.net>.
I just chatted with Erik and I missed what he was saying altogether. His
point was that we can drop the columnqualifier length IF we know the key
overall length which I think is going to be true in near all cases.
Chatting further (Jon and Erik just came by the house), they argue that the
native regionserver entity should be a KeyValue blob whose format is:
keylength
valuelength
key
value
..where the key is then further decomposable as suggested below
(rowlength-int, familylength-int, row, family, qualifier, timestamp, type).
The blob would be carried in a ByteBuffer.
On the way in, we'd make one of these out of the proffered row, column, etc.
and shove it into the Memcache (Memcache would change from TreeMap to
TreeSet). Flushing would be append of this KeyValue to hfile.
On way out, we'd pick the KeyValue blob from hfile and move this through the
system out to the RPC.
(One day we might put the KeyValue blob on nio if we use something other
than hadoop's RPC).
St.Ack
On Wed, Mar 4, 2009 at 9:06 AM, stack <st...@duboce.net> wrote:
> On Wed, Mar 4, 2009 at 8:19 AM, Erik Holstad <er...@gmail.com>wrote:
>
>> Was thinking this morning that me might have to do some adjustments in the
>> format,
>> we wanted <int><int><int><row><fam><qf><ts><type> for the key and
>> <int><value> or
>> something like that, right?
>> But what is stored in HFile right now is if I'm not mistaken
>> <int><int><key><val>, so if
>> we want to match that I think we need to do some small adjustments
>> probably
>> to something
>> like:
>> <keyLen><valLen><rowLen><famLent><row><fam><qf><ts><type><val>
>
>
>
> I think we are saying the same thing (if your omission of columnqualifier
> length was not intentional).
>
> In hfile currently its as you say:
>
> keylength
> vallength
> key
> value
>
> where key expands to
>
> vint // Length of the row as vint
> row
> vint // Length of the column -- family + qualifier -- as vint
> column
> timestamp
>
> The proposal is that hfile is as it was only the key now exands to:
>
> int // rowlength as a short
> int // column family length in a byte
> int // column qualifier length in a short
> row
> columnfamily
> columnqualifier
> timestamp
> type
>
> St.Ack
>
>
>
Re: [jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by stack <st...@duboce.net>.
On Wed, Mar 4, 2009 at 8:19 AM, Erik Holstad <er...@gmail.com> wrote:
> Was thinking this morning that me might have to do some adjustments in the
> format,
> we wanted <int><int><int><row><fam><qf><ts><type> for the key and
> <int><value> or
> something like that, right?
> But what is stored in HFile right now is if I'm not mistaken
> <int><int><key><val>, so if
> we want to match that I think we need to do some small adjustments probably
> to something
> like:
> <keyLen><valLen><rowLen><famLent><row><fam><qf><ts><type><val>
I think we are saying the same thing (if your omission of columnqualifier
length was not intentional).
In hfile currently its as you say:
keylength
vallength
key
value
where key expands to
vint // Length of the row as vint
row
vint // Length of the column -- family + qualifier -- as vint
column
timestamp
The proposal is that hfile is as it was only the key now exands to:
int // rowlength as a short
int // column family length in a byte
int // column qualifier length in a short
row
columnfamily
columnqualifier
timestamp
type
St.Ack
Re: [jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by Erik Holstad <er...@gmail.com>.
Was thinking this morning that me might have to do some adjustments in the
format,
we wanted <int><int><int><row><fam><qf><ts><type> for the key and
<int><value> or
something like that, right?
But what is stored in HFile right now is if I'm not mistaken
<int><int><key><val>, so if
we want to match that I think we need to do some small adjustments probably
to something
like:
<keyLen><valLen><rowLen><famLent><row><fam><qf><ts><type><val>
Erik
Re: [jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by Ryan Rawson <ry...@gmail.com>.
If we have a MutableKeyValue class that basically stores values in a mutable
backing store, with mutation methods... then we should get exactly what we
want.
On Tue, Mar 24, 2009 at 1:31 PM, Erik Holstad <er...@gmail.com> wrote:
> I agree that it is better to keep KeyValue as it is, creating a separate
> Key
> class for storing the deleteKeys.
>
> On Tue, Mar 24, 2009 at 1:07 PM, Erik Holstad <er...@gmail.com>
> wrote:
>
> > Yeah, that sounds ok.
> > I'm not changing the values in the storefiles but just making keyValues
> to
> > store in
> > the delete list etc, but I guess I don't really need to store KeyValues
> can
> > have some
> > other format. Will think about it.
> >
> >
>
Re: [jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by Erik Holstad <er...@gmail.com>.
I agree that it is better to keep KeyValue as it is, creating a separate Key
class for storing the deleteKeys.
On Tue, Mar 24, 2009 at 1:07 PM, Erik Holstad <er...@gmail.com> wrote:
> Yeah, that sounds ok.
> I'm not changing the values in the storefiles but just making keyValues to
> store in
> the delete list etc, but I guess I don't really need to store KeyValues can
> have some
> other format. Will think about it.
>
>
Re: [jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by Erik Holstad <er...@gmail.com>.
Yeah, that sounds ok.
I'm not changing the values in the storefiles but just making keyValues to
store in
the delete list etc, but I guess I don't really need to store KeyValues can
have some
other format. Will think about it.
Re: [jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by Ryan Rawson <ry...@gmail.com>.
It's not that easy to make a kv 'mutable' - its storage backing may be in an
"immutable" store, and requiring mutability would require copy-on-write
semantics. Perhaps we need a sort of read/write KV - a subclass perhaps?
On Tue, Mar 24, 2009 at 12:39 PM, Erik Holstad <er...@gmail.com>wrote:
> Hey Stack!
> I would like for KeyValue to not be immutable unless there is a good reason
> for it.
> When comparing kvs to get towards the kvs in the delete list it is very
> nice
> to be able
> to not create a new KeyValue for every delete but just reassign to one
> instance.
>
Re: [jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by Erik Holstad <er...@gmail.com>.
Hey Stack!
I would like for KeyValue to not be immutable unless there is a good reason
for it.
When comparing kvs to get towards the kvs in the delete list it is very nice
to be able
to not create a new KeyValue for every delete but just reassign to one
instance.
Re: [jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by Erik Holstad <er...@gmail.com>.
Thinking about it some more, but mostly using the current format in action I
have found
that the current structure with the type last in the key is nice cause it
only takes one read
from the KeyValue to get to the type, which is sometimes the first thing you
want to check.
On Sat, Mar 21, 2009 at 9:21 AM, Erik Holstad (JIRA) <ji...@apache.org>wrote:
>
> [
> https://issues.apache.org/jira/browse/HBASE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688054#action_12688054]
>
> Erik Holstad commented on HBASE-1234:
> -------------------------------------
>
> Hey Stack!
> Just want to ask how much work it would be to change the format to
> r/f/type/col/ts? Since it seems to be the best way to use it over at the
> server.
> I also want to let you know how we are going to use KeyValue in the new get
> implementations. We are most likely only going to use the standard
> byte comparator from Bytes and some constructors to create KeyValue, so no
> fancy gets and stuff are needed over at this end.
>
>
> > Change HBase StoreKey format
> > ----------------------------
> >
> > Key: HBASE-1234
> > URL: https://issues.apache.org/jira/browse/HBASE-1234
> > Project: Hadoop HBase
> > Issue Type: Improvement
> > Reporter: stack
> > Assignee: stack
> > Fix For: 0.20.0
> >
> > Attachments: 1234-v2.patch, 1234.patch
> >
> >
> > HBASE-859 cleaned up keys removing the need of HRegionInfo being in the
> context comparing keys. This issue is about changing the format. Work done
> in HBASE-859 means changes have been localized to HStoreKey, in particular
> to comparators and parse routines. We should do this now since 0.20.0 will
> require rewriting all data.
> > Things to consider:
> > <row> <columnfamily> <columnqualifier> <timestamp> <keytype>
> > Or leave off columnfamily altogether and just write it once into the
> hfile metadata (All key compares are done in the Store context so
> columnfamily can be safely left out of the equation; its only when the key
> rises above Store that the columnfamily needs appending).
> > keytype is probably a byte. Types are delete cell, delete row, delete
> family, delete column? What else? Where should we put it? At the end?
> How should type sort? Or should it not be part of sort so its just the
> order at which we encounter the key?
> > How are we going to support keys that go in out of chronological order?
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
[jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689075#action_12689075 ]
stack commented on HBASE-1234:
------------------------------
On, change of the key format, not hard. Not at the moment anyways before commit.
Why you think your suggested key format better? Seems like timestamp sort should prevail in all cases except maybe in case where we're doing a family delete (family deletes could have a zero qualifier so they sort first rather than change key format?)
Regards comparators, you'll need to use the right one dependent on context. Byte comparator won't work if its a catalog table key.
I already changed KV to use Constructors rather than static creator methods (this I did I think after you wrote above comment).
Thanks Erik
> Change HBase StoreKey format
> ----------------------------
>
> Key: HBASE-1234
> URL: https://issues.apache.org/jira/browse/HBASE-1234
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
> Attachments: 1234-v2.patch, 1234.patch
>
>
> HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.
> Things to consider:
> <row> <columnfamily> <columnqualifier> <timestamp> <keytype>
> Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).
> keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?
> How are we going to support keys that go in out of chronological order?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679784#action_12679784 ]
stack commented on HBASE-1234:
------------------------------
Here is URL for github: http://github.com/ryanobjc/hbase/tree/stack
> Change HBase StoreKey format
> ----------------------------
>
> Key: HBASE-1234
> URL: https://issues.apache.org/jira/browse/HBASE-1234
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
>
> HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.
> Things to consider:
> <row> <columnfamily> <columnqualifier> <timestamp> <keytype>
> Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).
> keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?
> How are we going to support keys that go in out of chronological order?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HBASE-1234) Change HBase StoreKey format
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack reassigned HBASE-1234:
----------------------------
Assignee: stack
> Change HBase StoreKey format
> ----------------------------
>
> Key: HBASE-1234
> URL: https://issues.apache.org/jira/browse/HBASE-1234
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
>
> HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.
> Things to consider:
> <row> <columnfamily> <columnqualifier> <timestamp> <keytype>
> Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).
> keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?
> How are we going to support keys that go in out of chronological order?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12683225#action_12683225 ]
stack commented on HBASE-1234:
------------------------------
Things to do other than make all tests run:
Sizes for memory have to be redone for things like KV and Memcache (but should be easier now with things like the sizeof tool).
revisit how deletes work -- this is in-process at the moment (I removed the DeleteRow in last patch because as Erik Holstad pointed out, at least inside in a StoreFile or in Memcache, it means nothing).
Need to talk to Clint Morgan. He might want to change his transactional types to use the new Key Type field.
> Change HBase StoreKey format
> ----------------------------
>
> Key: HBASE-1234
> URL: https://issues.apache.org/jira/browse/HBASE-1234
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
> Attachments: 1234-v2.patch, 1234.patch
>
>
> HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.
> Things to consider:
> <row> <columnfamily> <columnqualifier> <timestamp> <keytype>
> Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).
> keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?
> How are we going to support keys that go in out of chronological order?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678592#action_12678592 ]
stack commented on HBASE-1234:
------------------------------
Chatting w/ lads at HUG6 -- in particular jgray, holstad, jimk, ryan, travis -- we came up w/ following proposed format:
{code}<int1><int2><int3><row><columnfamily><columnqualifier><timestamp><type>{code}
int1 is the length of row, 2 bytes
int2 is length of columnfamily, 1 byte
int3 is length of columnqualifier, 2 bytes
The ints above are plain ints, not vints
The type is a single byte. Types are update, cell delete, column delete, column family delete, row delete and possibly counter.
> Change HBase StoreKey format
> ----------------------------
>
> Key: HBASE-1234
> URL: https://issues.apache.org/jira/browse/HBASE-1234
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
>
> HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.
> Things to consider:
> <row> <columnfamily> <columnqualifier> <timestamp> <keytype>
> Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).
> keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?
> How are we going to support keys that go in out of chronological order?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-1234) Change HBase StoreKey format
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack updated HBASE-1234:
-------------------------
Attachment: 1234-v5.patch
Latest version. Patch made against latest up on git://jukka.zitting.name/hbase.git. Pushed to http://github.com/ryanobjc/hbase/tree/stack. More tests pass; e.g. TestHRegion. Redid guts of Scanners so we only get # of versions wanted and so we deal with KeyValue (deletes were not crossing over from Memcache to Storefiles as it used work).
> Change HBase StoreKey format
> ----------------------------
>
> Key: HBASE-1234
> URL: https://issues.apache.org/jira/browse/HBASE-1234
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
> Attachments: 1234-v2.patch, 1234-v5.patch, 1234.patch
>
>
> HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.
> Things to consider:
> <row> <columnfamily> <columnqualifier> <timestamp> <keytype>
> Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).
> keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?
> How are we going to support keys that go in out of chronological order?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-1234) Change HBase StoreKey format
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack updated HBASE-1234:
-------------------------
Attachment: 1234.patch
First cut at a patch. Still has issues and tests don't pass yet. Ryan Rawson and Jon Gray contributed to this patch.
Here are notes on whats there so far:
{code}
Removing HStoreKey (Still present but will be deprecated). Added in its stead,
KeyValue. KeyValue is a wrapper around a byte array, offset and length.
KeyValue has comparators that do byte array compares cognizant of our whacky
meta and root key formats.
M b/src/java/org/apache/hadoop/hbase/HRegionInfo.java
(getComparator): Added. Returns the comparator to use switching off
the HRegionInfo type.
M b/src/java/org/apache/hadoop/hbase/HTableDescriptor.java
Use new families comparator. Should save us on getting of family
delimiter, then comparing up to the family delimiter only.
A b/src/java/org/apache/hadoop/hbase/KeyValue.java
Effectively the new Key. Key format has changed too to introduce
Key Type. See class comment for detail on new format.
Mostly a bunch of static creates and utility making KeyValues.
Comparators have stuff like compareRow, matchingRow, etc. Use
the comparator to do stuff we used to do on the fly in past.
Has stuf for getting row, column and timestamp offsets and lengths
so we don't have to copy. Comparators also take offset and lengths
so can compare without copying.
M b/src/java/org/apache/hadoop/hbase/filter/RowFilterInterface.java
Added overrides that take offset and length and deprecated old methods.
M b/src/java/org/apache/hadoop/hbase/io/Cell.java
M b/src/java/org/apache/hadoop/hbase/io/RowResult.java
Added utility methods to go from KeyValue Lists, etc., to Maps of
column to Cells. This is the stuff we'd remove when the client/server
API changes. These will be hotspots when we profile. Did it for Cells
and RowResults.
M b/src/java/org/apache/hadoop/hbase/io/HalfHFileReader.java
Bring over HalfHFileReader to use KeyValue.
M b/src/java/org/apache/hadoop/hbase/io/hfile/HFile.java
M b/src/java/org/apache/hadoop/hbase/io/hfile/HFileScanner.java
Changes by Ryan to bring hfile over to KeyValue.
M b/src/java/org/apache/hadoop/hbase/regionserver/HAbstractScanner.java
Convert to KeyValue. Make column match take a KeyValue so don't have
to copy column out to compare it.
M b/src/java/org/apache/hadoop/hbase/regionserver/HLog.java
Convert HLog over to KeyValue.
M b/src/java/org/apache/hadoop/hbase/regionserver/HLogEdit.java
Redo an edit. Make the value a KeyValue. Move row out of key.
We should redo log file so its hfile.
M b/src/java/org/apache/hadoop/hbase/regionserver/HLogKey.java
Format has changed. Moved out row.
M b/src/java/org/apache/hadoop/hbase/regionserver/HRegion.java
Use KeyValue. Return lists of them rather than MapWritables and
Cell []. Use comparators. Added new Counter class. Needed in
getFull to keep up running list of versions (fixed bugs in here,
particularly in memcache where we were doing the count all wrong).
Added utility function to help with getFull; okToAddResult, addResult,
hasEnoughVersions. Cleanup. We were doing things like checking
for read only in two methods; parent check was enough.
Removed all of that localput stuff -- it was weird. May have made
sense once (prompted by jgray).
M b/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
Bring over to new regime. In here we do some of the conversions from
new style list of KeyValue to old style RowResult.
M b/src/java/org/apache/hadoop/hbase/regionserver/InternalScanner.java
Comvert to KeyValue.
M b/src/java/org/apache/hadoop/hbase/regionserver/Memcache.java
Redo as a Set of KeyValues. Use ConcurrentSkipListSet so can
undo all synchronization. Means that iterators no longer fail
fast but I think thats fine -- you get view on data at time
Iterator was taken out.
M b/src/java/org/apache/hadoop/hbase/regionserver/Store.java
Move over to KeyValue. Bunch of refactoring to make it work.
M b/src/java/org/apache/hadoop/hbase/regionserver/StoreFile.java
Move over to KeyValue.
M b/src/java/org/apache/hadoop/hbase/regionserver/StoreFileScanner.java
Move over to KeyValue. Removed ViableRow class. Not needed any
more it looks like.
M b/src/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java
Move over to KeyValue.
M b/src/java/org/apache/hadoop/hbase/util/Bytes.java
Fix SIZEOF_BYTES. Added facility. Most in here was done by jgray,
in particular the stuff that provides ByteBuffer facility such as
putInt, putLong, etc. Ryan added the binarySearch of byte array,
offset, and length tuples.
M b/src/java/org/apache/hadoop/hbase/util/MetaUtils.java
M b/src/java/org/apache/hadoop/hbase/util/Merge.java
Still to do.
A b/src/test/org/apache/hadoop/hbase/TestKeyValue.java
Test for keyvalue.
M b/src/test/org/apache/hadoop/hbase/io/hfile/TestSeekTo.java
Mods for changes in HFile.
M b/src/test/org/apache/hadoop/hbase/regionserver/TestHMemcache.java
Fixup of tests for Memcache.
M b/src/test/org/apache/hadoop/hbase/util/TestBytes.java
Tests for Bytes.
{code}
> Change HBase StoreKey format
> ----------------------------
>
> Key: HBASE-1234
> URL: https://issues.apache.org/jira/browse/HBASE-1234
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
> Attachments: 1234.patch
>
>
> HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.
> Things to consider:
> <row> <columnfamily> <columnqualifier> <timestamp> <keytype>
> Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).
> keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?
> How are we going to support keys that go in out of chronological order?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by "Erik Holstad (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688054#action_12688054 ]
Erik Holstad commented on HBASE-1234:
-------------------------------------
Hey Stack!
Just want to ask how much work it would be to change the format to r/f/type/col/ts? Since it seems to be the best way to use it over at the server.
I also want to let you know how we are going to use KeyValue in the new get implementations. We are most likely only going to use the standard
byte comparator from Bytes and some constructors to create KeyValue, so no fancy gets and stuff are needed over at this end.
> Change HBase StoreKey format
> ----------------------------
>
> Key: HBASE-1234
> URL: https://issues.apache.org/jira/browse/HBASE-1234
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
> Attachments: 1234-v2.patch, 1234.patch
>
>
> HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.
> Things to consider:
> <row> <columnfamily> <columnqualifier> <timestamp> <keytype>
> Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).
> keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?
> How are we going to support keys that go in out of chronological order?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by "Erik Holstad (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680949#action_12680949 ]
Erik Holstad commented on HBASE-1234:
-------------------------------------
Looking at the implementation of the KeyValue.java , we are not using any of the ByteBuffer specific features that
comes with the overhead of that object. Following the discussion on the IRC I've seen that other people share
the same view.
Would really just want to have the byte[] and an offset to it that would be passed around, that would mean going
from 56 to 12 B of overhead. Taking into consideration that we need an object to be able to store in the the cache
if we want to use maps, which seems reasonable, I think that having a smaller custom object that would include:
ArrayPtr(8B) + offset+length(8B) + object overhead(16B) = 32B is the best way to go at this point.
> Change HBase StoreKey format
> ----------------------------
>
> Key: HBASE-1234
> URL: https://issues.apache.org/jira/browse/HBASE-1234
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
>
> HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.
> Things to consider:
> <row> <columnfamily> <columnqualifier> <timestamp> <keytype>
> Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).
> keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?
> How are we going to support keys that go in out of chronological order?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-1234) Change HBase StoreKey format
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack updated HBASE-1234:
-------------------------
Attachment: hbase-1234-v7.patch
v7 fixes most tests but also disables filter tests, compaction, thrift, and atomic increment unit tests because these do not pass yet.
Here are notes on changes.
{code}
Disabled the filter tests. Filter interface has changed. Filters need
to be updated. Will do in separate issue.
Disabled TestAtomicIncrement. Will fix in separate issue.
Disabled TestCompaction and the thrift unit tests.
M b/src/java/org/apache/hadoop/hbase/HMerge.java
Update to deal with results that are List<KeyValue>
M b/src/java/org/apache/hadoop/hbase/HRegionInfo.java
(getComparator) Added.
M b/src/java/org/apache/hadoop/hbase/HStoreKey.java
Deprecated.
M b/src/java/org/apache/hadoop/hbase/HTableDescriptor.java
Changed map of families. No longer do we do encoding of
family name. Instead we do a special comparator, one
that compares only the family portion of the column
name.
A b/src/java/org/apache/hadoop/hbase/KeyValue.java
KeyValue does what HStoreKey used to.
M b/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java
Fixed comments.
M b/src/java/org/apache/hadoop/hbase/client/MetaScanner.java
Formatting.
M b/src/java/org/apache/hadoop/hbase/filter/ColumnValueFilter.java
M b/src/java/org/apache/hadoop/hbase/filter/PageRowFilter.java
M b/src/java/org/apache/hadoop/hbase/filter/PrefixRowFilter.java
M b/src/java/org/apache/hadoop/hbase/filter/RegExpRowFilter.java
M b/src/java/org/apache/hadoop/hbase/filter/RowFilterInterface.java
M b/src/java/org/apache/hadoop/hbase/filter/RowFilterSet.java
M b/src/java/org/apache/hadoop/hbase/filter/StopRowFilter.java
M b/src/java/org/apache/hadoop/hbase/filter/WhileMatchRowFilter.java
Filter interface changed; now we take buffer with offset and
length. Deprecated the old. Filters not finished. Need work.
M b/src/java/org/apache/hadoop/hbase/io/Cell.java
(createCells): Added. Method that converts List<KeyValue> to Cells.
This method should be temporary... should go away eventually.
(createSingleCellArray): Added. Temporary method.
M b/src/java/org/apache/hadoop/hbase/io/HalfHFileReader.java
Updated to deal with KeyValue keys.
M b/src/java/org/apache/hadoop/hbase/io/HbaseMapWritable.java
Formatting.
M b/src/java/org/apache/hadoop/hbase/io/Reference.java
Deal with KeyValue keys.
M b/src/java/org/apache/hadoop/hbase/io/RowResult.java
(createRowResultArray, createRowResult): Temporary convertion
methods to go from List<KeyValue> to RowResult.
M b/src/java/org/apache/hadoop/hbase/io/hfile/HFile.java
Add method that takes a KeyValue. Add methods that
take buffer + offset + length (rather than just buffer).
M b/src/java/org/apache/hadoop/hbase/io/hfile/HFileScanner.java
Add methods that take buffer + offset + length (rather than just buffer).
M b/src/java/org/apache/hadoop/hbase/master/BaseScanner.java
Redo. Deal with KeyValue.
M b/src/java/org/apache/hadoop/hbase/regionserver/HLog.java
Deal with KeyValue. Move the row component from Key to edit value.
M b/src/java/org/apache/hadoop/hbase/regionserver/HLogEdit.java
Removed extaneous isDeleted stuff -- stuff that no longer applies
now delete is attribute of key rather than special cell value.
Add handling of KeyValue.
M b/src/java/org/apache/hadoop/hbase/regionserver/HLogKey.java
HLK no longer has row in it.
M b/src/java/org/apache/hadoop/hbase/regionserver/HRegion.java
Use skip list for Set of stores. No need of sync when iterating.
Use new comparators checking row and row+column matches.
Add in new methods to check version count and to not add values
Add in new methods to check version count and to not add values
already present in results. Add handling of KeyValue.
(getKeys): Removed. Doesn't make sense now key and value
bundled up together.
M b/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
Use new comparators. Deal with KeyValue.
M b/src/java/org/apache/hadoop/hbase/regionserver/InternalScanner.java
Change interface to take KeyValue.
M b/src/java/org/apache/hadoop/hbase/regionserver/Memcache.java
Deal in KeyValue. Use SkipList so don't have to lock to iterate tailsets.
Renamed internalGetFull as getFull. Removed getKeys. Use getFull
instead.
M b/src/java/org/apache/hadoop/hbase/regionserver/Store.java
Deal with KeyValue. Use new comparators.
Use skip lists for reconstruction cache, etc.
Make body of getFull and get agree with whats in Memcache -- call same
methods. Remove getKeys. Do getFull instead (Did same thing).
Remove methods like rowMatches and matching columns and use
comparators instead.
M b/src/java/org/apache/hadoop/hbase/regionserver/StoreFile.java
M b/src/java/org/apache/hadoop/hbase/regionserver/StoreFileScanner.java
M b/src/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java
Removed HSK. Use KV instead.
M b/src/java/org/apache/hadoop/hbase/regionserver/tableindexed/IndexedRegion.java
M b/src/java/org/apache/hadoop/hbase/regionserver/transactional/TransactionalHLogManager.java
M b/src/java/org/apache/hadoop/hbase/regionserver/transactional/TransactionalRegion.java
M b/src/java/org/apache/hadoop/hbase/regionserver/transactional/TransactionalRegionServer.java
Use KeyValue instead. Changes to agree with base class changes.
M b/src/java/org/apache/hadoop/hbase/util/Bytes.java
Add license. Some bug fixes and added methods (By Jon Gray), methods to
do ByteBuffer stuff.
M b/src/java/org/apache/hadoop/hbase/util/Merge.java
M b/src/java/org/apache/hadoop/hbase/util/MetaUtils.java
Update to KeyValue.
D b/src/java/org/apache/hadoop/hbase/util/TestBytes.java
Removed.
M b/src/test/org/apache/hadoop/hbase/HBaseTestCase.java
Updates to deal with KeyValue changes.
A b/src/test/org/apache/hadoop/hbase/TestKeyValue.java
New test for KeyValue.
> Change HBase StoreKey format
> ----------------------------
>
> Key: HBASE-1234
> URL: https://issues.apache.org/jira/browse/HBASE-1234
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
> Attachments: 1234-v2.patch, 1234-v5.patch, 1234.patch, hbase-1234-v6.patch, hbase-1234-v7.patch
>
>
> HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.
> Things to consider:
> <row> <columnfamily> <columnqualifier> <timestamp> <keytype>
> Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).
> keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?
> How are we going to support keys that go in out of chronological order?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-1234) Change HBase StoreKey format
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack updated HBASE-1234:
-------------------------
Attachment: 1234-v2.patch
In v2, all compiles now. Next, I need to do tests.
This patch actually deprecates HSK.
KeyValue.KVComparators now have a RawComparator<byte []> that can do the Key portion only. We needed these mostly so we could talk about RawComparator only in hfile without having to have it know all about KeyValue Comparators.
I cleaned up KeyValue some. Removes all the KV.create and made constructors instead. Seemed cleaner than sometimes static create and others a constructor.
Filter interface has changed to you pass byte array, offset, and row tuples instead of just a byte array.
> Change HBase StoreKey format
> ----------------------------
>
> Key: HBASE-1234
> URL: https://issues.apache.org/jira/browse/HBASE-1234
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
> Attachments: 1234-v2.patch, 1234.patch
>
>
> HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.
> Things to consider:
> <row> <columnfamily> <columnqualifier> <timestamp> <keytype>
> Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).
> keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?
> How are we going to support keys that go in out of chronological order?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-1234) Change HBase StoreKey format
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack updated HBASE-1234:
-------------------------
Attachment: hbase-1234-v6.patch
About two unit tests left to pass.
This patch removes getKeys -- mechanism we used to have for getting all keys so we could add deletes. Uses getFull instead (getKeys was doing effectively what getFull does anyways). Bunch of work also making memcache gets and getFulls and storefile gets and getFulls use same code.
> Change HBase StoreKey format
> ----------------------------
>
> Key: HBASE-1234
> URL: https://issues.apache.org/jira/browse/HBASE-1234
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
> Attachments: 1234-v2.patch, 1234-v5.patch, 1234.patch, hbase-1234-v6.patch
>
>
> HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.
> Things to consider:
> <row> <columnfamily> <columnqualifier> <timestamp> <keytype>
> Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).
> keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?
> How are we going to support keys that go in out of chronological order?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680951#action_12680951 ]
stack commented on HBASE-1234:
------------------------------
I agree. Let me make KeyValue into a class. Will talk to ryan about whats involved getting a KeyValue instance up out of hfile.
> Change HBase StoreKey format
> ----------------------------
>
> Key: HBASE-1234
> URL: https://issues.apache.org/jira/browse/HBASE-1234
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
>
> HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.
> Things to consider:
> <row> <columnfamily> <columnqualifier> <timestamp> <keytype>
> Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).
> keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?
> How are we going to support keys that go in out of chronological order?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HBASE-1234) Change HBase StoreKey format
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack resolved HBASE-1234.
--------------------------
Resolution: Fixed
Committed v7.
Made issues to address outstanding unit tests broken (disabled) as part of v7 commit.
> Change HBase StoreKey format
> ----------------------------
>
> Key: HBASE-1234
> URL: https://issues.apache.org/jira/browse/HBASE-1234
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
> Attachments: 1234-v2.patch, 1234-v5.patch, 1234.patch, hbase-1234-v6.patch, hbase-1234-v7.patch
>
>
> HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.
> Things to consider:
> <row> <columnfamily> <columnqualifier> <timestamp> <keytype>
> Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).
> keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?
> How are we going to support keys that go in out of chronological order?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HBASE-1234) Change HBase StoreKey format
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679782#action_12679782 ]
stack commented on HBASE-1234:
------------------------------
Doing new key format as part of the move from HStoreKey to KeyValue (Need to make an issue). Being done over on github in the stack branch on hbase.
> Change HBase StoreKey format
> ----------------------------
>
> Key: HBASE-1234
> URL: https://issues.apache.org/jira/browse/HBASE-1234
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: stack
> Assignee: stack
> Fix For: 0.20.0
>
>
> HBASE-859 cleaned up keys removing the need of HRegionInfo being in the context comparing keys. This issue is about changing the format. Work done in HBASE-859 means changes have been localized to HStoreKey, in particular to comparators and parse routines. We should do this now since 0.20.0 will require rewriting all data.
> Things to consider:
> <row> <columnfamily> <columnqualifier> <timestamp> <keytype>
> Or leave off columnfamily altogether and just write it once into the hfile metadata (All key compares are done in the Store context so columnfamily can be safely left out of the equation; its only when the key rises above Store that the columnfamily needs appending).
> keytype is probably a byte. Types are delete cell, delete row, delete family, delete column? What else? Where should we put it? At the end? How should type sort? Or should it not be part of sort so its just the order at which we encounter the key?
> How are we going to support keys that go in out of chronological order?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.