[
https://issues.apache.org/jira/browse/KYLIN-1704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15335199#comment-15335199
]
Zhong Yanghong commented on KYLIN-1704:
---------------------------------------
It seems the patch attached here hasn't been applied to the 1.5.2.1.
The error you attached here denotes that your lookup table is not clean and
some primary key is not unique.
> When load empty snapshot, NULL Pointer Exception occurs
> -------------------------------------------------------
>
> Key: KYLIN-1704
> URL: https://issues.apache.org/jira/browse/KYLIN-1704
> Project: Kylin
> Issue Type: Bug
> Components: Metadata
> Affects Versions: v1.5.0, v1.5.1, v1.5.2
> Reporter: Zhong Yanghong
> Assignee: Zhong Yanghong
> Fix For: v1.5.3
>
> Attachments:
> initialize_rowIndices_and_dict_during_deserializing_when_snapshot_table_is_empty.patch
>
>
> Error Log: java.lang.NullPointerException
> at
> org.apache.kylin.dict.lookup.SnapshotTable.equals(SnapshotTable.java:163)
> at
> org.apache.kylin.dict.lookup.SnapshotManager.checkDupByContent(SnapshotManager.java:164)
> at
> org.apache.kylin.dict.lookup.SnapshotManager.trySaveNewSnapshot(SnapshotManager.java:125)
> at
> org.apache.kylin.dict.lookup.SnapshotManager.buildSnapshot(SnapshotManager.java:105)
> at
> org.apache.kylin.cube.CubeManager.buildSnapshotTable(CubeManager.java:205)
> 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:105)
> at
> org.apache.kylin.job.execution.DefaultChainedExecutable.doWork(DefaultChainedExecutable.java:50)
> at
> org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:105)
> 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)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)