yuqi1129 commented on issue #6156:
URL: https://github.com/apache/gravitino/issues/6156#issuecomment-2577345213

   @gesaleh 
   
   It's okay for me to connect to Minio:
   
   ```
   (venv-spark-3.1) ➜  [/Users/yuqi] curl -X POST -H "Accept: 
application/vnd.gravitino.v1+json" \
   -H "Content-Type: application/json" -d '{
     "name": "minio_catalog_test",
     "type": "FILESET",
     "comment": "comment",
     "provider": "hadoop",
     "properties": {
       "location": "s3a://my-bucket/catalog",
       "s3-access-key-id": "ViLxBltqiqHecTEhKJZS",
       "s3-secret-access-key": "FCBhVC7tmUD9t0KyKrKo5oKvHak2LgSsADsb38Ip",
       "s3-endpoint": "http://192.168.215.4:9000";,
       "filesystem-providers": "s3"
     }
   }' http://localhost:8090/api/metalakes/test/catalogs
   
{"code":0,"catalog":{"name":"minio_catalog_test","type":"fileset","provider":"hadoop","comment":"comment","properties":{"s3-access-key-id":"ViLxBltqiqHecTEhKJZS","s3-secret-access-key":"FCBhVC7tmUD9t0KyKrKo5oKvHak2LgSsADsb38Ip","filesystem-providers":"s3","location":"s3a://my-bucket/catalog","s3-endpoint":"http://192.168.215.4:9000","in-use":"true"},"audit":{"creator":"anonymous","createTime":"2025-01-08T10:31:24.762Z","lastModifier":"anonymous","lastModifiedTime":"2025-01-08T10:31:24.762Z"}}}
   (venv-spark-3.1) ➜  [/Users/yuqi] curl -X POST -H "Accept: 
application/vnd.gravitino.v1+json" \
   -H "Content-Type: application/json" -d '{
     "name": "s3_schema",
     "comment": "comment",
     "properties": {
       "location": "s3a://my-bucket/schemaS3"
     }
   }' 
http://localhost:8090/api/metalakes/test/catalogs/minio_catalog_test/schemas
   
{"code":0,"schema":{"name":"s3_schema","comment":"comment","properties":{"location":"s3a://my-bucket/schemaS3"},"audit":{"creator":"anonymous","createTime":"2025-01-08T10:32:24.189Z"}}}
                                                                                
                                                                   
(venv-spark-3.1) ➜  [/Users/yuqi]
   ```
   
   The main I used: The lastest main branch.
   
   The following is how I do the test
   1. Start Minio locally
   ```
   docker run -p 9000:9000 \
       -e "MINIO_ROOT_USER=admin" \
       -e "MINIO_ROOT_PASSWORD=12345678" \
       -e "MINIO_BUCKET=my-bucket" \
       --name minio \
       minio/minio server /data
   ```
   
   Then log into Minio and obtain an AKSK.
   
   2. Copy `aws-bundle` to the Hadoop catalog classpath and start the Gravitino 
server
   3. Create a metake `test`
   4. Execute the command above. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to