简体   繁体   English

使用 Spring 创建 Bucket Ceph

[英]Create Bucket Ceph with Spring

I am not sure how to create a bucket Ceph with Spring.我不确定如何使用 Spring 创建存储桶Ceph

Are there any documents I can prefer?有没有我可以选择的文件?
How to get this accessKey and secretKey?如何获得这个 accessKey 和 secretKey?

String accessKey = "insert your access key here!";
String secretKey = "insert your secret key here!";

AWSCredentials credentials = new BasicAWSCredentials(accessKey, secretKey);
AmazonS3 conn = new AmazonS3Client(credentials);
conn.setEndpoint("objects.dreamhost.com");

Please follow Ceph official document.请关注 Ceph 官方文档。
Doc: https://docs.ceph.com/en/quincy/radosgw/s3/java/文档: https://docs.ceph.com/en/quincy/radosgw/s3/java/

To get accessKey and secretKey please follow this step.要获取accessKeysecretKey ,请按照此步骤操作。
https://docs.ceph.com/en/quincy/radosgw/s3/authentication/ . https://docs.ceph.com/en/quincy/radosgw/s3/authentication/
https://docs.ceph.com/en/quincy/radosgw/keystone/ https://docs.ceph.com/en/quincy/radosgw/keystone/

openstack --os-interface public ec2 credentials create

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM