public abstract class AbstractFlinkYarnClient extends Object
Constructor and Description |
---|
AbstractFlinkYarnClient() |
Modifier and Type | Method and Description |
---|---|
abstract AbstractFlinkYarnCluster |
deploy()
Trigger the deployment to YARN.
|
abstract String |
getClusterDescription()
Returns a String containing details about the cluster (NodeManagers, available memory, ...)
|
abstract String |
getDynamicPropertiesEncoded() |
abstract Configuration |
getFlinkConfiguration() |
abstract org.apache.hadoop.fs.Path |
getFlinkLoggingConfigurationPath() |
abstract String |
getSessionFilesDir() |
abstract int |
getTaskManagerCount() |
abstract int |
getTaskManagerSlots() |
abstract boolean |
isDetached() |
abstract void |
setConfigurationDirectory(String confDirPath) |
abstract void |
setConfigurationFilePath(org.apache.hadoop.fs.Path confPath) |
abstract void |
setDetachedMode(boolean detachedMode) |
abstract void |
setDynamicPropertiesEncoded(String dynamicPropertiesEncoded) |
abstract void |
setFlinkConfiguration(Configuration conf)
Flink configuration
|
abstract void |
setFlinkLoggingConfigurationPath(org.apache.hadoop.fs.Path logConfPath) |
abstract void |
setJobManagerMemory(int memoryMB) |
abstract void |
setLocalJarPath(org.apache.hadoop.fs.Path localJarPath) |
abstract void |
setName(String name)
Set a name for the YARN application
|
abstract void |
setQueue(String queue) |
abstract void |
setShipFiles(List<File> shipFiles)
List of files to transfer to the YARN containers.
|
abstract void |
setTaskManagerCount(int tmCount) |
abstract void |
setTaskManagerMemory(int memoryMB) |
abstract void |
setTaskManagerSlots(int slots) |
public abstract void setJobManagerMemory(int memoryMB)
memoryMB
- The amount of memory for the JobManager (in MB)public abstract void setTaskManagerMemory(int memoryMB)
memoryMB
- The memory per TaskManager (in MB)public abstract void setFlinkConfiguration(Configuration conf)
public abstract Configuration getFlinkConfiguration()
public abstract void setTaskManagerSlots(int slots)
slots
- The number of TaskManager slots per TaskManager.public abstract int getTaskManagerSlots()
public abstract void setQueue(String queue)
queue
- Name of the YARN queuepublic abstract void setLocalJarPath(org.apache.hadoop.fs.Path localJarPath)
localJarPath
- Local Path to the Flink uberjarpublic abstract void setConfigurationFilePath(org.apache.hadoop.fs.Path confPath)
confPath
- local path to the Flink configuration filepublic abstract void setFlinkLoggingConfigurationPath(org.apache.hadoop.fs.Path logConfPath)
logConfPath
- local path to the flink logging configurationpublic abstract org.apache.hadoop.fs.Path getFlinkLoggingConfigurationPath()
public abstract void setTaskManagerCount(int tmCount)
tmCount
- number of TaskManagers to startpublic abstract int getTaskManagerCount()
public abstract void setConfigurationDirectory(String confDirPath)
confDirPath
- Path to config directory.public abstract void setShipFiles(List<File> shipFiles)
public abstract void setDynamicPropertiesEncoded(String dynamicPropertiesEncoded)
dynamicPropertiesEncoded
- Encoded String of the dynamic properties (-D configuration values of the Flink configuration)public abstract String getDynamicPropertiesEncoded()
public abstract String getClusterDescription() throws Exception
Exception
public abstract AbstractFlinkYarnCluster deploy() throws Exception
Exception
public abstract void setDetachedMode(boolean detachedMode)
detachedMode
- If true, the Flink YARN client is non-blocking. That means it returns
once Flink has been started successfully on YARN.public abstract boolean isDetached()
public abstract String getSessionFilesDir()
public abstract void setName(String name)
name
- Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.