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

Richard Calaba commented on KYLIN-1810:
---------------------------------------

Additional info:

1) I have successfully reproduced the bug on version 1.5.2.1 have cleaned Kylin 
repository and restored my model/cube from metadata. I had cube1 in disabled 
mode (not build yet). I have clonned cube1 to cube2. I have executed successful 
build of cube2. Then I had clonned again cube1 to cube 3. meanwhile no 
additional data were loaded to the tables used by the cubes. The Build process 
of Cube3 is failing in Step 4 with the exception described in this JIRA ticket.

Seems somethingw wrong with the tables snaphots created by the build process 
....

The cubes are using Hive view for BOTH fact table and dimensions

> NPE in 
> org.apache.kylin.dict.lookup.SnapshotTable.equals(SnapshotTable.java:164)
> --------------------------------------------------------------------------------
>
>                 Key: KYLIN-1810
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1810
>             Project: Kylin
>          Issue Type: Bug
>    Affects Versions: v1.5.2.1
>            Reporter: Richard Calaba
>         Attachments: job_2016_06_21_16_23_51-err.zip
>
>
> Hello,
> running into weird issue. I have designed Kylin cube. Clonned it to another 
> cube without any changes and run the Build job. The Build succeeded. Then I 
> have discarder the build job and disabled and dropped the cube. Clonned the 
> same cube again (into different name than  previously) and then again started 
> to build the cube. Getting an NPE below every time in Step 4  - Build 
> Dimension Dictionary":
> java.lang.NullPointerException
>       at 
> org.apache.kylin.dict.lookup.SnapshotTable.equals(SnapshotTable.java:164)
>       at 
> org.apache.kylin.dict.lookup.SnapshotManager.checkDupByContent(SnapshotManager.java:167)
>       at 
> org.apache.kylin.dict.lookup.SnapshotManager.trySaveNewSnapshot(SnapshotManager.java:128)
>       at 
> org.apache.kylin.dict.lookup.SnapshotManager.buildSnapshot(SnapshotManager.java:108)
>       at 
> org.apache.kylin.cube.CubeManager.buildSnapshotTable(CubeManager.java:215)
>       at 
> org.apache.kylin.cube.cli.DictionaryGeneratorCLI.processSegment(DictionaryGeneratorCLI.java:59)
>       at 
> org.apache.kylin.cube.cli.DictionaryGeneratorCLI.processSegment(DictionaryGeneratorCLI.java:42)
>       at 
> org.apache.kylin.engine.mr.steps.CreateDictionaryJob.run(CreateDictionaryJob.java:56)
>       at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
>       at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
>       at 
> org.apache.kylin.engine.mr.common.HadoopShellExecutable.doWork(HadoopShellExecutable.java:60)
>       at 
> org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:114)
>       at 
> org.apache.kylin.job.execution.DefaultChainedExecutable.doWork(DefaultChainedExecutable.java:50)
>       at 
> org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:114)
>       at 
> org.apache.kylin.job.impl.threadpool.DefaultScheduler$JobRunner.run(DefaultScheduler.java:124)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>       at java.lang.Thread.run(Thread.java:745)
> result code:2
> Attaching the Diagnostic logs.
> Any clue how to resolve this ??? 
> I am thinking to wipe all Kylin metadata from repository and try to restore 
> from backup.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to