首页 新闻 会员 周边 捐助

Hazelcast 客户端错误

0
悬赏园豆:20 [待解决问题]

刚刚弄Hazelcast 不太懂,求救于各位大神们,在线等候。

我的代码,包已经加入classpath:

 ClientConfig clientConfig = new ClientConfig();
  clientConfig.addAddress("127.0.0.1:5701");
  HazelcastInstance client = HazelcastClient.newHazelcastClient(clientConfig);
  IMap map = client.getMap("customers");
  System.out.println("Map Size:" + map.size());

出现如下错误:

信息: ConnectionManager shutdown
Exception in thread "main" java.lang.IllegalStateException: Unable to connect to cluster
 at com.hazelcast.client.HazelcastClient.<init>(HazelcastClient.java:97)
 at com.hazelcast.client.HazelcastClient.newHazelcastClient(HazelcastClient.java:143)
 at GettingStarted.main(GettingStarted.java:26)

girllele的主页 girllele | 初学一级 | 园豆:182
提问于:2013-03-28 10:41
< >
分享
所有回答(1)
0

请问解决了么?

蓝色憨耗子 | 园豆:202 (菜鸟二级) | 2022-05-26 11:44
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册