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 2018/10/26 13:38:43 UTC

[kylin] branch master updated: KYLIN-3648 Use Path as the input of addResource

This is an automated email from the ASF dual-hosted git repository.

shaofengshi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/master by this push:
     new 9e77744  KYLIN-3648 Use Path as the input of addResource
9e77744 is described below

commit 9e777440d0e08b8dd7ff64a349cb52d7d653a675
Author: chao long <wa...@qq.com>
AuthorDate: Thu Oct 25 11:54:10 2018 +0800

    KYLIN-3648 Use Path as the input of addResource
---
 .../src/main/java/org/apache/kylin/storage/hbase/HBaseConnection.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/HBaseConnection.java b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/HBaseConnection.java
index 53e8a68..bbe9d2e 100644
--- a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/HBaseConnection.java
+++ b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/HBaseConnection.java
@@ -207,7 +207,7 @@ public class HBaseConnection {
             return;
         }
         Configuration hdfsConf = new Configuration(false);
-        hdfsConf.addResource(hdfsConfigFile);
+        hdfsConf.addResource(new Path(hdfsConfigFile));
         Collection<String> nameServices = hdfsConf.getTrimmedStringCollection(DFSConfigKeys.DFS_NAMESERVICES);
         Collection<String> mainNameServices = conf.getTrimmedStringCollection(DFSConfigKeys.DFS_NAMESERVICES);
         for (String serviceId : nameServices) {