{"record":{"id":"67d84aa93900f5e1","repo":"apache/hadoop","slug":"aliyun-oss-endpoint-should-not-be-null-or-empty-p","errorCode":null,"errorMessage":"Aliyun OSS endpoint should not be null or empty. Please set proper endpoint with 'fs.oss.endpoint'.","messagePattern":"Aliyun OSS endpoint should not be null or empty\\. Please set proper endpoint with 'fs\\.oss\\.endpoint'\\.","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/AliyunOSSFileSystemStore.java","lineNumber":163,"sourceCode":"        String msg = \"Proxy error: \" + PROXY_USERNAME_KEY + \" or \" +\n            PROXY_PASSWORD_KEY + \" set without the other.\";\n        LOG.error(msg);\n        throw new IllegalArgumentException(msg);\n      }\n      clientConf.setProxyUsername(proxyUsername);\n      clientConf.setProxyPassword(proxyPassword);\n      clientConf.setProxyDomain(conf.getTrimmed(PROXY_DOMAIN_KEY));\n      clientConf.setProxyWorkstation(conf.getTrimmed(PROXY_WORKSTATION_KEY));\n    } else if (proxyPort >= 0) {\n      String msg = \"Proxy error: \" + PROXY_PORT_KEY + \" set without \" +\n          PROXY_HOST_KEY;\n      LOG.error(msg);\n      throw new IllegalArgumentException(msg);\n    }\n\n    String endPoint = conf.getTrimmed(ENDPOINT_KEY, \"\");\n    if (StringUtils.isEmpty(endPoint)) {\n      throw new IllegalArgumentException(\"Aliyun OSS endpoint should not be \" +\n          \"null or empty. Please set proper endpoint with 'fs.oss.endpoint'.\");\n    }\n    CredentialsProvider provider =\n        AliyunOSSUtils.getCredentialsProvider(uri, conf);\n    ossClient = new OSSClient(endPoint, provider, clientConf);\n    uploadPartSize = AliyunOSSUtils.getMultipartSizeProperty(conf,\n        MULTIPART_UPLOAD_PART_SIZE_KEY, MULTIPART_UPLOAD_PART_SIZE_DEFAULT);\n\n    serverSideEncryptionAlgorithm =\n        conf.get(SERVER_SIDE_ENCRYPTION_ALGORITHM_KEY, \"\");\n\n    bucketName = uri.getHost();\n\n    String cannedACLName = conf.get(CANNED_ACL_KEY, CANNED_ACL_DEFAULT);\n    if (StringUtils.isNotEmpty(cannedACLName)) {\n      CannedAccessControlList cannedACL =\n          CannedAccessControlList.valueOf(cannedACLName);\n      ossClient.setBucketAcl(bucketName, cannedACL);","sourceCodeStart":145,"sourceCodeEnd":181,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/AliyunOSSFileSystemStore.java#L145-L181","documentation":"Error \"Aliyun OSS endpoint should not be null or empty. Please set proper endpoint with 'fs.oss.endpoint'.\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-tools/hadoop-aliyun/src/main/java/org/apache/hadoop/fs/aliyun/oss/AliyunOSSFileSystemStore.java:163 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set fs.oss.endpoint in core-site.xml to a valid Aliyun OSS endpoint for your region, e.g. oss-cn-hangzhou.aliyuncs.com.","Verify the endpoint value is not blank and matches the region of your OSS bucket."],"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-22T20:17:22.307Z"}