mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Mahler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MESOS-298) Executor fails to start
Date Fri, 26 Oct 2012 18:15:12 GMT

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

Benjamin Mahler commented on MESOS-298:
---------------------------------------

It looks like there's also some class loader manipulation happening in FrameworkExecutor.java
https://svn.apache.org/repos/asf/incubator/mesos/trunk/hadoop/mesos/src/java/org/apache/hadoop/mapred/FrameworkExecutor.java
See the top of the registered() function.

Do you have a simple way to reproduce this from trunk?
                
> Executor fails to start
> -----------------------
>
>                 Key: MESOS-298
>                 URL: https://issues.apache.org/jira/browse/MESOS-298
>             Project: Mesos
>          Issue Type: Question
>          Components: framework, slave
>    Affects Versions: 0.9.0
>         Environment: open Suse 11.0
>            Reporter: Qinghe Jin
>
> When the master asks the hadoop executor to start, the executor could be forked successfully
but fails quickly which result in the TASK_LOST. The output in **/executors/default/runs/id/stderr
looks like below:
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/mesos/Executor

>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
>         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Caused by: java.lang.ClassNotFoundException: org.apache.mesos.Executor
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>         ... 12 more
> Could not find the main class: org.apache.hadoop.mapred.FrameworkExecutor.  Program will
exit.
> I know the reason is the caller can't find the org.apache.mesos.Executor, and I have
found the class in mesos-0.9.0.jar, and I am sure that it can find it(if not, the jobtracker
will fail to start). But each time I run it, the executor fails quickly.
> I am not familiar with java, so I tried all ways I can get from google, but still can't
fix it. I have been suffered from it for almost one week. Anyone can help? I appreciate it
very much! Thanks ahead!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message