apache/hadoop · error

Can't parse VECSUM_LENGTH of '%s'.

Error message

Can't parse VECSUM_LENGTH of '%s'.

What it means

Error "Can't parse VECSUM_LENGTH of '%s'. " thrown in apache/hadoop.

Source

Thrown at hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs-tests/vecsum.c:186

    opts = calloc(1, sizeof(struct options));
    if (!opts) {
        fprintf(stderr, "failed to calloc options\n");
        goto error;
    }
    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 "

View on GitHub (pinned to 2add963021)

Solutions

  1. Set VECSUM_LENGTH to a plain integer (bytes), e.g. export VECSUM_LENGTH=1048576.
  2. Remove units or non-numeric characters; only base-10 digits are accepted.

When it happens

Trigger: strtoll failed to parse the VECSUM_LENGTH environment variable.

Common situations: VECSUM_LENGTH contains non-numeric text such as '10MB' or is empty.


AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22). Data as JSON: /api/errors/2aa72f873db0ed78. Report an issue: GitHub.