我正在尝试使用apache kylin构建我的第一个多维数据集,一切正常,直到最后一步出现错误:
java.lang.IllegalStateException: Can't get cube source record count.
at com.google.common.base.Preconditions.checkState(Preconditions.java:149)
at org.apache.kylin.job.cube.UpdateCubeInfoAfterBuildStep.doWork(UpdateCubeInfoAfterBuildStep.java:104)
at org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:107)
at org.apache.kylin.job.execution.DefaultChainedExecutable.doWork(DefaultChainedExecutable.java:50)
at org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:107)
at org.apache.kylin.job.impl.threadpool.DefaultScheduler$JobRunner.run(DefaultScheduler.java:132)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
根据这个问题https://github.com/kylinap/kylin/issues/101上面的错误是因为kylin试图在配置单元的输出中找到这个模式:“hdfs read:(\d+)hdfs write:(\d+)success”。
立方体构建教程的正确输出:github.com/kylinap/kylin/wiki/kylin-cube-build-and-job-monitoring-tutorial:
http://i.imgur.com/71teeiy.png
我在Kylin的输出看起来已损坏:
http://i.imgur.com/gcbrn03.png
但是,当我检查配置单元日志时,它看起来正常:
2015-05-27 08:40:13,419 INFO [main]: ql.Driver (Driver.java:execute(1285)) - Starting command:
INSERT OVERWRITE TABLE kylin_intermediate_Kubek_19700101000000_2922789940817071255_f23ac1b1_10fe_4112_ac9e_b4e6baf07654 SELECT
FACT_TABLE.DATE
,FACT_TABLE.MONEY_ADVERTISER
,FACT_TABLE.MONEY_PUBLISHER
FROM DEFAULT.ADVSTATS as FACT_TABLE
...
2015-05-27 08:45:05,132 INFO [main]: ql.Driver (SessionState.java:printInfo(824)) - MapReduce Jobs Launched:
2015-05-27 08:45:05,148 INFO [main]: ql.Driver (SessionState.java:printInfo(824)) - Stage-Stage-1: Map: 1 Cumulative CPU: 17.32 sec HDFS Read: 44644035 HDFS Write: 2347008 SUCCESS
2015-05-27 08:45:05,153 INFO [main]: ql.Driver (SessionState.java:printInfo(824)) - Total MapReduce CPU Time Spent: 17 seconds 320 msec
2015-05-27 08:45:05,167 INFO [main]: ql.Driver (SessionState.java:printInfo(824)) - OK
我正在使用hortonworks沙盒2.2:
hadoop-2.6.0
hbase-0.98.12
hive-0.14.0
zookeeper-3.4.6
有人能告诉我为什么我的Kylin日志预览看起来像这样,首先这可能是最后一步错误的原因吗?
1条答案
按热度按时间s4chpxco1#
几天前,Kylin开发人员承诺绕过这种问题
https://github.com/apache/incubator-kylin/commit/a4692dba681bc2f136e02c64565639eb0080fcc9
因为有时hadoop可能无法获取counter,即使作业从现在开始成功,当无法获取多维数据集源时,kylin会给出警告而不是错误。
我要做的就是重建Kylin。