kylin-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 冯广彬 <ibm5...@gmail.com>
Subject 你好,我在构建cube的时候清理h ive垃圾出现问题,在追踪源码后发现问题。
Date Thu, 03 Jan 2019 07:58:28 GMT
具体的描述是这样的,
我的报错堆栈信息:
org.apache.kylin.job.exception  .ExecuteException:
org.apache.kylin.job.exception  .ExecuteException:
java.lang.RuntimeException: Failed to read kylin_hive_conf.xml
        at org.apache.kylin.job.execution
.AbstractExecutable.execute(  AbstractExecutable.java:179)

        at org.apache.kylin.job.impl.thre
adpool.DefaultScheduler$JobRun  ner.run(DefaultScheduler.java:
 113)
        at java. util.concurrent.ThreadPoo
lExecutor.runWorker(ThreadPool  Executor.java:1149)

        at java.util.concurrent.ThreadPoo
lExecutor$Worker.run(ThreadPoo  lExecutor.java:624)

        at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.kylin.job.exception  .ExecuteException:
java.lang.RuntimeException: Failed to read kylin_hive_conf.xml
        at org.apache.kylin.job.execution
.AbstractExecutable.execute(  AbstractExecutable.java:
179)
        at org.apache.kylin.job.execution
.DefaultChainedExecutable.doWo  rk(DefaultChainedExecutable.
 java:70)
        at org.apache.kylin.job.execution
.AbstractExecutable.execute(  AbstractExecutable.java:164)

        ... 4 more
Caused by: java.lang.RuntimeException: Failed to read kylin_hive_conf.xml
        at org.apache.kylin.common.util.S  ourceConfigurationUtil.loadXml
Configuration(SourceConfigurat ionUtil.java:83)
        at org.apache.kylin.common.util.S
ourceConfigurationUtil.loadHiv  eConfiguration(SourceConfigura
 tionUtil.java:57)
        at org.apache.kylin.common.util.H  iveCmdBuilder.<init>
(HiveCmdBu  ilder
.java:46)
        at org.apache.kylin.source.hive.G
arbageCollectionStep.cleanUpIn  termediateFlatTable(GarbageCol
 lectionStep.java:61)
        at org.apache.kylin.source.hive.G
arbageCollectionStep.doWork(Ga  rbageCollectionStep
.java: 48)
        at org.apache.kylin.job.execution
.AbstractExecutable.execute(  AbstractExecutable.java:164)



*我下载了源码,查看了这个类*org.apache.kylin.common.util.S ourceConfigurationUtil;
我发现他在加载配置文件的时候会做这一步判断
 if (!confFile.exists()) {
            if (checkExist)
                throw new RuntimeException("Failed to read " +
xmlFileName);
            else
                return confProps;
        }

后来经过查阅   https://bugs.java.com/bu  gdatabase/view_bug.do?bug_id=  5003595
<https://bugs.java.com/bugdatabase/view_bug.do?bug_id=5003595>
 发现在linux系统上使用此方法可能会出现及时文件存在,依然返回值为false的结果,我想请你审阅下是否存在问题,如果存在问题的话,我可以怎样解决呢?
谢谢!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message