欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Apache Kylin 2.3 构建Cube失败

程序员文章站 2022-04-11 09:08:53
...

1、问题

Apache Kylin 2.3 构建Cube失败
需要查看错误日志

[aaa@qq.com ~]# cd /opt/kylin-2.3.1/logs/
[aaa@qq.com logs]# ll
total 1664
-rw-r--r-- 1 root root   16674 May 30 08:18 kylin.gc.20356.0.current
-rw-r--r-- 1 root root    6801 May 29 09:22 kylin.gc.31042.0.current
-rw-r--r-- 1 root root 1596684 May 30 08:43 kylin.log
-rw-r--r-- 1 root root   66815 May 29 13:39 kylin.out
[aaa@qq.com logs]# vi kylin.log

发现错误如下:

2018-05-29 10:00:00,383 ERROR [Scheduler 1342808801 Job 021749b4-4d73-474b-88b0-c171a10a68f5-615] common.HadoopJobStatusChecker:58 : error check status
java.io.IOException: java.net.ConnectException: Call From node1/10.17.12.160 to 0.0.0.0:10020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
        at org.apache.hadoop.mapred.ClientServiceDelegate.invoke(ClientServiceDelegate.java:334)
        at org.apache.hadoop.mapred.ClientServiceDelegate.getJobStatus(ClientServiceDelegate.java:419)
        at org.apache.hadoop.mapred.YARNRunner.getJobStatus(YARNRunner.java:532)
        at org.apache.hadoop.mapreduce.Job$1.run(Job.java:314)
        at org.apache.hadoop.mapreduce.Job$1.run(Job.java:311)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1614)
        at org.apache.hadoop.mapreduce.Job.updateStatus(Job.java:311)
        at org.apache.hadoop.mapreduce.Job.getStatus(Job.java:329)
        at org.apache.kylin.engine.mr.common.HadoopJobStatusChecker.checkStatus(HadoopJobStatusChecker.java:38)
        at org.apache.kylin.engine.mr.common.MapReduceExecutable.doWork(MapReduceExecutable.java:152)
        at org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:162)
        at org.apache.kylin.job.execution.DefaultChainedExecutable.doWork(DefaultChainedExecutable.java:67)
        at org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:162)
        at org.apache.kylin.job.impl.threadpool.DefaultScheduler$JobRunner.run(DefaultScheduler.java:300)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.ConnectException: Call From node1/10.17.12.160 to 0.0.0.0:10020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
        at sun.reflect.GeneratedConstructorAccessor62.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:783)
        at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:730)
        at org.apache.hadoop.ipc.Client.call(Client.java:1415)
        at org.apache.hadoop.ipc.Client.call(Client.java:1364)
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:206)
        at com.sun.proxy.$Proxy74.getJobReport(Unknown Source)
        at org.apache.hadoop.mapreduce.v2.api.impl.pb.client.MRClientProtocolPBClientImpl.getJobReport(MRClientProtocolPBClientImpl.java:133)
        at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.hadoop.mapred.ClientServiceDelegate.invoke(ClientServiceDelegate.java:320)
        ... 18 more
Caused by: java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
        at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:529)

2、解决办法

hadoop的historyserver服务没有启动。

[root@node1 ~]# mr-jobhistory-daemon.sh start historyserver
starting historyserver, logging to /opt/hadoop-2.7.5/logs/mapred-root-historyserver-node1.out
[root@node1 ~]# jps
30208 HRegionServer
18852 Elasticsearch
27813 NodeManager
28773 RunJar
27534 DataNode
2769 JobHistoryServer
7219 QuorumPeerMain
2812 Jps
[root@node1 ~]#
相关标签: kylin