You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by Tobin Baker <td...@cs.washington.edu> on 2015/12/04 01:39:47 UTC
Launching a REEF application with "yarn jar"
Hi, I'm trying to launch my REEF app under YARN, with my build classpath
specified using the YARN_USER_CLASSPATH env var. (I could just build a
shaded jar per the HelloREEFYarn example, but I'd rather not.) Can anyone
tell me why YARN is trying to invoke main() on the wrong class?
YARN_USER_CLASSPATH='/Users/tdbaker/myria/build/libs/*' yarn jar
/Users/tdbaker/myria/build/libs/myria-0.1.jar
edu.washington.escience.myria.daemon.MyriaDriverLauncher -yarn true
-configPath '/Users/tdbaker/myria/myriadeploy' -javaLibPath
'/Users/tdbaker/myria/build/libs' -nativeLibPath '/Users/tdbaker/myria/lib'
Exception in thread "main" java.lang.NoSuchMethodException:
edu.washington.escience.myria.daemon.MasterDaemon.main([Ljava.lang.String;)
at java.lang.Class.getMethod(Class.java:1786)
at org.apache.hadoop.util.RunJar.run(RunJar.java:215)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Thanks,
Tobin
Re: Launching a REEF application with "yarn jar"
Posted by Tobin Baker <td...@cs.washington.edu>.
Hmm, I built an uberjar (so I don't need to specify a classpath) and I'm
still getting this exact same error...
On Thu, Dec 3, 2015 at 4:39 PM, Tobin Baker <td...@cs.washington.edu>
wrote:
> Hi, I'm trying to launch my REEF app under YARN, with my build classpath
> specified using the YARN_USER_CLASSPATH env var. (I could just build a
> shaded jar per the HelloREEFYarn example, but I'd rather not.) Can anyone
> tell me why YARN is trying to invoke main() on the wrong class?
>
> YARN_USER_CLASSPATH='/Users/tdbaker/myria/build/libs/*' yarn jar
> /Users/tdbaker/myria/build/libs/myria-0.1.jar
> edu.washington.escience.myria.daemon.MyriaDriverLauncher -yarn true
> -configPath '/Users/tdbaker/myria/myriadeploy' -javaLibPath
> '/Users/tdbaker/myria/build/libs' -nativeLibPath '/Users/tdbaker/myria/lib'
> Exception in thread "main" java.lang.NoSuchMethodException:
> edu.washington.escience.myria.daemon.MasterDaemon.main([Ljava.lang.String;)
> at java.lang.Class.getMethod(Class.java:1786)
> at org.apache.hadoop.util.RunJar.run(RunJar.java:215)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
>
> Thanks,
> Tobin
>
>
Re: Launching a REEF application with "yarn jar"
Posted by Tobin Baker <td...@cs.washington.edu>.
Never mind, inspecting the source of RunJar showed that it ignores the
class name you specify on the command line if you specify Main-Class in
your jar manifest. I don't understand why that would override a class name
you specify on the command line, but that's how it works.
On Thu, Dec 3, 2015 at 4:39 PM, Tobin Baker <td...@cs.washington.edu>
wrote:
> Hi, I'm trying to launch my REEF app under YARN, with my build classpath
> specified using the YARN_USER_CLASSPATH env var. (I could just build a
> shaded jar per the HelloREEFYarn example, but I'd rather not.) Can anyone
> tell me why YARN is trying to invoke main() on the wrong class?
>
> YARN_USER_CLASSPATH='/Users/tdbaker/myria/build/libs/*' yarn jar
> /Users/tdbaker/myria/build/libs/myria-0.1.jar
> edu.washington.escience.myria.daemon.MyriaDriverLauncher -yarn true
> -configPath '/Users/tdbaker/myria/myriadeploy' -javaLibPath
> '/Users/tdbaker/myria/build/libs' -nativeLibPath '/Users/tdbaker/myria/lib'
> Exception in thread "main" java.lang.NoSuchMethodException:
> edu.washington.escience.myria.daemon.MasterDaemon.main([Ljava.lang.String;)
> at java.lang.Class.getMethod(Class.java:1786)
> at org.apache.hadoop.util.RunJar.run(RunJar.java:215)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
>
> Thanks,
> Tobin
>
>