apache/hadoop · error
VECSUM_LENGTH must be a multiple of '%lld'. The currently s
Error message
VECSUM_LENGTH must be a multiple of '%lld'. The currently specified length of '%lld' is not.
What it means
Error "VECSUM_LENGTH must be a multiple of '%lld'. The currently specified length of '%lld' is not. " thrown in apache/hadoop.
Source
Thrown at hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs-tests/vecsum.c:191
}
opts->path = getenv("VECSUM_PATH");
if (!opts->path) {
fprintf(stderr, "You must set the VECSUM_PATH environment "
"variable to the path of the file to read.\n");
goto error;
}
length_str = getenv("VECSUM_LENGTH");
if (!length_str) {
length_str = "2147483648";
}
opts->length = atoll(length_str);
if (!opts->length) {
fprintf(stderr, "Can't parse VECSUM_LENGTH of '%s'.\n",
length_str);
goto error;
}
if (opts->length % VECSUM_CHUNK_SIZE) {
fprintf(stderr, "VECSUM_LENGTH must be a multiple of '%lld'. The "
"currently specified length of '%lld' is not.\n",
(long long)VECSUM_CHUNK_SIZE, (long long)opts->length);
goto error;
}
pass_str = getenv("VECSUM_PASSES");
if (!pass_str) {
fprintf(stderr, "You must set the VECSUM_PASSES environment "
"variable to the number of passes to make.\n");
goto error;
}
opts->passes = atoi(pass_str);
if (opts->passes <= 0) {
fprintf(stderr, "Invalid value for the VECSUM_PASSES "
"environment variable. You must set this to a "
"number greater than 0.\n");
goto error;
}
ty_str = getenv("VECSUM_TYPE");View on GitHub (pinned to 2add963021)
Solutions
- Choose a VECSUM_LENGTH that is an exact multiple of the printed alignment (typically sizeof(double) or the read chunk size).
- Round the length up or down to the nearest multiple and re-export VECSUM_LENGTH.
When it happens
Trigger: vecsum validates that VECSUM_LENGTH is a multiple of the required alignment and it is not.
Common situations: User supplied an odd byte length not divisible by the checksum unit size used by the benchmark.
AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22).
Data as JSON: /api/errors/b9160f9114ac5aa8.
Report an issue: GitHub.