Kylin构建cube时状态一直处于pending

在安装好kylin之后我直接去访问web监控页面发现能够进去,也没有去看日志。然后在运行官方带的例子去bulid cube时去发现状态一直是pending而不是runing。这个时候才去查看日志:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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就好了.


posted @   大葱拌豆腐  阅读(2675)  评论(4编辑  收藏  举报
编辑推荐:
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 字符编码:从基础到乱码解决
点击右上角即可分享
微信分享提示