Kylin構建cube時狀態一直處於pending


在安裝好kylin之后我直接去訪問web監控頁面發現能夠進去,也沒有去看日志。然后在運行官方帶的例子去bulid cube時去發現狀態一直是pending而不是runing。這個時候才去查看日志:

2017-01-18 09:54:49,236 INFO  [localhost-startStop-1] web.DefaultSecurityFilterChain:28 : Creating filter chain: org.springframework.security.web.util.AnyRequestMatcher@1, [org.springframework.security.web.context.SecurityContextPersistenceFilter@4ffd3ea7, org.springframework.security.web.authentication.logout.LogoutFilter@7a22f758, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@386e0672, org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter@7fd0bb6d, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@597eba36, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@340b0e76, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@7c1ec313, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@6ef142e, org.springframework.security.web.session.SessionManagementFilter@2a6ca1cf, org.springframework.security.web.access.ExceptionTranslationFilter@4678724a, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@4cf437cd]
2017-01-18 09:54:49,712 ERROR [Thread-10] imps.CuratorFrameworkImpl:543 : Background exception was not retry-able or retry gave up
java.net.UnknownHostException: node1:2181: unknown error
        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
        at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
        at java.net.InetAddress.getAllByName(InetAddress.java:1192)
        at java.net.InetAddress.getAllByName(InetAddress.java:1126)
        at org.apache.zookeeper.client.StaticHostProvider.<init>(StaticHostProvider.java:61)
        at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:445)
        at org.apache.curator.utils.DefaultZookeeperFactory.newZooKeeper(DefaultZookeeperFactory.java:29)
        at org.apache.curator.framework.imps.CuratorFrameworkImpl$2.newZooKeeper(CuratorFrameworkImpl.java:154)
        at org.apache.curator.HandleHolder$1.getZooKeeper(HandleHolder.java:94)
        at org.apache.curator.HandleHolder.getZooKeeper(HandleHolder.java:55)
        at org.apache.curator.ConnectionState.reset(ConnectionState.java:219)
        at org.apache.curator.ConnectionState.start(ConnectionState.java:103)
        at org.apache.curator.CuratorZookeeperClient.start(CuratorZookeeperClient.java:190)
        at org.apache.curator.framework.imps.CuratorFrameworkImpl.start(CuratorFrameworkImpl.java:256)
        at org.apache.kylin.storage.hbase.util.ZookeeperJobLock.lock(ZookeeperJobLock.java:67)
        at org.apache.kylin.job.impl.threadpool.DefaultScheduler.init(DefaultScheduler.java:202)
        at org.apache.kylin.rest.controller.JobController$1.run(JobController.java:89)
        at java.lang.Thread.run(Thread.java:745)
2017-01-18 09:55:04,739 ERROR [Thread-10] curator.ConnectionState:201 : Connection timed out for connection string (node1:2181:2181,node2:2181:2181,node3:2181:2181) and timeout (15000) / elapsed (15702)
org.apache.curator.CuratorConnectionLossException: KeeperErrorCode = ConnectionLoss
        at org.apache.curator.ConnectionState.checkTimeouts(ConnectionState.java:198)
        at org.apache.curator.ConnectionState.getZooKeeper(ConnectionState.java:88)
        at org.apache.curator.CuratorZookeeperClient.getZooKeeper(CuratorZookeeperClient.java:115)

 在紅色標記的地方很明顯發現端口號2181在zk connectString里寫了兩遍,查看org.apache.kylin.storage.hbase.util.ZookeeperJobLock.lock的源碼(ZookeeperJobLock.java:90)可知,
讀取的是配置文件hbase-site.xml的hbase.zookeeper.quorum,該項只需配置Host不需要配置端口號Port,改回來之后重啟hbase就好了.



免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM