Github user shuai-xu commented on a diff in the pull request:
https://github.com/apache/flink/pull/3304#discussion_r103130387
--- Diff:
flink-yarn/src/main/java/org/apache/flink/yarn/YarnResourceManager.java ---
@@ -342,6 +346,14 @@ private ContainerLaunchContext
createTaskExecutorLaunchContext(Resource resource
FiniteDuration teRegistrationTimeout = new
FiniteDuration(timeout, TimeUnit.SECONDS);
final Configuration taskManagerConfig =
BootstrapTools.generateTaskManagerConfiguration(
flinkConfig, "", 0, 1, teRegistrationTimeout);
+ // Add resource profile of slots to task executor config.
+ // For yarn, all slots in a task executor have same resource
profile
+ ByteArrayOutputStream output = new ByteArrayOutputStream();
+ ObjectOutputStream rpOutput = new ObjectOutputStream(output);
+
rpOutput.writeObject(getResourceProfile(priority.getPriority()));
+ rpOutput.close();
+
taskManagerConfig.setString(ConfigConstants.TASK_MANAGER_RESOURCE_PROFILE_KEY,
+ new
String(Base64.encodeBase64(output.toByteArray())));
--- End diff --
Thank @rmetzger for the explanation. I think maybe we can use
flink-conf.yaml temporally and add a separate config file later.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---