Browse Source

HUE-2755 [spark] PySpark YARN does not always start

Upping the timeout for now, starting up the pyspark-shell
in Yarn mode often requires more than 10 seconds
Romain Rigaux 10 years ago
parent
commit
77b2508627

+ 1 - 1
apps/spark/java/livy-repl/src/main/scala/com/cloudera/hue/livy/repl/Main.scala

@@ -125,7 +125,7 @@ class ScalatraBootstrap extends LifeCycle with Logging {
     info(s"Notifying $callbackUrl that we're up")
 
     Future {
-      session.waitForStateChange(Starting(), Duration(10, TimeUnit.SECONDS))
+      session.waitForStateChange(Starting(), Duration(30, TimeUnit.SECONDS))
 
       // Wait for our url to be discovered.
       val replUrl = waitForReplUrl()