kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KYLIN-3935) ZKUtil acquire the wrong Zookeeper Path on windows
Date Mon, 08 Apr 2019 08:14:00 GMT

    [ https://issues.apache.org/jira/browse/KYLIN-3935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16812213#comment-16812213
] 

ASF subversion and git services commented on KYLIN-3935:
--------------------------------------------------------

Commit 80ac894f36bd26780564c04a2eae43a7146a50af in kylin's branch refs/heads/master from GinaZhai
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=80ac894 ]

KYLIN-3935 ZKUtil acquire the wrong Zookeeper Path on windows


> 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: 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)

Mime
View raw message