kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liy...@apache.org
Subject [20/52] [abbrv] kylin git commit: KYLIN-1400 kylin.metadata.url with hbase namespace problem
Date Sun, 21 Feb 2016 11:52:15 GMT
KYLIN-1400 kylin.metadata.url with hbase namespace problem


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

Branch: refs/heads/1.x-HBase1.1.3
Commit: 474dbfa67f3b4cba6439b6b5d4ec68a85806f2de
Parents: 62a8cb2
Author: Zhihua Deng <dengzhhu653@163.com>
Authored: Wed Feb 3 14:40:55 2016 +0800
Committer: shaofengshi <shaofengshi@apache.org>
Committed: Fri Feb 5 15:53:00 2016 +0800

----------------------------------------------------------------------
 common/src/main/java/org/apache/kylin/common/KylinConfig.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/474dbfa6/common/src/main/java/org/apache/kylin/common/KylinConfig.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/kylin/common/KylinConfig.java b/common/src/main/java/org/apache/kylin/common/KylinConfig.java
index 790e7a5..59cb86b 100644
--- a/common/src/main/java/org/apache/kylin/common/KylinConfig.java
+++ b/common/src/main/java/org/apache/kylin/common/KylinConfig.java
@@ -316,7 +316,10 @@ public class KylinConfig {
         if (!root.endsWith("/")) {
             root += "/";
         }
-        return root + getMetadataUrlPrefix() + "/";
+        return new StringBuffer(root)
+                     .append(StringUtils.replaceChars(getMetadataUrlPrefix(), ':', '-'))
+                     .append("/")
+                     .toString();
     }
 
     public String getHBaseClusterFs() {


Mime
View raw message