You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Mikael Sitruk (Created) (JIRA)" <ji...@apache.org> on 2011/11/30 11:47:40 UTC

[jira] [Created] (HBASE-4902) invalid end key shown in hbase web ui.

invalid end key shown in hbase web ui.
--------------------------------------

                 Key: HBASE-4902
                 URL: https://issues.apache.org/jira/browse/HBASE-4902
             Project: HBase
          Issue Type: Bug
    Affects Versions: 0.90.2
            Reporter: Mikael Sitruk


i have 13 millions keys, I use presplit of 1000 regions.
while looking at the regions created, i see 

Region Name : TC,sub_10386999,1322603111143.5b36001298f3dab177edf3a7265c628a.
Start Key: sub_10386999
End Key:   sub_103999 

That is instead sub_10386999 + 13000 = sub_10399999 the ui will only show sub_1039999 (missing last 9 digit)
It occurs in several place in different region
for another key also:
Start: sub_4406999
End:   sub_441999
instead of sub_4419999



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4902) invalid end key shown in hbase web ui.

Posted by "Jean-Daniel Cryans (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160228#comment-13160228 ] 

Jean-Daniel Cryans commented on HBASE-4902:
-------------------------------------------

So how did you pre-create your regions exactly?
                
> invalid end key shown in hbase web ui.
> --------------------------------------
>
>                 Key: HBASE-4902
>                 URL: https://issues.apache.org/jira/browse/HBASE-4902
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.2
>            Reporter: Mikael Sitruk
>
> i have 13 millions keys, I use presplit of 1000 regions.
> while looking at the regions created, i see 
> Region Name : TC,sub_10386999,1322603111143.5b36001298f3dab177edf3a7265c628a.
> Start Key: sub_10386999
> End Key:   sub_103999 
> That is instead sub_10386999 + 13000 = sub_10399999 the ui will only show sub_1039999 (missing last 9 digit)
> It occurs in several place in different region
> for another key also:
> Start: sub_4406999
> End:   sub_441999
> instead of sub_4419999

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HBASE-4902) invalid end key shown in hbase web ui.

Posted by "Mikael Sitruk (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160368#comment-13160368 ] 

Mikael Sitruk commented on HBASE-4902:
--------------------------------------

In the following way
    // assume that we get maxRange and presplitNumber as parameters
    // in our case 13000000 and 1000 respectively
    long delta = maxRange / m_presplitNumber;

    long currentValue = 0;

    byte[][] splits = new byte[m_presplitNumber - 1][];

    for (int index = 0; index < splits.length; ++index)
    {
      currentValue += delta;
      String key = keyPrefix + (currentValue - 1);

      m_logger.info(String.format("split for key %s\n", key));

      splits[index] = key.getBytes();
    }
    return splits;

Then i call 
hba.createTable(htableDesc, splits);


Into the log i have: 
...
...
11/11/29 23:45:11 INFO db.HBaseSchemaManager: split for key sub_10373999

11/11/29 23:45:11 INFO db.HBaseSchemaManager: split for key sub_10386999

11/11/29 23:45:11 INFO db.HBaseSchemaManager: split for key sub_10399999

11/11/29 23:45:11 INFO db.HBaseSchemaManager: split for key sub_10412999

11/11/29 23:45:11 INFO db.HBaseSchemaManager: split for key sub_10425999

11/11/29 23:45:11 INFO db.HBaseSchemaManager: split for key sub_10438999

11/11/29 23:45:11 INFO db.HBaseSchemaManager: split for key sub_10451999

11/11/29 23:45:11 INFO db.HBaseSchemaManager: split for key sub_10464999
...
...

Mikael.S
                
> invalid end key shown in hbase web ui.
> --------------------------------------
>
>                 Key: HBASE-4902
>                 URL: https://issues.apache.org/jira/browse/HBASE-4902
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.2
>            Reporter: Mikael Sitruk
>
> i have 13 millions keys, I use presplit of 1000 regions.
> while looking at the regions created, i see 
> Region Name : TC,sub_10386999,1322603111143.5b36001298f3dab177edf3a7265c628a.
> Start Key: sub_10386999
> End Key:   sub_103999 
> That is instead sub_10386999 + 13000 = sub_10399999 the ui will only show sub_1039999 (missing last 9 digit)
> It occurs in several place in different region
> for another key also:
> Start: sub_4406999
> End:   sub_441999
> instead of sub_4419999

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira