0
我試圖在Hazelcast 3.6 EA中使用基於jClouds的新發現機制。但是,無法使用與原生AWS發現完全相同的憑據進行工作。這裏有兩個CONFIGS:jClouds發現不適用於Hazelcast 3.6 EA
本地AWS(作品):
<network>
<join>
<multicast enabled="false" />
<tcp-ip enabled="false" />
<aws enabled="true">
<access-key>AKIAXXXXXXXXXXXXX</access-key>
<secret-key>YYYYYYYYYYYYYYYYY</secret-key>
<region>eu-west-1</region>
<host-header>ec2.amazonaws.com</host-header>
</aws>
</join>
</network>
jClouds(不工作):
<properties>
<property name="hazelcast.discovery.enabled">true</property>
</properties>
<network>
<join>
<multicast enabled="false" />
<tcp-ip enabled="false" />
<aws enabled="false" />
<discovery-strategies>
<discovery-strategy class="com.hazelcast.jclouds.JCloudsDiscoveryStrategy" enabled="true">
<properties>
<property name="provider">aws-ec2</property>
<property name="identity">AKIAXXXXXXXXXXXXX</property>
<property name="credential">YYYYYYYYYYYYYYYYY</property>
<property name="regions">eu-west-1</property>
</properties>
</discovery-strategy>
</discovery-strategies>
</join>
</network>
更多設置:2種情況下它們是相同的彈性部分Beanstalk應用程序。端口5701公開(用於測試)。爲Hazelcast啓用DEBUG日誌級別。 AWS用戶必須執行ec2:describe*
啓用jClouds發現的權限,每個節點只看到自己:
DEBUG: Log4jFactory.java:93 [172.31.5.117]:5701 [dev] [3.6-EA] This node will assume master role since no possible member where connected to.
DEBUG: Log4jFactory.java:93 [172.31.5.117]:5701 [dev] [3.6-EA] This node is being set as the master
DEBUG: Log4jFactory.java:93 [172.31.5.117]:5701 [dev] [3.6-EA] PostJoin master: Address[172.31.5.117]:5701, isMaster: true
INFO : Log4jFactory.java:99 [172.31.5.117]:5701 [dev] [3.6-EA]
Members [1] {
Member [172.31.5.117]:5701 this
}
你可以試試3.6-EA2嗎?如果您仍然遇到問題,我們很樂意爲您提供幫助。 http://hazelcast.org/download/ – Mesut
@Mesut剛剛嘗試過3.6-EA3,完美適用於jclouds和IAM角色。謝謝! – Rustam