Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
v2.3.0, v2.4.0, v2.5.0, v2.6.0
-
None
Description
I have used the following cmd to extract the cube named xxx_cube, and the result looks good. However...
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 ========================================
When I was trying to ingest the dump file, I got the following exception:
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
I found that the model is null in org.apache.kylin.cube.model.CubeDesc#getModel
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.
Attachments
Attachments
Issue Links
- links to