[ https://issues.apache.org/jira/browse/KYLIN-3772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16744705#comment-16744705 ]
ASF subversion and git services commented on KYLIN-3772: -------------------------------------------------------- Commit 4c88f1863de9133ca3405d74cebf0e0a1479a6c9 in kylin's branch refs/heads/master from Temple Zhou [ https://gitbox.apache.org/repos/asf?p=kylin.git;h=4c88f18 ] KYLIN-3772 CubeMetaIngester works abnormally > CubeMetaIngester works abnormally > --------------------------------- > > Key: KYLIN-3772 > URL: https://issues.apache.org/jira/browse/KYLIN-3772 > Project: Kylin > Issue Type: Bug > Components: Tools, Build and Test > Affects Versions: v2.3.0, v2.4.0, v2.5.0, v2.6.0 > Reporter: Temple Zhou > Assignee: Temple Zhou > Priority: Major > Attachments: screenshot-1.png > > > I have used the following cmd to extract the cube named xxx_cube, and the > result looks good. However... > {code:bash} > org.apache.kylin.tool.CubeMetaExtractor -cube xxx_cube -destDir > /Users/zhoutianpeng/tmp > ======================================== > Dump base package locates at: > /Users/zhoutianpeng/tmp/base_2019_01_17_11_35_33/base_2019_01_17_11_35_33.zip > ======================================== > {code} > When I was trying to ingest the dump file, I got the following exception: > {code:java} > Exception in thread "main" java.lang.RuntimeException: error execute > org.apache.kylin.tool.CubeMetaIngester. Root cause: null > at > org.apache.kylin.common.util.AbstractApplication.execute(AbstractApplication.java:42) > at > org.apache.kylin.tool.CubeMetaIngester.main(CubeMetaIngester.java:217) > Caused by: java.lang.NullPointerException > at > org.apache.kylin.tool.CubeMetaIngester.injest(CubeMetaIngester.java:151) > at > org.apache.kylin.tool.CubeMetaIngester.execute(CubeMetaIngester.java:126) > at > org.apache.kylin.common.util.AbstractApplication.execute(AbstractApplication.java:37) > ... 1 more > {code} > I found that the model is null in > org.apache.kylin.cube.model.CubeDesc#getModel > !screenshot-1.png! > Then, I found that the reason is that > org.apache.kylin.metadata.cachesync.CachedCrudAssist#initEntityAfterReload > throws the java.lang.IllegalStateException: No project found for model > xxx_model, which contributes to the failure of model init, so the model is > null. > Maybe, the root cause is that the extracted files don't contain the > /project/xxx.json, so "No project found for model xxx_model" and the model is > null because of the failed init. -- This message was sent by Atlassian JIRA (v7.6.3#76005)