You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Billy Liu (JIRA)" <ji...@apache.org> on 2017/08/13 13:24:00 UTC

[jira] [Updated] (KYLIN-2684) Fix Object.class not registeredFailed to build cube with spark engine

     [ https://issues.apache.org/jira/browse/KYLIN-2684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Billy Liu updated KYLIN-2684:
-----------------------------
    Summary: Fix Object.class not registeredFailed to build cube with spark engine  (was: Failed to build cube with spark engine)

> Fix Object.class not registeredFailed to build cube with spark engine
> ---------------------------------------------------------------------
>
>                 Key: KYLIN-2684
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2684
>             Project: Kylin
>          Issue Type: Bug
>          Components: Spark Engine
>    Affects Versions: v2.1.0
>         Environment: spark 1.6.3
>            Reporter: peng.jianhua
>            Assignee: peng.jianhua
>            Priority: Blocker
>              Labels: patch
>             Fix For: v2.1.0
>
>         Attachments: 0001-KYLIN-2684-Failed-to-build-cube-with-spark-engine.patch
>
>
> Failed to build cube with spark engine at "#7 Step Name: Build Cube with Spark".
> The error log is as following:
> Exception in thread "main" java.lang.RuntimeException: error execute org.apache.kylin.engine.spark.SparkCubingByLayer
> 	at org.apache.kylin.common.util.AbstractApplication.execute(AbstractApplication.java:42)
> 	at org.apache.kylin.common.util.SparkEntry.main(SparkEntry.java:44)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:731)
> 	at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)
> 	at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)
> 	at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)
> 	at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
> Caused by: com.esotericsoftware.kryo.KryoException: java.lang.IllegalArgumentException: Class is not registered: Object
> Note: To register this class use: kryo.register(Object.class);
> Serialization trace:
> cuboidTreeLock (org.apache.kylin.cube.model.CubeDesc)
> 	at com.esotericsoftware.kryo.serializers.FieldSerializer$ObjectField.write(FieldSerializer.java:585)
> 	at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:213)
> 	at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:568)
> 	at org.apache.spark.serializer.KryoSerializationStream.writeObject(KryoSerializer.scala:194)
> 	at org.apache.spark.broadcast.TorrentBroadcast$.blockifyObject(TorrentBroadcast.scala:203)
> 	at org.apache.spark.broadcast.TorrentBroadcast.writeBlocks(TorrentBroadcast.scala:102)
> 	at org.apache.spark.broadcast.TorrentBroadcast.<init>(TorrentBroadcast.scala:85)
> 	at org.apache.spark.broadcast.TorrentBroadcastFactory.newBroadcast(TorrentBroadcastFactory.scala:34)
> 	at org.apache.spark.broadcast.BroadcastManager.newBroadcast(BroadcastManager.scala:63)
> 	at org.apache.spark.SparkContext.broadcast(SparkContext.scala:1326)
> 	at org.apache.spark.api.java.JavaSparkContext.broadcast(JavaSparkContext.scala:639)
> 	at org.apache.kylin.engine.spark.SparkCubingByLayer.execute(SparkCubingByLayer.java:166)
> 	at org.apache.kylin.common.util.AbstractApplication.execute(AbstractApplication.java:37)
> 	... 10 more
> Caused by: java.lang.IllegalArgumentException: Class is not registered: Object
> Note: To register this class use: kryo.register(Object.class);
> 	at com.esotericsoftware.kryo.Kryo.getRegistration(Kryo.java:442)
> 	at com.esotericsoftware.kryo.util.DefaultClassResolver.writeClass(DefaultClassResolver.java:79)
> 	at com.esotericsoftware.kryo.Kryo.writeClass(Kryo.java:472)
> 	at com.esotericsoftware.kryo.serializers.FieldSerializer$ObjectField.write(FieldSerializer.java:561)
> 	... 22 more
> 	
> 	
> 	
> Change 'private Object cuboidTreeLock = new Object();' to 'private byte[] cuboidTreeLock = new byte[0];' in CubeDesc.java to solve this problem.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)