public interface SliderClientAPI
extends org.apache.hadoop.service.Service
Stability: evolving
| Modifier and Type | Method and Description |
|---|---|
int |
actionAmSuicide(String clustername,
ActionAMSuicideArgs args)
AM to commit an asynchronous suicide
|
int |
actionBuild(String clustername,
AbstractClusterBuildingActionArgs buildInfo)
Build up the cluster specification/directory
|
int |
actionClient(ActionClientArgs clientInfo)
Perform client operations such as install or configure
|
int |
actionDependency(ActionDependencyArgs dependencyArgs)
Upload all Slider AM and agent dependency libraries to HDFS, so that they
do not need to be uploaded with every create call.
|
int |
actionDestroy(String clustername) |
int |
actionDestroy(String clustername,
ActionDestroyArgs destroyArgs)
Destroy a cluster.
|
int |
actionDiagnostic(ActionDiagnosticArgs diagnosticArgs)
diagnostic operation
|
String |
actionEcho(String name,
ActionEchoArgs args)
Echo operation (not currently wired up to command line)
|
int |
actionExists(String name,
boolean checkLive)
Test for a cluster existing probe for a cluster of the given name existing
in the filesystem.
|
int |
actionFlex(String name,
ActionFlexArgs args)
Implement the islive action: probe for a cluster of the given name existing
|
int |
actionFreeze(String clustername,
ActionFreezeArgs freezeArgs)
Stop the cluster
|
int |
actionInstallKeytab(ActionInstallKeytabArgs installKeytabInfo)
Deprecated.
use #actionKeytab
|
int |
actionInstallPkg(ActionInstallPackageArgs installPkgInfo)
Upload application package to user home directory
|
int |
actionKeytab(ActionKeytabArgs keytabInfo)
Deprecated.
use #actionKeytab
|
int |
actionKillContainer(String name,
ActionKillContainerArgs args)
Kill a specific container of the cluster
|
int |
actionList(String clustername,
ActionListArgs args)
Implement the list action: list all nodes
|
int |
actionPackage(ActionPackageArgs pkgInfo)
Managing slider application package
|
int |
actionRegistry(ActionRegistryArgs registryArgs)
Registry operation
|
int |
actionResolve(ActionResolveArgs args)
Registry operation
|
int |
actionStatus(String clustername,
ActionStatusArgs statusArgs)
Status operation
|
int |
actionThaw(String clustername,
ActionThawArgs thaw)
Restore a cluster
|
int |
actionUpdate(String clustername,
AbstractClusterBuildingActionArgs buildInfo)
Update the cluster specification
|
int |
actionUpgrade(String clustername,
ActionUpgradeArgs buildInfo)
Upgrade the cluster with a newer version of the application
|
int |
actionVersion()
Version Details
|
AbstractClientProvider |
createClientProvider(String provider)
Get the provider for this cluster
|
Map<String,SliderInstanceDescription> |
enumSliderInstances(boolean listOnlyInState,
org.apache.hadoop.yarn.api.records.YarnApplicationState minAppState,
org.apache.hadoop.yarn.api.records.YarnApplicationState maxAppState)
Enumerate slider instances for the current user, and the
most recent app report, where available.
|
boolean |
forceKillApplication(String reason)
Kill the submitted application via YARN
|
org.apache.hadoop.yarn.api.records.ApplicationReport |
getApplicationReport()
Get the report of a this application
|
org.apache.hadoop.registry.client.api.RegistryOperations |
getRegistryOperations()
Get the registry binding.
|
NodeInformationList |
listYarnClusterNodes(ActionNodesArgs args)
List the nodes
|
int actionDestroy(String clustername, ActionDestroyArgs destroyArgs) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionint actionDestroy(String clustername) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionint actionAmSuicide(String clustername, ActionAMSuicideArgs args) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionAbstractClientProvider createClientProvider(String provider) throws SliderException
provider - the name of the providerSliderException - problems building the providerint actionBuild(String clustername, AbstractClusterBuildingActionArgs buildInfo) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
clustername - cluster namebuildInfo - the arguments needed to build the clusterorg.apache.hadoop.yarn.exceptions.YarnException - Yarn problemsIOException - other problemsBadCommandArgumentsException - bad arguments.int actionInstallKeytab(ActionInstallKeytabArgs installKeytabInfo) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
installKeytabInfo - the arguments needed to upload the keytaborg.apache.hadoop.yarn.exceptions.YarnException - Yarn problemsIOException - other problemsBadCommandArgumentsException - bad arguments.int actionKeytab(ActionKeytabArgs keytabInfo) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
keytabInfo - the arguments needed to manage the keytaborg.apache.hadoop.yarn.exceptions.YarnException - Yarn problemsIOException - other problemsBadCommandArgumentsException - bad arguments.int actionInstallPkg(ActionInstallPackageArgs installPkgInfo) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
installPkgInfo - the arguments needed to upload the packageorg.apache.hadoop.yarn.exceptions.YarnException - Yarn problemsIOException - other problemsBadCommandArgumentsException - bad arguments.int actionClient(ActionClientArgs clientInfo) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
clientInfo - the arguments needed for client operationsSliderException - bad arguments.IOException - problems related to package and destination foldersorg.apache.hadoop.yarn.exceptions.YarnExceptionint actionPackage(ActionPackageArgs pkgInfo) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
pkgInfo - the arguments needed to upload, delete or list the packageorg.apache.hadoop.yarn.exceptions.YarnException - Yarn problemsIOException - other problemsBadCommandArgumentsException - bad arguments.int actionUpdate(String clustername, AbstractClusterBuildingActionArgs buildInfo) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
clustername - cluster namebuildInfo - the arguments needed to update the clusterorg.apache.hadoop.yarn.exceptions.YarnException - Yarn problemsIOException - other problemsint actionUpgrade(String clustername, ActionUpgradeArgs buildInfo) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
clustername - cluster namebuildInfo - the arguments needed to upgrade the clusterorg.apache.hadoop.yarn.exceptions.YarnException - Yarn problemsIOException - other problemsorg.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReport()
throws IOException,
org.apache.hadoop.yarn.exceptions.YarnException
IOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionboolean forceKillApplication(String reason) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionint actionList(String clustername, ActionListArgs args) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
IOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionMap<String,SliderInstanceDescription> enumSliderInstances(boolean listOnlyInState, org.apache.hadoop.yarn.api.records.YarnApplicationState minAppState, org.apache.hadoop.yarn.api.records.YarnApplicationState maxAppState) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
listOnlyInState - boolean to indicate that the instances should
only include those in a YARN state
minAppState <= currentState <= maxAppState minAppState - minimum application state to include in enumeration.maxAppState - maximum application state to includeIOException - Any IO problemorg.apache.hadoop.yarn.exceptions.YarnException - YARN problemsint actionFlex(String name, ActionFlexArgs args) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionint actionExists(String name, boolean checkLive) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionint actionKillContainer(String name, ActionKillContainerArgs args) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
name - cluster nameargs - argumentsorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionString actionEcho(String name, ActionEchoArgs args) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
name - cluster nameargs - argumentsorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionint actionStatus(String clustername, ActionStatusArgs statusArgs) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
clustername - cluster namestatusArgs - status argumentsorg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionint actionVersion()
int actionFreeze(String clustername, ActionFreezeArgs freezeArgs) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
clustername - cluster namefreezeArgs - arguments to the stoporg.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionint actionThaw(String clustername, ActionThawArgs thaw) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionint actionResolve(ActionResolveArgs args) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
args - registry Argumentsorg.apache.hadoop.yarn.exceptions.YarnException - YARN problemsIOException - Network or other problemsint actionRegistry(ActionRegistryArgs registryArgs) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
registryArgs - registry Argumentsorg.apache.hadoop.yarn.exceptions.YarnException - YARN problemsIOException - Network or other problemsint actionDiagnostic(ActionDiagnosticArgs diagnosticArgs)
diagnosticArgs - diagnostic Argumentsorg.apache.hadoop.yarn.exceptions.YarnException - YARN problemsIOException - Network or other problemsorg.apache.hadoop.registry.client.api.RegistryOperations getRegistryOperations()
throws SliderException,
IOException
SliderExceptionIOExceptionint actionDependency(ActionDependencyArgs dependencyArgs) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
SliderExceptionIOExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionNodeInformationList listYarnClusterNodes(ActionNodesArgs args) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
args - org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.