{"record":{"id":"b47ee0b9fc3b1c46","repo":"apache/hadoop","slug":"you-must-set-the-vecsum-passes-environment-variabl","errorCode":null,"errorMessage":"You must set the VECSUM_PASSES environment variable to the number of passes to make.\n","messagePattern":"You must set the VECSUM_PASSES environment variable to the number of passes to make\\.\n","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs-tests/vecsum.c","lineNumber":198,"sourceCode":"    length_str = getenv(\"VECSUM_LENGTH\");\n    if (!length_str) {\n        length_str = \"2147483648\";\n    }\n    opts->length = atoll(length_str);\n    if (!opts->length) {\n        fprintf(stderr, \"Can't parse VECSUM_LENGTH of '%s'.\\n\",\n                length_str);\n        goto error;\n    }\n    if (opts->length % VECSUM_CHUNK_SIZE) {\n        fprintf(stderr, \"VECSUM_LENGTH must be a multiple of '%lld'.  The \"\n                \"currently specified length of '%lld' is not.\\n\",\n                (long long)VECSUM_CHUNK_SIZE, (long long)opts->length);\n        goto error;\n    }\n    pass_str = getenv(\"VECSUM_PASSES\");\n    if (!pass_str) {\n        fprintf(stderr, \"You must set the VECSUM_PASSES environment \"\n            \"variable to the number of passes to make.\\n\");\n        goto error;\n    }\n    opts->passes = atoi(pass_str);\n    if (opts->passes <= 0) {\n        fprintf(stderr, \"Invalid value for the VECSUM_PASSES \"\n            \"environment variable.  You must set this to a \"\n            \"number greater than 0.\\n\");\n        goto error;\n    }\n    ty_str = getenv(\"VECSUM_TYPE\");\n    if (!ty_str) {\n        fprintf(stderr, \"You must set the VECSUM_TYPE environment \"\n            \"variable to \" VECSUM_TYPE_VALID_VALUES \"\\n\");\n        goto error;\n    }\n    ty = parse_vecsum_type(ty_str);\n    if (ty < 0) {","sourceCodeStart":180,"sourceCodeEnd":216,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfs-tests/vecsum.c#L180-L216","documentation":"Error \"You must set the VECSUM_PASSES environment variable to the number of passes to make.\n\" thrown in apache/hadoop.","triggerScenarios":"vecsum startup validation: the VECSUM_PASSES environment variable is unset.","commonSituations":"User launched vecsum without specifying how many read passes to perform.","solutions":["Export VECSUM_PASSES with a positive integer, e.g. export VECSUM_PASSES=3."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-23T01:17:44.959Z"}