Apache Kylin 2.3 构建Cube失败

本文记录了一次Hadoop集群中HistoryServer服务未启动导致的任务执行失败案例,并详细介绍了如何通过查看日志定位问题,最终启动HistoryServer服务解决问题的过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、问题

这里写图片描述
需要查看错误日志

[root@node1 ~]# cd /opt/kylin-2.3.1/logs/
[root@node1 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
[root@node1 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 ~]#
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值