You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Shaofeng SHI (JIRA)" <ji...@apache.org> on 2019/02/22 10:35:00 UTC

[jira] [Resolved] (KYLIN-3772) CubeMetaIngester works abnormally

     [ https://issues.apache.org/jira/browse/KYLIN-3772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shaofeng SHI resolved KYLIN-3772.
---------------------------------
    Resolution: Fixed

> 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
>             Fix For: v2.6.1
>
>         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)