| Modifier and Type | Method and Description |
|---|---|
AggregateConf |
SliderApplicationApi.getDesiredModel()
Get the aggregate desired model
|
AggregateConf |
SliderApplicationApi.getResolvedModel()
Get the aggregate resolved model
|
| Modifier and Type | Method and Description |
|---|---|
static ClusterDescription |
ClusterDescriptionOperations.buildFromInstanceDefinition(AggregateConf aggregateConf) |
| Modifier and Type | Method and Description |
|---|---|
static AggregateConf |
RestTypeMarshalling.unmarshallToAggregateConf(Messages.WrappedJsonProto wire) |
| Modifier and Type | Method and Description |
|---|---|
AggregateConf |
SliderClient.getLaunchedInstanceDefinition()
The configuration used for deployment (after resolution).
|
AggregateConf |
SliderClient.getLiveInstanceDefinition()
Get the instance definition from the far end
|
AggregateConf |
SliderClient.loadInstanceDefinition(String name,
boolean resolved)
Load the instance definition.
|
AggregateConf |
SliderClient.loadInstanceDefinitionUnresolved(String name,
org.apache.hadoop.fs.Path clusterDirectory)
Load the instance definition.
|
AggregateConf |
SliderClient.loadPersistedClusterDescription(String clustername)
Load the persistent cluster description
|
| Modifier and Type | Method and Description |
|---|---|
LaunchedApplication |
SliderClient.launchApplication(String clustername,
org.apache.hadoop.fs.Path clusterDirectory,
AggregateConf instanceDefinition,
boolean debugAM) |
protected void |
SliderClient.validateInstanceDefinition(AbstractClientProvider provider,
AggregateConf instanceDefinition,
SliderFileSystem fs)
Validate an instance definition against a provider.
|
| Modifier and Type | Method and Description |
|---|---|
AggregateConf |
SliderApplicationIpcClient.getDesiredModel() |
AggregateConf |
SliderClusterOperations.getInstanceDefinition()
Get the AM instance definition.
|
AggregateConf |
SliderClusterOperations.getModelDesired() |
AggregateConf |
SliderClusterOperations.getModelResolved() |
AggregateConf |
SliderApplicationIpcClient.getResolvedModel() |
| Modifier and Type | Method and Description |
|---|---|
AggregateConf |
SliderApplicationApiRestClient.getDesiredModel() |
AggregateConf |
SliderApplicationApiRestClient.getResolvedModel() |
| Modifier and Type | Method and Description |
|---|---|
AggregateConf |
InstanceBuilder.getInstanceDescription() |
static AggregateConf |
InstanceIO.loadInstanceDefinitionUnresolved(CoreFileSystem sliderFileSystem,
org.apache.hadoop.fs.Path clusterDirectory)
Load in an instance definition -but do not resolve it
|
| Modifier and Type | Method and Description |
|---|---|
void |
InstanceBuilder.init(String provider,
AggregateConf instanceConf)
Initial part of the build process
|
static void |
InstanceIO.saveInstanceDefinition(CoreFileSystem coreFS,
org.apache.hadoop.fs.Path dir,
AggregateConf instanceDefinition)
Update a persisted instance definition
|
| Constructor and Description |
|---|
AggregateConf(AggregateConf instanceDefinition)
Take a snapshot of the configuration
|
| Modifier and Type | Method and Description |
|---|---|
void |
ConfPersister.load(AggregateConf conf)
Load the configuration.
|
void |
ConfPersister.save(AggregateConf conf,
LockHeldAction action)
Save the configuration
|
static String |
AggregateConfSerDeser.toString(AggregateConf instance)
Convert a tree instance to a JSON string -sync access to a shared ser/deser
object instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
ProviderService.buildContainerLaunchContext(ContainerLauncher containerLauncher,
AggregateConf instanceDefinition,
org.apache.hadoop.yarn.api.records.Container container,
String role,
SliderFileSystem sliderFileSystem,
org.apache.hadoop.fs.Path generatedConfPath,
MapOperations resourceComponent,
MapOperations appComponent,
org.apache.hadoop.fs.Path containerTmpDirPath)
Set up the entire container launch context
|
String |
ProviderUtils.buildPathToHomeDir(AggregateConf instanceDefinition,
String bindir,
String script)
Build the image dir.
|
String |
ProviderUtils.buildPathToScript(AggregateConf instance,
String bindir,
String script)
Build the image dir.
|
boolean |
ProviderService.exec(AggregateConf instanceDefinition,
File confDir,
Map<String,String> env,
ProviderCompleted execInProgress)
Execute a process in the AM
|
boolean |
AbstractProviderService.exec(AggregateConf instanceDefinition,
File confDir,
Map<String,String> env,
ProviderCompleted execInProgress)
override point to allow a process to start executing in this container
|
void |
ProviderService.initializeApplicationConfiguration(AggregateConf instanceDefinition,
SliderFileSystem fileSystem)
The application configuration should be initialized here
|
void |
AbstractProviderService.initializeApplicationConfiguration(AggregateConf instanceDefinition,
SliderFileSystem fileSystem)
No-op implementation of this method.
|
protected void |
AbstractClientProvider.mergeTemplates(AggregateConf instanceConf,
String internalTemplate,
String resourceTemplate,
String appConfTemplate)
Load in and merge in templates.
|
void |
AbstractClientProvider.preflightValidateClusterConfiguration(SliderFileSystem sliderFileSystem,
String clustername,
org.apache.hadoop.conf.Configuration configuration,
AggregateConf instanceDefinition,
org.apache.hadoop.fs.Path clusterDirPath,
org.apache.hadoop.fs.Path generatedConfDirPath,
boolean secure)
This is called pre-launch to validate that the cluster specification
is valid.
|
void |
AbstractClientProvider.prepareAMAndConfigForLaunch(SliderFileSystem fileSystem,
org.apache.hadoop.conf.Configuration serviceConf,
AbstractLauncher launcher,
AggregateConf instanceDescription,
org.apache.hadoop.fs.Path snapshotConfDirPath,
org.apache.hadoop.fs.Path generatedConfDirPath,
org.apache.hadoop.conf.Configuration clientConfExtras,
String libdir,
org.apache.hadoop.fs.Path tempPath,
boolean miniClusterTestRun)
Prepare the AM settings for launch
|
void |
AbstractClientProvider.prepareInstanceConfiguration(AggregateConf aggregateConf)
Any provider-side alteration of a configuration can take place here.
|
void |
ProviderService.validateApplicationConfiguration(AggregateConf instanceDefinition,
File confDir,
boolean secure)
This is a validation of the application configuration on the AM.
|
void |
AbstractProviderService.validateApplicationConfiguration(AggregateConf instance,
File confDir,
boolean secure)
No-op implementation of this method.
|
void |
ProviderCore.validateInstanceDefinition(AggregateConf instanceDefinition)
Verify that an instance definition is considered valid by the provider
|
void |
AbstractClientProvider.validateInstanceDefinition(AggregateConf instanceDefinition,
SliderFileSystem fs)
Verify that an instance definition is considered valid by the provider
|
void |
ProviderUtils.validateNodeCount(AggregateConf instanceDescription,
String name,
int min,
int max) |
| Modifier and Type | Method and Description |
|---|---|
void |
AgentProviderService.buildContainerLaunchContext(ContainerLauncher launcher,
AggregateConf instanceDefinition,
org.apache.hadoop.yarn.api.records.Container container,
String role,
SliderFileSystem fileSystem,
org.apache.hadoop.fs.Path generatedConfPath,
MapOperations resourceComponent,
MapOperations appComponent,
org.apache.hadoop.fs.Path containerTmpDirPath) |
void |
AgentProviderService.initializeApplicationConfiguration(AggregateConf instanceDefinition,
SliderFileSystem fileSystem) |
void |
AgentClientProvider.preflightValidateClusterConfiguration(SliderFileSystem sliderFileSystem,
String clustername,
org.apache.hadoop.conf.Configuration configuration,
AggregateConf instanceDefinition,
org.apache.hadoop.fs.Path clusterDirPath,
org.apache.hadoop.fs.Path generatedConfDirPath,
boolean secure) |
void |
AgentClientProvider.prepareAMAndConfigForLaunch(SliderFileSystem fileSystem,
org.apache.hadoop.conf.Configuration serviceConf,
AbstractLauncher launcher,
AggregateConf instanceDefinition,
org.apache.hadoop.fs.Path snapshotConfDirPath,
org.apache.hadoop.fs.Path generatedConfDirPath,
org.apache.hadoop.conf.Configuration clientConfExtras,
String libdir,
org.apache.hadoop.fs.Path tempPath,
boolean miniClusterTestRun) |
void |
AgentProviderService.validateInstanceDefinition(AggregateConf instanceDefinition) |
void |
AgentClientProvider.validateInstanceDefinition(AggregateConf instanceDefinition,
SliderFileSystem fs) |
| Modifier and Type | Method and Description |
|---|---|
void |
SliderAMClientProvider.addJVMOptions(AggregateConf aggregateConf,
JavaCommandLineBuilder cmdLine)
Extract any JVM options from the cluster specification and
add them to the command line
|
protected void |
SliderAMClientProvider.addKeytabResourceIfNecessary(SliderFileSystem fileSystem,
AggregateConf instanceDescription,
Map<String,org.apache.hadoop.yarn.api.records.LocalResource> providerResources)
If the cluster is secure, and an HDFS installed keytab is available for AM
authentication, add this keytab as a local resource for the AM launch.
|
void |
SliderAMProviderService.buildContainerLaunchContext(ContainerLauncher containerLauncher,
AggregateConf instanceDefinition,
org.apache.hadoop.yarn.api.records.Container container,
String role,
SliderFileSystem sliderFileSystem,
org.apache.hadoop.fs.Path generatedConfPath,
MapOperations resourceComponent,
MapOperations appComponent,
org.apache.hadoop.fs.Path containerTmpDirPath) |
void |
SliderAMClientProvider.preflightValidateClusterConfiguration(SliderFileSystem sliderFileSystem,
String clustername,
org.apache.hadoop.conf.Configuration configuration,
AggregateConf instanceDefinition,
org.apache.hadoop.fs.Path clusterDirPath,
org.apache.hadoop.fs.Path generatedConfDirPath,
boolean secure) |
void |
SliderAMClientProvider.prepareAMAndConfigForLaunch(SliderFileSystem fileSystem,
org.apache.hadoop.conf.Configuration serviceConf,
AbstractLauncher launcher,
AggregateConf instanceDescription,
org.apache.hadoop.fs.Path snapshotConfDirPath,
org.apache.hadoop.fs.Path generatedConfDirPath,
org.apache.hadoop.conf.Configuration clientConfExtras,
String libdir,
org.apache.hadoop.fs.Path tempPath,
boolean miniClusterTestRun)
The Slider AM sets up all the dependency JARs above slider.jar itself
Prepare the AM settings for launch
|
void |
SliderAMClientProvider.prepareInstanceConfiguration(AggregateConf aggregateConf) |
void |
SliderAMProviderService.validateInstanceDefinition(AggregateConf instanceDefinition) |
void |
SliderAMClientProvider.validateInstanceDefinition(AggregateConf instanceDefinition,
SliderFileSystem fs)
Verify that an instance definition is considered valid by the provider
|
| Modifier and Type | Method and Description |
|---|---|
AggregateConf |
SliderAppMaster.getInstanceDefinition() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
SliderAppMaster.launchProviderService(AggregateConf instanceDefinition,
File confDir)
Launch the provider service
|
void |
RoleLaunchService.launchRole(ContainerAssignment assignment,
AggregateConf clusterSpec)
Start an asychronous launch operation
|
| Modifier and Type | Method and Description |
|---|---|
File |
SecurityConfiguration.getKeytabFile(AggregateConf instanceDefinition) |
| Constructor and Description |
|---|
SecurityConfiguration(org.apache.hadoop.conf.Configuration configuration,
AggregateConf instanceDefinition,
String clusterName) |
| Modifier and Type | Field and Description |
|---|---|
AggregateConf |
AppStateBindingInfo.instanceDefinition |
| Modifier and Type | Method and Description |
|---|---|
AggregateConf |
AppState.getInstanceDefinition() |
AggregateConf |
StateAccessForProviders.getInstanceDefinitionSnapshot()
Get a snapshot of the entire aggregate configuration
|
AggregateConf |
ProviderAppState.getInstanceDefinitionSnapshot() |
AggregateConf |
AppState.getInstanceDefinitionSnapshot() |
AggregateConf |
StateAccessForProviders.getUnresolvedInstanceDefinition()
Get the desired/unresolved value
|
AggregateConf |
ProviderAppState.getUnresolvedInstanceDefinition() |
AggregateConf |
AppState.getUnresolvedInstanceDefinition() |
| Modifier and Type | Method and Description |
|---|---|
void |
AppState.setInitialInstanceDefinition(AggregateConf definition)
Set the instance definition -this also builds the (now obsolete)
cluster specification from it.
|
| Modifier and Type | Method and Description |
|---|---|
AggregateConf |
ApplicationResource.getModelDesired() |
AggregateConf |
ApplicationResource.getModelResolved() |
protected AggregateConf |
ApplicationResource.lookupAggregateConf(String key)
Helper method; look up an aggregate configuration in the cache from
a key, or raise an exception
|
| Modifier and Type | Method and Description |
|---|---|
AggregateConf |
AggregateModelRefresher.refresh() |
| Modifier and Type | Method and Description |
|---|---|
protected AggregateConf |
ManagementResource.getAggregateConf() |
| Modifier and Type | Method and Description |
|---|---|
static AggregateConfResource |
ResourceFactory.createAggregateConfResource(AggregateConf conf,
javax.ws.rs.core.UriBuilder uriBuilder) |
| Constructor and Description |
|---|
AggregateConfResource(AggregateConf conf,
javax.ws.rs.core.UriBuilder uriBuilder) |
| Modifier and Type | Method and Description |
|---|---|
SecurityStore |
TruststoreGenerator.generate(String hostname,
String containerId,
AggregateConf instanceDefinition,
MapOperations compOps,
String role) |
SecurityStore |
SecurityStoreGenerator.generate(String hostname,
String containerId,
AggregateConf instanceDefinition,
MapOperations compOps,
String role) |
SecurityStore |
KeystoreGenerator.generate(String hostname,
String containerId,
AggregateConf instanceDefinition,
MapOperations compOps,
String role) |
static SecurityStore[] |
StoresGenerator.generateSecurityStores(String hostname,
String containerId,
String role,
AggregateConf instanceDefinition,
MapOperations compOps) |
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.