Hasan Özçiftci
07/08/2025, 8:35 AMkapa.ai
07/08/2025, 8:36 AMjava.lang.IllegalArgumentException: Invalid S3 URI: 'http://minio.data-dev.svc.cluster.local:9000/warehouse-dev?...' indicates that the S3 Data Lake destination in Airbyte is not accepting the MinIO URL as a valid S3 URI. This is a common issue when using S3-compatible storage like MinIO, especially with the Iceberg protocol and Nessie REST catalog. ### Key Points from Airbyte Documentation - The warehouse location must be in the format `s3://<bucket name>/path/within/bucket`—not an HTTP URL. For example: s3://warehouse-dev/airbyte/ Do not use http://minio... as the warehouse location. [See setup guide](https://docs.airbyte.com/integrations/destinations/s3-data-lake#iceberg-catalog-setup-and-permissions) - When using MinIO, you must set the S3 Endpoint field in the connector configuration to your MinIO URL (e.g., `http://minio.data-dev.svc.cluster.local:9000`). This tells the connector to use your MinIO instance instead of AWS S3. [See S3 config reference](https://docs.airbyte.com/integrations/destinations/s3#step-2-set-up-the-s3-destination-connector-in-airbyte) - The warehouse location should always be an S3 URI, not an HTTP URL, even for MinIO. ### What to Do 1. Set the warehouse location to an S3 URI: s3://warehouse-dev/airbyte/ Replace warehouse-dev and airbyte with your actual bucket and path. 2. Set the S3 Endpoint: - In the Airbyte S3 Data Lake destination configuration, set the S3 Endpoint to your MinIO URL: http://minio.data-dev.svc.cluster.local:9000 3. Other Required Fields: - S3 Bucket Name: warehouse-dev - S3 Bucket Region: (can be any string, e.g., us-east-1, as MinIO ignores this) - AWS Access Key ID / Secret Access Key: your MinIO credentials 4. Nessie REST Catalog: - Enter the URI of your Nessie REST catalog and access token as required. ### Example Configuration json { "catalog_type": "nessie", "main_branch_name": "main", "s3_bucket_name": "warehouse-dev", "s3_bucket_region": "us-east-1", "warehouse_location": "s3://warehouse-dev/airbyte/", "s3_endpoint": "http://minio.data-dev.svc.cluster.local:9000", "access_key_id": "<minio-access-key>", "secret_access_key": "<minio-secret-key>", "nessie_uri": "<nessie-rest-catalog-uri>", "nessie_access_token": "<nessie-access-token>" } ### Summary - Do not use an HTTP URL for the warehouse location. - Do use the S3 URI format for warehouse location. - Set the S3 Endpoint to your MinIO URL. If you follow these steps and still encounter issues, double-check that your MinIO bucket exists and your credentials are correct. If the error persists, it may be a compatibility issue with the connector version and MinIO, as some users have reported regressions in newer versions of the S3 connectors with MinIO support [[destination-S3]does not work with Minio](https://github.com/airbytehq/airbyte/issues/59197). For more details, see the [S3 Data Lake setup guide](https://docs.airbyte.com/integrations/destinations/s3-data-lake#iceberg-catalog-setup-and-permissions) and [S3 config reference](https://docs.airbyte.com/integrations/destinations/s3#step-2-set-up-the-s3-destination-connector-in-airbyte).Hasan Özçiftci
07/08/2025, 8:39 AMkapa.ai
07/08/2025, 8:39 AMkapa.ai
07/08/2025, 8:40 AMhttp://minio.data-dev.svc.cluster.local:9000/warehouse-dev?...). This is not a valid S3 URI and is likely the cause of the error. Key points from the documentation: - The warehouse location must be in the format `s3://<bucket name>/path/within/bucket`—never an HTTP URL, even for MinIO. - The S3 endpoint (for MinIO) should be set in the connector configuration, not in the warehouse location field. - The error you are seeing (Invalid S3 URI: 'http://minio...') suggests that somewhere in the configuration or in the connector's internal logic, the endpoint is being incorrectly prepended to the warehouse location, resulting in an invalid URI. Known Issues: - There are open issues with S3-compatible storage (like MinIO) and custom endpoints, where Airbyte does not always handle the endpoint and region parameters correctly, especially in non-AWS environments. Users have reported that the connector sometimes fails to use the custom endpoint as intended, or combines it incorrectly with the warehouse location, leading to errors like the one you are seeing [[STORAGE-S3] Add Support for Custom S3 Endpoint](https://github.com/airbytehq/airbyte/issues/44174), [[destination-S3]does not work with Minio](https://github.com/airbytehq/airbyte/issues/59197). What you can do: - Double-check that your warehouse location is strictly in the form s3://your-bucket/path/ and that the S3 endpoint is only set in the endpoint field. - If your configuration is correct and you still get this error, it is likely a bug or limitation in the current Airbyte S3 Data Lake connector’s handling of custom endpoints and S3-compatible storage. - This issue has been reported by other users and is not fully resolved in the current connector versions. Summary: If you are following the documentation and still seeing this error, it is likely due to a known issue with how Airbyte handles custom S3 endpoints for MinIO. The knowledge sources do not provide a workaround or fix for this specific error, and it may require a connector update or patch from the Airbyte team. You may want to follow or comment on the related GitHub issues to track progress or provide additional details about your setup [[STORAGE-S3] Add Support for Custom S3 Endpoint](https://github.com/airbytehq/airbyte/issues/44174), [[destination-S3]does not work with Minio](https://github.com/airbytehq/airbyte/issues/59197).