public final class K8sWorkerStarter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addShutdownHook(IWorkerStatusUpdater workerStatusUpdater)
if the worker is killed by scaling down,
we need to let ZooKeeper know about it and delete worker znode
if zookeeper is used
|
static void |
main(java.lang.String[] args) |
static boolean |
startWorker(IWorkerController workerController,
IPersistentVolume pv)
start the Worker class specified in conf files
|
static java.lang.String |
updateJobMasterIp(java.lang.String jobMasterIP)
update jobMasterIP if necessary
if job master runs in client, jobMasterIP has to be provided as an environment variable
that variable must be provided as a parameter to this method
if job master runs as a separate pod,
we get the job master IP address from its pod
|
public static void main(java.lang.String[] args)
public static java.lang.String updateJobMasterIp(java.lang.String jobMasterIP)
jobMasterIP
- public static boolean startWorker(IWorkerController workerController, IPersistentVolume pv)
public static void addShutdownHook(IWorkerStatusUpdater workerStatusUpdater)