You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by qh...@apache.org on 2015/10/22 09:08:31 UTC

[2/2] incubator-kylin git commit: minor set MR sampling default percentage to 100

minor set MR sampling default percentage to 100


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/a2425c0b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/a2425c0b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/a2425c0b

Branch: refs/heads/2.x-staging
Commit: a2425c0b4be8eb581e2916a493b8f897437a0372
Parents: 801a792
Author: qianhao.zhou <qi...@ebay.com>
Authored: Thu Oct 15 16:07:09 2015 +0800
Committer: qianhao.zhou <qi...@ebay.com>
Committed: Wed Oct 21 14:47:20 2015 +0800

----------------------------------------------------------------------
 build/conf/kylin.properties                                      | 4 ++--
 .../src/main/java/org/apache/kylin/common/KylinConfig.java       | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/a2425c0b/build/conf/kylin.properties
----------------------------------------------------------------------
diff --git a/build/conf/kylin.properties b/build/conf/kylin.properties
index 5b56f31..fe953fc 100644
--- a/build/conf/kylin.properties
+++ b/build/conf/kylin.properties
@@ -51,8 +51,8 @@ kylin.job.cubing.inMem=true
 #default compression codec for htable,snappy,lzo,gzip,lz4
 kylin.hbase.default.compression.codec=snappy
 
-#the percentage of the sampling, default 25%
-kylin.job.cubing.inMem.sampling.percent=25
+#the percentage of the sampling, default 100%
+kylin.job.cubing.inMem.sampling.percent=100
 
 # The cut size for hbase region, in GB.
 # E.g, for cube whose capacity be marked as "SMALL", split region per 10GB by default

http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/a2425c0b/core-common/src/main/java/org/apache/kylin/common/KylinConfig.java
----------------------------------------------------------------------
diff --git a/core-common/src/main/java/org/apache/kylin/common/KylinConfig.java b/core-common/src/main/java/org/apache/kylin/common/KylinConfig.java
index 5f8fb07..709e5aa 100644
--- a/core-common/src/main/java/org/apache/kylin/common/KylinConfig.java
+++ b/core-common/src/main/java/org/apache/kylin/common/KylinConfig.java
@@ -505,7 +505,7 @@ public class KylinConfig implements Serializable {
     }
 
     public int getCubingInMemSamplingPercent() {
-        int percent = Integer.parseInt(this.getOptional(KYLIN_JOB_CUBING_IN_MEM_SAMPLING_PERCENT, "5"));
+        int percent = Integer.parseInt(this.getOptional(KYLIN_JOB_CUBING_IN_MEM_SAMPLING_PERCENT, "100"));
         percent = Math.max(percent, 1);
         percent = Math.min(percent, 100);
         return percent;