我正在尝试使用 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/KylinOLAP/Kylin/issues/101 发生上述错误是因为 Kylin 试图在 hive 的输出中找到这种模式:“HDFS Read: (\d+) HDFS Write: (\d+) SUCCESS” .
立方体构建教程的正确输出:github.com/KylinOLAP/Kylin/wiki/Kylin-Cube-Build-and-Job-Monitoring-Tutorial:
http://i.imgur.com/71tEeIy.png
我在 Kylin 中的输出看起来已损坏:
http://i.imgur.com/GCbrN03.png
但是,当我检查 Hive 日志时,它看起来还不错:
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 Sandbox 2.2:
hadoop-2.6.0
hbase-0.98.12
hive-0.14.0
zookeeper-3.4.6
有人可以告诉我为什么我的 kylin 日志预览看起来像这样,首先这可能是最后一步错误的原因吗?