You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "nichunen (JIRA)" <ji...@apache.org> on 2019/07/14 12:22:00 UTC

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

     [ https://issues.apache.org/jira/browse/KYLIN-3935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nichunen updated KYLIN-3935:
----------------------------
    Fix Version/s:     (was: v3.0.0)
                   v3.0.0-alpha2

> 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
>            Priority: Major
>             Fix For: v3.0.0-alpha2
>
>
> 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.14#76016)