apache/hadoop · error · IllegalArgumentException
Invalid virtual cores specified for application master, exit
Error message
Invalid virtual cores specified for application master, exiting. Specified virtual cores={} What it means
Error "Invalid virtual cores specified for application master, exiting. Specified virtual cores={}" thrown in apache/hadoop.
Source
Thrown at hadoop-tools/hadoop-dynamometer/hadoop-dynamometer-infra/src/main/java/org/apache/hadoop/tools/dynamometer/Client.java:439
fsImageDir = fsImageDir.makeQualified(localFS.getUri(),
localFS.getWorkingDirectory());
FileSystem fsImageFS = fsImageDir.getFileSystem(getConf());
FileStatus[] fsImageFiles = fsImageFS.listStatus(fsImageDir,
(path) -> path.getName().matches("^fsimage_(\\d)+$"));
if (fsImageFiles.length != 1) {
throw new IllegalArgumentException(
"Must be exactly one fsimage file present in fs_image_dir");
}
fsImagePath = fsImageFiles[0].getPath().toString();
fsImageMD5Path = fsImageFiles[0].getPath().suffix(".md5").toString();
}
if (amMemory < 0) {
throw new IllegalArgumentException("Invalid memory specified for "
+ "application master, exiting. Specified memory=" + amMemory);
}
if (amVCores < 0) {
throw new IllegalArgumentException("Invalid virtual cores specified for "
+ "application master, exiting. Specified virtual cores=" + amVCores);
}
this.appName = commandLine.getOptionValue(APPNAME_ARG, APPNAME_DEFAULT);
this.amQueue = commandLine.getOptionValue(QUEUE_ARG, QUEUE_DEFAULT);
this.amMemory = Integer.parseInt(commandLine
.getOptionValue(MASTER_MEMORY_MB_ARG, MASTER_MEMORY_MB_DEFAULT));
this.amVCores = Integer.parseInt(
commandLine.getOptionValue(MASTER_VCORES_ARG, MASTER_VCORES_DEFAULT));
this.confPath = commandLine.getOptionValue(CONF_PATH_ARG);
this.blockListPath = commandLine.getOptionValue(BLOCK_LIST_PATH_ARG);
if (commandLine.hasOption(HADOOP_BINARY_PATH_ARG)) {
this.hadoopBinary = commandLine.getOptionValue(HADOOP_BINARY_PATH_ARG);
} else {
this.hadoopBinary = DynoInfraUtils.fetchHadoopTarball(
new File(".").getAbsoluteFile(),
commandLine.getOptionValue(HADOOP_VERSION_ARG), getConf(), LOG)
.toString();View on GitHub (pinned to 2add963021)
Solutions
- Set a positive --am_vcores value for the dynamometer client and resubmit.
When it happens
Trigger: The -master_vcores argument passed to the dynamometer Client is not a positive integer, so the application master container request cannot be built.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/7c4b870506947513.
Report an issue: GitHub.