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

ASF GitHub Bot commented on KYLIN-3935:
---------------------------------------

nichunen commented on pull request #581: KYLIN-3935 ZKUtil acquire the wrong 
Zookeeper Path on windows
URL: https://github.com/apache/kylin/pull/581
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to