Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Setting the driver failover timeout
  • Loading branch information
nraychaudhuri committed Jan 15, 2016
commit 9002258fbede7d8da6934c8b4ea5512cac999db7
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private[mesos] class MesosClusterDispatcherArguments(args: Array[String], conf:
" --webui-port WEBUI_PORT WebUI Port to listen on (default: 8081)\n" +
" --name NAME Framework name to show in Mesos UI\n" +
" -m --master MASTER URI for connecting to Mesos master\n" +
" --disable-failover Will kill the driver when dispatcher is stopped\n" +
" --disable-failover De-register the framework when dispatcher is stopped\n" +
" -z --zk ZOOKEEPER Comma delimited URLs for connecting to \n" +
" Zookeeper for persistence\n" +
" --properties-file FILE Path to a custom Spark properties file.\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ private[spark] class MesosClusterScheduler(
appName,
conf,
Some(frameworkUrl),
Some(true),
Some(Integer.MAX_VALUE),
Some(driverFailOver), // with checkpoint data if failOver is true
Some(if (driverFailOver) Double.MaxValue else 0.0), // timeout, 0.0 means no recovery
fwId)

startScheduler(driver)
Expand All @@ -319,7 +319,7 @@ private[spark] class MesosClusterScheduler(
ready = false
metricsSystem.report()
metricsSystem.stop()
mesosDriver.stop(driverFailOver)
mesosDriver.stop(true)
}

override def registered(
Expand Down