Spark-console with YARN hangs during startup

209 views
Skip to first unread message

Sarah Gerweck

unread,
Sep 26, 2013, 7:21:40 PM9/26/13
to spark...@googlegroups.com
I've started playing around with Spark, Shark and YARN recently. I'm able to get the π calculator example to run correctly using YARN, but when I try to run shark or spark-console, it always hangs before I get to an actual prompt—right after Adding Shutdown Hook

I built with both SPARK_YARN & SHARK_YARN set and I'm using MASTER=yarn-standalone. I'm building against Hadoop 0.23.9.

I've attached by my startup logs and my stack dumps. 

Thanks for any help in advance,
  Sarah Gerweck


hang.jstack
hang.log

Matei Zaharia

unread,
Sep 26, 2013, 10:51:53 PM9/26/13
to spark...@googlegroups.com
Hi Sarah,

The Spark interactive shell can't currently run on YARN, because our current YARN mode requires the driver program to be in a container on the cluster. There's a PR for it here: https://github.com/mesos/spark/pull/868 that we'll probably merge soon.

Similar for shark -- bin/shark won't work, but one thing you could do is run the Shark server (shark --server) in a container. I believe this PR made it possible but I haven't tried it myself: https://github.com/amplab/shark/pull/164.

Matei

--
You received this message because you are subscribed to the Google Groups "Spark Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spark-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
<hang.jstack><hang.log>

Sarah Gerweck

unread,
Oct 11, 2013, 1:33:53 PM10/11/13
to spark...@googlegroups.com, Matei Zaharia
I want to offer you a (belated) thanks for your help on this. I was eventually able to get everything working properly by cutting a build of Spark with that pull request merged in.

Thanks,
  Sarah

You received this message because you are subscribed to a topic in the Google Groups "Spark Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spark-users/NY9WJEUj9v0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spark-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages