You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by "Na Zhai (JIRA)" <ji...@apache.org> on 2019/04/04 14:06:00 UTC

[jira] [Created] (KYLIN-3935) ZKUtil acquire the wrong Zookeeper Path on windows

Na Zhai created KYLIN-3935:
------------------------------

             Summary: ZKUtil acquire the wrong Zookeeper Path on windows
                 Key: KYLIN-3935
                 URL: https://issues.apache.org/jira/browse/KYLIN-3935
             Project: Kylin
          Issue Type: Bug
    Affects Versions: v2.6.1
            Reporter: Na Zhai
            Assignee: Na Zhai
             Fix For: v2.6.2


In my windows env, when I run Kylin, Kylin service can't start. In class ZKUtil, I found Kylin use File(path).getCanonicalPath() to norm windows path, however this will get a path like ' C:\kylin\kylin_metadata'.For Zookeeper, the path must start with / character.

{color:#FF0000}return new File(path).toURI().getPath(){color} might be better!!!

Below is stackTrace:

: java.lang.RuntimeException: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.RuntimeException: Fail to check or create znode for chRoot F:\kylin\kylin_metadata_idea due to 
 at org.apache.kylin.common.util.ZKUtil.getZookeeperClient(ZKUtil.java:137)
 at org.apache.kylin.common.util.ZKUtil.getZookeeperClient(ZKUtil.java:115)
 at org.apache.kylin.job.lock.zookeeper.ZookeeperDistributedLock$Factory.<init>(ZookeeperDistributedLock.java:57)
 at org.apache.kylin.job.lock.zookeeper.ZookeeperDistributedLock$Factory.<init>(ZookeeperDistributedLock.java:53)
 at org.apache.kylin.job.lock.zookeeper.ZookeeperJobLock.<init>(ZookeeperJobLock.java:32)
 at org.apache.kylin.rest.service.JobService.afterPropertiesSet(JobService.java:132)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
 ... 61 more
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: java.lang.RuntimeException: Fail to check or create znode for chRoot F:\kylin\kylin_metadata_idea due to 
 at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2263)
 at com.google.common.cache.LocalCache.get(LocalCache.java:4000)
 at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4789)
 at org.apache.kylin.common.util.ZKUtil.getZookeeperClient(ZKUtil.java:123)
 ... 68 more



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)