public class InstanceBuilder extends Object
| Constructor and Description |
|---|
InstanceBuilder(CoreFileSystem coreFileSystem,
org.apache.hadoop.conf.Configuration conf,
String clustername) |
| Modifier and Type | Method and Description |
|---|---|
void |
addZKBinding(ZKPathBuilder zkBinding)
Add the ZK paths to the application options.
|
AggregateConf |
getInstanceDescription() |
InstancePaths |
getInstancePaths() |
void |
init(String provider,
AggregateConf instanceConf)
Initial part of the build process
|
void |
persist(org.apache.hadoop.fs.Path appconfdir,
boolean overwrite)
Persist this
|
void |
propagateFilename() |
void |
propagatePrincipals()
Propagate any critical principals from the current site config down to the HBase one.
|
void |
setImageDetailsIfAvailable(org.apache.hadoop.fs.Path appImage,
String appHomeDir)
Set up the image/app home path
|
void |
setQueue(String queue)
Set the queue used to start the application
|
void |
takeSnapshotOfConfDir(org.apache.hadoop.fs.Path appconfdir) |
String |
toString() |
public InstanceBuilder(CoreFileSystem coreFileSystem, org.apache.hadoop.conf.Configuration conf, String clustername)
public AggregateConf getInstanceDescription()
public InstancePaths getInstancePaths()
public void init(String provider, AggregateConf instanceConf)
instanceConf - provider - public void setQueue(String queue) throws BadConfigException
queue - BadConfigExceptionpublic void setImageDetailsIfAvailable(org.apache.hadoop.fs.Path appImage,
String appHomeDir)
throws BadConfigException
appImage - path in the DFS to the tar fileappHomeDir - other strategy: home dirBadConfigException - if both are foundpublic void propagatePrincipals()
public void propagateFilename()
public void takeSnapshotOfConfDir(org.apache.hadoop.fs.Path appconfdir)
throws IOException,
BadConfigException,
BadClusterStateException
public void persist(org.apache.hadoop.fs.Path appconfdir,
boolean overwrite)
throws IOException,
SliderException,
LockAcquireFailedException
appconfdir - conf diroverwrite - if true, we don't need to create cluster dirIOExceptionSliderExceptionLockAcquireFailedExceptionpublic void addZKBinding(ZKPathBuilder zkBinding) throws BadConfigException
zkBinding - ZK bindingBadConfigExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.