[
https://issues.apache.org/jira/browse/KYLIN-1810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15343640#comment-15343640
]
Richard Calaba commented on KYLIN-1810:
---------------------------------------
Ok,
did:
1) git clone -b kylin-1.5.2.1
2) cd kylin
3) wget
https://issues.apache.org/jira/secure/attachment/12804584/initialize_rowIndices_and_dict_during_deserializing_when_snapshot_table_is_empty.patch
3) git apply
initialize_rowIndices_and_dict_during_deserializing_when_snapshot_table_is_empty.patch
4) rebuild kylin distro and started patched kylin
5) Resumed the failed Cube jobs -> bith finished OK
Confirming the reolution & closing the ticket.
Thank you !
> 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)