You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2016/04/06 03:36:44 UTC

kylin git commit: KYLIN-1558 Add CubeName & Segment Name when create hbase table

Repository: kylin
Updated Branches:
  refs/heads/master fb98f6435 -> 6e6f48d92


KYLIN-1558 Add CubeName & Segment Name when create hbase table

Signed-off-by: shaofengshi <sh...@apache.org>


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

Branch: refs/heads/master
Commit: 6e6f48d928b0546cc9854505d68f07121ed457c6
Parents: fb98f64
Author: John Zhao <yu...@ebay.com>
Authored: Tue Apr 5 15:31:53 2016 -0700
Committer: shaofengshi <sh...@apache.org>
Committed: Wed Apr 6 09:28:15 2016 +0800

----------------------------------------------------------------------
 .../apache/kylin/metadata/realization/IRealizationConstants.java   | 2 ++
 .../java/org/apache/kylin/storage/hbase/steps/CubeHTableUtil.java  | 2 ++
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/6e6f48d9/core-metadata/src/main/java/org/apache/kylin/metadata/realization/IRealizationConstants.java
----------------------------------------------------------------------
diff --git a/core-metadata/src/main/java/org/apache/kylin/metadata/realization/IRealizationConstants.java b/core-metadata/src/main/java/org/apache/kylin/metadata/realization/IRealizationConstants.java
index 138a209..6c0a973 100644
--- a/core-metadata/src/main/java/org/apache/kylin/metadata/realization/IRealizationConstants.java
+++ b/core-metadata/src/main/java/org/apache/kylin/metadata/realization/IRealizationConstants.java
@@ -38,4 +38,6 @@ public class IRealizationConstants {
 
     public final static String HTableCreationTime = "CREATION_TIME";
 
+    public final static String HTableSegmentTag = "SEGMENT";
+
 }

http://git-wip-us.apache.org/repos/asf/kylin/blob/6e6f48d9/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/CubeHTableUtil.java
----------------------------------------------------------------------
diff --git a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/CubeHTableUtil.java b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/CubeHTableUtil.java
index aed28ad..65192c2 100644
--- a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/CubeHTableUtil.java
+++ b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/CubeHTableUtil.java
@@ -70,6 +70,8 @@ public class CubeHTableUtil {
         //HTableUser is the cube owner, which will be the "user"
         tableDesc.setValue(IRealizationConstants.HTableUser, cubeInstance.getOwner());
 
+        tableDesc.setValue(IRealizationConstants.HTableSegmentTag, cubeSegment.toString());
+
         Configuration conf = HBaseConfiguration.create();
         HBaseAdmin admin = new HBaseAdmin(conf);