Na Zhai created KYLIN-3781:
------------------------------

             Summary: Can not start Kylin in Idea on Windows
                 Key: KYLIN-3781
                 URL: https://issues.apache.org/jira/browse/KYLIN-3781
             Project: Kylin
          Issue Type: Bug
         Environment: Windows
            Reporter: Na Zhai
            Assignee: Chao Long


After merge pr of issue https://issues.apache.org/jira/browse/KYLIN-3734, I get 
an error about ZookeeperDistributedLock when starting Kylin in Idea.

After check code, I find that "return new File(path).getCanonicalPath();" in 
ZookeeperDistributedLock.java  add the drive letter of my operating system. It 
will make zookeeper not get the lock. My environment is Windows.

Error message:
Caused by: java.lang.IllegalStateException: Error while 6260@NaZhai-PC trying 
to lock F:\kylin\kylin_metadata_idea\job_engine\global_job_engine_lock
        at 
org.apache.kylin.storage.hbase.util.ZookeeperDistributedLock.lock(ZookeeperDistributedLock.java:153)
        at 
org.apache.kylin.storage.hbase.util.ZookeeperDistributedLock.lock(ZookeeperDistributedLock.java:170)
        at 
org.apache.kylin.storage.hbase.util.ZookeeperDistributedLock.lockJobEngine(ZookeeperDistributedLock.java:316)
        at 
org.apache.kylin.storage.hbase.util.ZookeeperJobLock.lockJobEngine(ZookeeperJobLock.java:81)
        at 
org.apache.kylin.job.impl.threadpool.DefaultScheduler.init(DefaultScheduler.java:152)
        at 
org.apache.kylin.rest.service.JobService.afterPropertiesSet(JobService.java:126)
        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: java.lang.IllegalArgumentException: Path must start with / character
        at org.apache.curator.utils.PathUtils.validatePath(PathUtils.java:54)
        at org.apache.curator.utils.PathUtils.validatePath(PathUtils.java:37)
        at org.apache.curator.utils.ZKPaths.fixForNamespace(ZKPaths.java:63)
        at 
org.apache.curator.framework.imps.NamespaceImpl.fixForNamespace(NamespaceImpl.java:82)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.fixForNamespace(CuratorFrameworkImpl.java:579)
        at 
org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:434)
        at 
org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:44)
        at 
org.apache.kylin.storage.hbase.util.ZookeeperDistributedLock.lock(ZookeeperDistributedLock.java:149)
        ... 68 more



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

Reply via email to