You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Fay Beligianni (JIRA)" <ji...@apache.org> on 2015/02/18 00:13:12 UTC

[jira] [Commented] (FLINK-1421) Implement a SAMOA Adapter for Flink Streaming

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

Fay Beligianni commented on FLINK-1421:
---------------------------------------

Hello,

I am trying to run a SAMOA  task on a Flink cluster but a RuntimeException it is thrown: "org.apache.commons.lang.SerializationException: java.lang.ClassNotFoundException" (The whole exception message is quoted at the end of my comment).

Specifically,  the deployed JAR is submitted to the cluster through Flink's command line interface. 
We inspected the deployed JAR we verified that the class, for which  the "ClassNotFoundException" is thrown,  IS in the JAR...   
 
I have to mention that the same program works like a charm when we are executing it through the IDE.
Moreover, we managed to execute it locally, through the command line interface, when we added manually the deployable JAR in the Flink library folder, but that was just for testing purposes.

Any help would be appreciated!

-------------------------Exception Message-------------------------

org.apache.flink.client.program.ProgramInvocationException: The program execution failed: java.lang.RuntimeException: org.apache.commons.lang.SerializationException: java.lang.ClassNotFoundException: com.yahoo.labs.samoa.examples.HelloWorldContentEvent at org.apache.flink.streaming.api.streamvertex.OutputHandler.invokeUserFunction(OutputHandler.java:232) at org.apache.flink.streaming.api.streamvertex.StreamVertex.invoke(StreamVertex.java:121) at org.apache.flink.runtime.execution.RuntimeEnvironment.run(RuntimeEnvironment.java:204) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.commons.lang.SerializationException: java.lang.ClassNotFoundException: com.yahoo.labs.samoa.examples.HelloWorldContentEvent at org.apache.commons.lang.SerializationUtils.deserialize(SerializationUtils.java:165) at org.apache.commons.lang.SerializationUtils.deserialize(SerializationUtils.java:192) at com.yahoo.labs.flink.SamoaTypeSerializer.deserialize(SamoaTypeSerializer.java:84) at com.yahoo.labs.flink.SamoaTypeSerializer.deserialize(SamoaTypeSerializer.java:33) at org.apache.flink.streaming.api.streamrecord.StreamRecordSerializer.deserialize(StreamRecordSerializer.java:107) at org.apache.flink.streaming.api.streamrecord.StreamRecordSerializer.deserialize(StreamRecordSerializer.java:29) at org.apache.flink.runtime.plugable.ReusingDeserializationDelegate.read(ReusingDeserializationDelegate.java:57) at org.apache.flink.runtime.io.network.serialization.SpillingAdaptiveSpanningRecordDeserializer.getNextRecord(SpillingAdaptiveSpanningRecordDeserializer.java:111) at org.apache.flink.runtime.io.network.api.reader.AbstractRecordReader.getNextRecord(AbstractRecordReader.java:66) at org.apache.flink.runtime.io.network.api.reader.MutableRecordReader.next(MutableRecordReader.java:33) at org.apache.flink.runtime.operators.util.ReaderIterator.next(ReaderIterator.java:59) at org.apache.flink.streaming.api.invokable.StreamInvokable.readNext(StreamInvokable.java:102) at com.yahoo.labs.flink.topology.impl.FlinkProcessingItem.invoke(FlinkProcessingItem.java:143) at org.apache.flink.streaming.api.streamvertex.StreamVertex.invokeUserFunction(StreamVertex.java:85) at org.apache.flink.streaming.api.streamvertex.OutputHandler.invokeUserFunction(OutputHandler.java:229) ... 3 more Caused by: java.lang.ClassNotFoundException: com.yahoo.labs.samoa.examples.HelloWorldContentEvent at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:340) at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:626) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1613) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371) at org.apache.commons.lang.SerializationUtils.deserialize(SerializationUtils.java:162) ... 17 more at org.apache.flink.client.program.Client.run(Client.java:345) at org.apache.flink.streaming.api.environment.StreamContextEnvironment.execute(StreamContextEnvironment.java:68) at org.apache.flink.streaming.api.environment.StreamContextEnvironment.execute(StreamContextEnvironment.java:49) at com.yahoo.labs.flink.FlinkDoTask.main(FlinkDoTask.java:88) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:437) at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:353) at org.apache.flink.client.program.Client.run(Client.java:250) at org.apache.flink.client.CliFrontend.executeProgram(CliFrontend.java:374) at org.apache.flink.client.CliFrontend.run(CliFrontend.java:347) at org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1088) at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1115)

> Implement a SAMOA Adapter for Flink Streaming
> ---------------------------------------------
>
>                 Key: FLINK-1421
>                 URL: https://issues.apache.org/jira/browse/FLINK-1421
>             Project: Flink
>          Issue Type: New Feature
>          Components: Streaming
>            Reporter: Paris Carbone
>            Assignee: Paris Carbone
>   Original Estimate: 336h
>  Remaining Estimate: 336h
>
> Yahoo's Samoa is an experimental incremental machine learning library that builds on an abstract compositional data streaming model to write streaming algorithms. The task is to provide an adapter from SAMOA topologies to Flink-streaming job graphs in order to support Flink as a backend engine for SAMOA tasks.
> A statup guide can be viewed here :
> https://docs.google.com/document/d/18glDJDYmnFGT1UGtZimaxZpGeeg1Ch14NgDoymhPk2A/pub
> The main working branch of the adapter :
> https://github.com/senorcarbone/samoa/tree/flink



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