[ 
https://issues.apache.org/jira/browse/HBASE-4010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13054109#comment-13054109
 ] 

Ted Yu commented on HBASE-4010:
-------------------------------

I apologize for presenting incorrect performance data.

The 37 second was for a 0.90.3 cluster which had run for a while.
The 32 second was for a 0.90.4 cluster started fresh without 4010-0.90.txt 
applied - I copied the correct hbase-0.90.4-SNAPSHOT.jar but forgot to rename 
it.

So I started the cluster with the hbase-0.90.4-SNAPSHOT.jar which has 
4010-0.90.txt applied
I created two tables with 1000 regions. The first took 16 seconds and the 
second took 15 seconds.

> HMaster.createTable could be heavily optimized
> ----------------------------------------------
>
>                 Key: HBASE-4010
>                 URL: https://issues.apache.org/jira/browse/HBASE-4010
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 0.90.3
>            Reporter: Jean-Daniel Cryans
>            Assignee: Ted Yu
>             Fix For: 0.92.0
>
>         Attachments: 4010-0.90.txt, 4010-v2.txt, 4010-v3.txt, 4010-v5.txt
>
>
> Looking at the createTable method in HMaster (the one that's private), we 
> seem to be very inefficient:
>  - We set the enabled flag for the table for every region (should be done 
> only once).
>  - Every time we create a new region we create a new HLog and then close it 
> (reuse one instead or see if it's really necessary).
>  - We do one RPC to .META. per region (we should batch put).
> This should provide drastic speedups even for those creating tables with just 
> 50 regions.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to