Return-Path: X-Original-To: apmail-flink-user-archive@minotaur.apache.org Delivered-To: apmail-flink-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 857A917254 for ; Tue, 8 Sep 2015 10:48:38 +0000 (UTC) Received: (qmail 34943 invoked by uid 500); 8 Sep 2015 10:48:38 -0000 Delivered-To: apmail-flink-user-archive@flink.apache.org Received: (qmail 34867 invoked by uid 500); 8 Sep 2015 10:48:38 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 34858 invoked by uid 99); 8 Sep 2015 10:48:38 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2015 10:48:38 +0000 Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 861051A0098 for ; Tue, 8 Sep 2015 10:48:37 +0000 (UTC) Received: by wicge5 with SMTP id ge5so111370970wic.0 for ; Tue, 08 Sep 2015 03:48:36 -0700 (PDT) X-Received: by 10.180.85.194 with SMTP id j2mr43324664wiz.11.1441709316382; Tue, 08 Sep 2015 03:48:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.11.129 with HTTP; Tue, 8 Sep 2015 03:48:16 -0700 (PDT) In-Reply-To: <5FE4645D-3E89-47DB-88FD-5ECE733D2666@gmx.de> References: <5FE4645D-3E89-47DB-88FD-5ECE733D2666@gmx.de> From: Robert Metzger Date: Tue, 8 Sep 2015 12:48:16 +0200 Message-ID: Subject: Re: The main method caused an error. HDFS flink To: "user@flink.apache.org" Content-Type: multipart/alternative; boundary=f46d0444ef31ac26d2051f3a1b56 --f46d0444ef31ac26d2051f3a1b56 Content-Type: text/plain; charset=UTF-8 Which version of Flink are you using? Have you tried submitting the job using the "./bin/flink run" tool? On Tue, Sep 8, 2015 at 11:44 AM, Florian Heyl wrote: > Dear Sir or Madam, > Me and my colleague are developing a pipeline based on scala and java to > classify cancer stages. This pipeline should be uploaded on the hdfs > (apache flink). > The pipeline locally works fine but on the hdfs it crashes with the > following error (see below). The main method is simply structured we are > only passing one argument to set the working directory and then other > methods from different scala and java files are called. Sorry if I can not > give you more details because I can not figure out what the exact problem > is. I hope you can help me. > > Best wishes, > > Flo > > An error occurred while invoking the program: > > The main method caused an error. > > java.io.IOException: Class not found > at com.esotericsoftware.reflectasm.shaded.org.objectweb.asm.ClassReader.a(Unknown Source) > at com.esotericsoftware.reflectasm.shaded.org.objectweb.asm.ClassReader.(Unknown Source) > at org.apache.flink.api.scala.ClosureCleaner$.org$apache$flink$api$scala$ClosureCleaner$$getClassReader(ClosureCleaner.scala:42) > at org.apache.flink.api.scala.ClosureCleaner$.getInnerClasses(ClosureCleaner.scala:90) > pache.flink.api.scala.DataSet.clean(DataSet.scala:120) > at org.apache.flink.ap > at org.apache.flink.api.scala.ClosureCleaner$.clean(ClosureCleaner.scala:113) > at org. > ai.scala.DataSet$$anon$6.(DataSet.scala:437) > at org.apache.flink.api.scala.DataSet.filter(DataSet.scala:436) > VI$sp(Regression2.scala:98) > at scala.collection.immutable.Range. > at AddFunctions$.splitIntoTrainingAndTest(AddFunctions.scala:42) > at Regression2$$anonfun$mainRegression$1.apply$m > cforeach$mVc$sp(Range.scala:141) > at Regression2$.mainRegression(Regression2.scala:91) > at MainClass$.main(MainClass.scala:41) > at MainClass.main(MainClass.scala) > elegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at sun.reflect. > D.java:43) > at java.lang.reflect.Method.invoke(Method.java:483) > at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:437) > tOptimizedPlan(Client.java:229) > at org.apache.flink.client.web.JobSubmissionServlet.doGet(JobSubmissionServlet > at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:353) > at org.apache.flink.client.program.Client.g > e.java:186) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) > at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:532) > doHandle(ContextHandler.java:965) > at org.eclipse.jetty.servlet.ServletHandler > at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453) > at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) > at org.eclipse.jetty.server.handler.ContextHandler > ..doScope(ServletHandler.java:388) > at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:187) > at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:901) > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) > ection.java:596) > at org.eclipse.jetty.server.HttpConnection$RequestHandler. > at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:47) > at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) > at org.eclipse.jetty.server.Server.handle(Server.java:352) > at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpCon > nheaderComplete(HttpConnection.java:1048) > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:549) > at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:211) > at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:425) > at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:489) > at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) > at java.lang.Thread.run(Thread.java:745) > > > > --f46d0444ef31ac26d2051f3a1b56 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Which version of Flink are you using?

H= ave you tried submitting the job using the "./bin/flink run" tool= ?

On T= ue, Sep 8, 2015 at 11:44 AM, Florian Heyl <f.heyl@gmx.de> wrote:=
Dear= Sir or Madam,
Me and my colleague are developing a pipeline based on s= cala and java to classify cancer stages. This pipeline should be uploaded o= n the hdfs (apache flink).
The pipeline locally works fine but on= the hdfs it crashes with the following error (see below). The main method = is simply structured we are only passing one argument to set the working di= rectory and then other methods from different scala and java files are call= ed. Sorry if I can not give you more details because I can not figure out w= hat the exact problem is. I hope you can help me.

= Best wishes,

Flo

<= div style=3D"text-align:left">=C2=A0An error occurred while invoking the program:

The main method caused an error.

java.io.IOException: Class = not found
at c= om.esotericsoftware.reflectasm.shaded.org.objectweb.asm.ClassReader.a(Unkno= wn Source)
at com.esotericsoftware.ref= lectasm.shaded.org.objectweb.asm.ClassReader.<init>(Unknown Source)
at org.apache.flink.api.scala.ClosureCl= eaner$.org$apache$flink$api$scala$ClosureCleaner$$getClassReader(ClosureCle= aner.scala:42)
at org.apache.flink.api.scala.ClosureCleaner$.getInner= Classes(ClosureCleaner.scala:90)
pache.flink= .api.scala.DataSet.clean(DataSet.scala:120)
at org.apache.flink.ap
at org.apache.flink.api.scala.Clos= ureCleaner$.clean(ClosureCleaner.scala:113) at org.
ai.scala.DataSet$$anon$6.<init>(DataSet.scala:437) at org.apache.flink.api.scala.DataSet.filter(DataSet.scala:436)
VI$sp(Regre= ssion2.scala:98)
at scala.collection.i= mmutable.Range.
at AddFunctions$.splitIntoTrainingAndTest(AddFu= nctions.scala:42) at Regression2$$anonfun$mainRegression$1.apply$m
cforeach$mVc$sp(Range.= scala:141) at Regression2$.mainRegression(Regression2.scala:91) at MainClass$.main(MainClass.scala:41) at MainClass.main(MainClass.scala)
elegatingMethodAccessorImpl.invoke(Delegatin= gMethodAccessorImpl
at sun.reflect.NativeMethodAccessorImpl.invoke0(N= ative Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja= va:62) at sun.reflect.
D.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.apache.flink.client.program.PackagedProgram.callMainMethod(Packaged= Program.java:437)
tOptimizedP= lan(Client.java:229)
at org.apache.fli= nk.client.web.JobSubmissionServlet.doGet(JobSubmissionServlet
a= t org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForE= xecution(PackagedProgram.java:353) at org.apache.flink.client.program.Client.g
e.java:186) at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) at javax.servlet.http.HttpServlet.service(HttpServlet.java:770) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:532)
doHandle(Co= ntextHandler.java:965)
at org.eclipse.= jetty.servlet.ServletHandler
at org.eclipse.jetty.servlet.Servl= etHandler.doHandle(ServletHandler.java:453) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler= .java:227) at org.eclipse.jetty.server.handler.ContextHandler
..doScope(ServletHan= dler.java:388) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.= java:187) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.= java:901) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.jav= a:117)
ection.java= :596)
at org.eclipse.jetty.server.Http= Connection$RequestHandler.
at org.eclipse.jetty.server.handler.= HandlerList.handle(HandlerList.java:47) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.j= ava:113) at org.eclipse.jetty.server.Server.handle(Server.java:352) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpCon
nheade= rComplete(HttpConnection.java:1048) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:549) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:211) at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:425) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoin= t.java:489)
at org.eclipse.jetty.util.thread.Qu= euedThreadPool$2.run(QueuedThreadPool.java:436)
at java.lang.Thread.run(Thread.java= :745)



--f46d0444ef31ac26d2051f3a1b56--