[jira] [Updated] (HBASE-25281) Bulkload split hfile too many times due to unreasonable split point

2020-11-21 Thread niuyulin (Jira)


 [ 
https://issues.apache.org/jira/browse/HBASE-25281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

niuyulin updated HBASE-25281:
-
Description: 
[https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/BulkLoadHFilesTool.java#L688]

if hfile span multi regions, for example A,B,C,D,E,F(the start key of these 
regions are in ascending order), we should use region C endkey to split, not 
region A. In this way, we can get equal .top and .bottom hfiles, reduce time 
complexity of split from O( n ) to O(logn),decrease invoke of {{bulkLoad}} rpc 
to regionserver ,and also avoid write amplification during {{copyHFileHalf}}

  was:
[https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/BulkLoadHFilesTool.java#L688]

if hfile span multi regions, for example A,B,C,D,E,F(the start key of these 
regions are in ascending order), we should use region C endkey to split, not 
region A. In this way, we can get equal .top and .bottom hfiles, reduce time 
complexity of split from O(n) to O(logn),decrease invoke of {{bulkLoad}} rpc to 
regionserver ,and also avoid write amplification during {{copyHFileHalf}}


> Bulkload split hfile too many times due to unreasonable split point
> ---
>
> Key: HBASE-25281
> URL: https://issues.apache.org/jira/browse/HBASE-25281
> Project: HBase
>  Issue Type: Improvement
>  Components: tooling
>Reporter: niuyulin
>Assignee: niuyulin
>Priority: Minor
> Attachments: bulkload.png
>
>
> [https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/BulkLoadHFilesTool.java#L688]
> if hfile span multi regions, for example A,B,C,D,E,F(the start key of these 
> regions are in ascending order), we should use region C endkey to split, not 
> region A. In this way, we can get equal .top and .bottom hfiles, reduce time 
> complexity of split from O( n ) to O(logn),decrease invoke of {{bulkLoad}} 
> rpc to regionserver ,and also avoid write amplification during 
> {{copyHFileHalf}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (HBASE-25281) Bulkload split hfile too many times due to unreasonable split point

2020-11-21 Thread niuyulin (Jira)


 [ 
https://issues.apache.org/jira/browse/HBASE-25281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

niuyulin updated HBASE-25281:
-
Description: 
[https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/BulkLoadHFilesTool.java#L688]

if hfile span multi regions, for example A,B,C,D,E,F(the start key of these 
regions are in ascending order), we should use region C endkey to split, not 
region A. In this way, we can get equal .top and .bottom hfiles, reduce time 
complexity of split from O(n) to O(logn),decrease invoke of {{bulkLoad}} rpc to 
regionserver ,and also avoid write amplification during {{copyHFileHalf}}

  was:
[https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/BulkLoadHFilesTool.java#L688]

the split point is not in middle, If the hfile span N regions, we need split 
N-1 times now


> Bulkload split hfile too many times due to unreasonable split point
> ---
>
> Key: HBASE-25281
> URL: https://issues.apache.org/jira/browse/HBASE-25281
> Project: HBase
>  Issue Type: Improvement
>  Components: tooling
>Reporter: niuyulin
>Assignee: niuyulin
>Priority: Minor
> Attachments: bulkload.png
>
>
> [https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/BulkLoadHFilesTool.java#L688]
> if hfile span multi regions, for example A,B,C,D,E,F(the start key of these 
> regions are in ascending order), we should use region C endkey to split, not 
> region A. In this way, we can get equal .top and .bottom hfiles, reduce time 
> complexity of split from O(n) to O(logn),decrease invoke of {{bulkLoad}} rpc 
> to regionserver ,and also avoid write amplification during {{copyHFileHalf}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (HBASE-25281) Bulkload split hfile too many times due to unreasonable split point

2020-11-21 Thread niuyulin (Jira)


 [ 
https://issues.apache.org/jira/browse/HBASE-25281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

niuyulin updated HBASE-25281:
-
Description: 
[https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/BulkLoadHFilesTool.java#L688]

if hfile span multi regions, for example A,B,C,D,E,F(the start key of these 
regions are in ascending order), we should use region C endkey to split, not 
region A. In this way, we can get equal .top and .bottom hfiles, reduce time 
complexity of split from O(n) to O(logn),decrease invoke of {{bulkLoad}} rpc to 
regionserver ,and also avoid write amplification during {{copyHFileHalf}}

  was:
[https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/BulkLoadHFilesTool.java#L688]

if hfile span multi regions, for example A,B,C,D,E,F(the start key of these 
regions are in ascending order), we should use region C endkey to split, not 
region A. In this way, we can get equal .top and .bottom hfiles, reduce time 
complexity of split from O(n) to O(logn),decrease invoke of {{bulkLoad}} rpc to 
regionserver ,and also avoid write amplification during {{copyHFileHalf}}


> Bulkload split hfile too many times due to unreasonable split point
> ---
>
> Key: HBASE-25281
> URL: https://issues.apache.org/jira/browse/HBASE-25281
> Project: HBase
>  Issue Type: Improvement
>  Components: tooling
>Reporter: niuyulin
>Assignee: niuyulin
>Priority: Minor
> Attachments: bulkload.png
>
>
> [https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/BulkLoadHFilesTool.java#L688]
> if hfile span multi regions, for example A,B,C,D,E,F(the start key of these 
> regions are in ascending order), we should use region C endkey to split, not 
> region A. In this way, we can get equal .top and .bottom hfiles, reduce time 
> complexity of split from O(n) to O(logn),decrease invoke of {{bulkLoad}} rpc 
> to regionserver ,and also avoid write amplification during {{copyHFileHalf}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (HBASE-25281) Bulkload split hfile too many times due to unreasonable split point

2020-11-12 Thread niuyulin (Jira)


 [ 
https://issues.apache.org/jira/browse/HBASE-25281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

niuyulin updated HBASE-25281:
-
Component/s: tooling

> Bulkload split hfile too many times due to unreasonable split point
> ---
>
> Key: HBASE-25281
> URL: https://issues.apache.org/jira/browse/HBASE-25281
> Project: HBase
>  Issue Type: Improvement
>  Components: tooling
>Reporter: niuyulin
>Assignee: niuyulin
>Priority: Minor
> Attachments: bulkload.png
>
>
> [https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/BulkLoadHFilesTool.java#L688]
> the split point is not in middle, If the hfile span N regions, we need split 
> N-1 times now



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (HBASE-25281) Bulkload split hfile too many times due to unreasonable split point

2020-11-12 Thread niuyulin (Jira)


 [ 
https://issues.apache.org/jira/browse/HBASE-25281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

niuyulin updated HBASE-25281:
-
Attachment: bulkload.png

> Bulkload split hfile too many times due to unreasonable split point
> ---
>
> Key: HBASE-25281
> URL: https://issues.apache.org/jira/browse/HBASE-25281
> Project: HBase
>  Issue Type: Improvement
>Reporter: niuyulin
>Assignee: niuyulin
>Priority: Minor
> Attachments: bulkload.png
>
>
> [https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/BulkLoadHFilesTool.java#L688]
> the split point is not in middle, If the hfile span N regions, we need split 
> N-1 times now



--
This message was sent by Atlassian Jira
(v8.3.4#803005)