Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static class YarnCluster {
private final Set<String> resourcesToLocalize;

/**
* JARs that will be localized and put into the classpaths for bot JobManager and TaskManager.
* JARs that will be localized and put into the classpaths for both JobManager and TaskManager.
*/
@JsonProperty("additional.jars")
private final Set<String> additionalJars;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import com.uber.athenax.vm.compiler.planner.JobCompilationResult;
import org.apache.flink.annotation.VisibleForTesting;
import org.apache.flink.configuration.Configuration;
import org.apache.flink.configuration.JobManagerOptions;
import org.apache.flink.util.Preconditions;
import org.apache.hadoop.yarn.api.records.ApplicationId;
import org.apache.hadoop.yarn.api.records.ApplicationReport;
Expand Down Expand Up @@ -210,6 +211,9 @@ void scanAll() throws IOException, YarnException {
if (instance == null) {
LOG.warn("Failed to retrieve instance info for {}:{}", cluster.name(), report.getApplicationId());
} else {
instance.status().setAllocatedVCores(instance.status().getAllocatedVCores() - 1);
instance.status().setAllocatedMB(instance.status().getAllocatedMB()
- flinkConf.getInteger(JobManagerOptions.JOB_MANAGER_HEAP_MEMORY));
newInstances.put(instance.metadata().uuid(), instance);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class YarnClusterConfiguration {
private final Set<Path> resourcesToLocalize;

/**
* JARs that will be localized and put into the classpaths for bot JobManager and TaskManager.
* JARs that will be localized and put into the classpaths for both JobManager and TaskManager.
*/
private final Set<Path> systemJars;

Expand Down