You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/01/17 04:00:00 UTC

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

    [ https://issues.apache.org/jira/browse/KYLIN-3772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16744665#comment-16744665 ] 

ASF GitHub Bot commented on KYLIN-3772:
---------------------------------------

TempleZhou commented on pull request #431: KYLIN-3772 CubeMetaIngester works abnormally
URL: https://github.com/apache/kylin/pull/431
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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)