You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ma...@apache.org on 2015/09/29 08:02:21 UTC
incubator-kylin git commit: change magic to 13 so that more cuboid
will span 2 regions
Repository: incubator-kylin
Updated Branches:
refs/heads/KYLIN-942 e8182fdd8 -> 9cb08e9a2
change magic to 13 so that more cuboid will span 2 regions
Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/9cb08e9a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/9cb08e9a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/9cb08e9a
Branch: refs/heads/KYLIN-942
Commit: 9cb08e9a220ebc802e593dc4c4212243b851ad66
Parents: e8182fd
Author: honma <ho...@ebay.com>
Authored: Tue Sep 29 14:05:30 2015 +0800
Committer: honma <ho...@ebay.com>
Committed: Tue Sep 29 14:05:30 2015 +0800
----------------------------------------------------------------------
.../java/org/apache/kylin/storage/hbase/steps/CreateHTableJob.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/9cb08e9a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/CreateHTableJob.java
----------------------------------------------------------------------
diff --git a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/CreateHTableJob.java b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/CreateHTableJob.java
index 1e9887d..2b4ea1a 100644
--- a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/CreateHTableJob.java
+++ b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/CreateHTableJob.java
@@ -298,7 +298,7 @@ public class CreateHTableJob extends AbstractHadoopJob {
double[] regionSizes = new double[nRegion];
for (long cuboidId : allCuboids) {
double estimatedSize = cubeSizeMap.get(cuboidId);
- double magic = 10;
+ double magic = 13;
int shard = (int) (1.0 * estimatedSize * magic / mbPerRegion);
if (shard < 1) {
shard = 1;