Re: Submitting spark jobs through yarn-client

2015-01-03 Thread Corey Nolet
Took me just about all night (it's 3am here in EST) but I finally figured out how to get this working. I pushed up my example code for others who may be struggling with this same problem. It really took an understanding of how the classpath needs to be configured both in YARN and in the client

Re: Submitting spark jobs through yarn-client

2015-01-03 Thread Koert Kuipers
thats great. i tried this once and gave up after a few hours. On Sat, Jan 3, 2015 at 2:59 AM, Corey Nolet cjno...@gmail.com wrote: Took me just about all night (it's 3am here in EST) but I finally figured out how to get this working. I pushed up my example code for others who may be

Re: Submitting spark jobs through yarn-client

2015-01-02 Thread Corey Nolet
Looking a little closer @ the launch_container.sh file, it appears to be adding a $PWD/__app__.jar to the classpath but there is no __app__.jar in the directory pointed to by PWD. Any ideas? On Fri, Jan 2, 2015 at 4:20 PM, Corey Nolet cjno...@gmail.com wrote: I'm trying to get a SparkContext

Submitting spark jobs through yarn-client

2015-01-02 Thread Corey Nolet
I'm trying to get a SparkContext going in a web container which is being submitted through yarn-client. I'm trying two different approaches and both seem to be resulting in the same error from the yarn nodemanagers: 1) I'm newing up a spark context direct, manually adding all the lib jars from

Re: Submitting spark jobs through yarn-client

2015-01-02 Thread Corey Nolet
So looking @ the actual code- I see where it looks like --class 'notused' --jar null is set on the ClientBase.scala when yarn is being run in client mode. One thing I noticed is that the jar is being set by trying to grab the jar's uri from the classpath resources- in this case I think it's

Re: Submitting spark jobs through yarn-client

2015-01-02 Thread Corey Nolet
.. and looking even further, it looks like the actual command tha'ts executed starting up the JVM to run the org.apache.spark.deploy.yarn.ExecutorLauncher is passing in --class 'notused' --jar null. I would assume this isn't expected but I don't see where to set these properties or why they