hazelcast / hazelcast-mesos

Hazelcast on Mesos
Apache License 2.0
11 stars 4 forks source link

A hazelcast node join to claster #8

Open neee opened 7 years ago

neee commented 7 years ago

The hazelcst framework contain archive with hazelcast-mesos-0.1 which contains:

mode    nlink   uid gid size    mtime       
-rw-r--r--  1   root    root    8 MB    Nov 30 20:17     hazelcast-3.6.jar   Download
-rw-r--r--  1   501 games   1 MB    Apr 12 12:05     hazelcast-mesos-executor.jar    Download
-rw-r--r--  1   501 games   11 MB   Apr 12 12:05     hazelcast-mesos-scheduler.jar   Download
-rw-r--r--  1   501 games   6 MB    Apr 12 12:05     hazelcast-zookeeper.jar     Download
-rw-r--r--  1   501 games   3 KB    Apr 12 12:05     hazelcast.xml   Download
-rw-r--r--  1   501 games   11 KB   Feb 26 16:11     LICENSE     Download
-rw-r--r--  1   501 games   551 B   Apr 07 15:47     marathon.json   Download
-rw-r--r--  1   501 games   4 KB    Apr 12 12:04     README.md   Download
-rw-r--r--  1   501 games   312 B   Apr 12 12:05     start.sh    Download

In this archive we have all of need to start hazelcast, but if you want to change default values, which are contained in hazelcast.xml you need repack this remote archive.

In my case I need change zookeeper host, cause my host not is localhost. I receive below errors:

SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Nov 30, 2016 5:19:31 PM com.hazelcast.cluster.impl.DiscoveryJoiner
SEVERE: [172.17.0.1]:5701 [dev] [3.6] Error while talking to ZooKeeper
java.lang.IllegalStateException: Error while talking to ZooKeeper
    at com.hazelcast.zookeeper.ZookeeperDiscoveryStrategy.discoverNodes(ZookeeperDiscoveryStrategy.java:132)
    at com.hazelcast.spi.discovery.impl.DefaultDiscoveryService.discoverNodes(DefaultDiscoveryService.java:74)
    at com.hazelcast.cluster.impl.DiscoveryJoiner.getPossibleAddresses(DiscoveryJoiner.java:42)
    at com.hazelcast.cluster.impl.TcpIpJoiner.joinViaPossibleMembers(TcpIpJoiner.java:126)
    at com.hazelcast.cluster.impl.TcpIpJoiner.doJoin(TcpIpJoiner.java:84)
    at com.hazelcast.cluster.impl.AbstractJoiner.join(AbstractJoiner.java:103)
    at com.hazelcast.instance.Node.join(Node.java:581)
    at com.hazelcast.instance.Node.start(Node.java:339)
    at com.hazelcast.instance.HazelcastInstanceImpl.<init>(HazelcastInstanceImpl.java:131)
    at com.hazelcast.instance.HazelcastInstanceFactory.constructHazelcastInstance(HazelcastInstanceFactory.java:160)
    at com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:143)
    at com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:111)
    at com.hazelcast.core.Hazelcast.newHazelcastInstance(Hazelcast.java:58)
    at com.hazelcast.core.server.StartServer.main(StartServer.java:36)
Caused by: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /discovery/hazelcast/hazelcast
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
    at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1590)
    at org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:214)
    at org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:203)
    at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:107)
    at org.apache.curator.framework.imps.GetChildrenBuilderImpl.pathInForeground(GetChildrenBuilderImpl.java:200)
    at org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:191)
    at org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:38)
    at org.apache.curator.x.discovery.details.ServiceDiscoveryImpl.queryForInstances(ServiceDiscoveryImpl.java:369)
    at org.apache.curator.x.discovery.details.ServiceDiscoveryImpl.queryForInstances(ServiceDiscoveryImpl.java:293)
    at com.hazelcast.zookeeper.ZookeeperDiscoveryStrategy.discoverNodes(ZookeeperDiscoveryStrategy.java:116)
    ... 13 more

Nov 30, 2016 5:19:32 PM com.hazelcast.instance.Node
SEVERE: [172.17.0.1]:5701 [dev] [3.6] Could not join cluster in 300000 ms. Shutting down now!
Nov 30, 2016 5:19:32 PM com.hazelcast.core.LifecycleService
INFO: [172.17.0.1]:5701 [dev] [3.6] Address[172.17.0.1]:5701 is SHUTTING_DOWN
Nov 30, 2016 5:19:32 PM com.hazelcast.instance.Node
WARNING: [172.17.0.1]:5701 [dev] [3.6] Terminating forcefully...