有没有一种方法可以使用S3_PING发现协议访问S3存储桶中的特定路径?

时间:2019-05-21 15:51:19

标签: jgroups

我正在尝试将S3_PING用作独立集群环境的发现协议,并且当我使用bucket_name(包括我有权使用的目录的路径)时,连接超时。 (仅供参考,我可以对存储桶执行ping操作)

我尝试了location属性和prefix属性。

<property name="location">bucket_name/doc_storage/</property>
<property name="prefix">bucket_name/doc_storage/</property>

<stack name="s3ping">
    <transport type="TCP" socket-binding="jgroups-tcp" diagnostics-socket-binding="jgroups-diagnostics"/>
    <protocol type="S3_PING">
        <property name="access_key">
            xxxxxxxxxxxxxxxx
        </property>
        <property name="secret_access_key">
            xxxxxxxxxxxxxxxx
        </property>
        <property name="location">
            S3_BUCKET_NAME/foo/bar
         </property>
        <property name="timeout">
            60000
        </property>
    </protocol>

0 个答案:

没有答案
相关问题