hface
hface copied to clipboard
ClassNotFoundException
Hello,
I just followed the documentation: Checkout the code, compile and run. I'm connected to my Hazelcast cluster, but I obtain that exception, when it tries to read from the nodes
WARNING: could not read stats from node [ #object[com.hazelcast.client.impl.MemberImpl 0x758a46a1 Member [XXXXXXXXX]:XXXX - d300a7fb-a00d-4b4d-8e82-78c93a01058b] ]: com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.ClassNotFoundException: org.hface.InstanceStatsTask Jun 15, 2017 2:24:52 PM clojure.tools.logging$eval1155$fn__1159 invoke WARNING: could not read stats from node [ #object[com.hazelcast.client.impl.MemberImpl 0x5de34984 Member [XXXXXXXXX]:XXXX - 4e614058-c91d-4383-b972-65c6bf698590] ]: com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.ClassNotFoundException: org.hface.InstanceStatsTask Jun 15, 2017 2:24:52 PM clojure.tools.logging$eval1155$fn__1159 invoke
Any clue what it could be ? Thanks, Carl
Hey Carl,
Sure. The idea is to monitor the cluster by distributing a "task" across all the Hazelcast nodes. This task would collect the stats and would report them back to hface
.
The task is this little class: org.hface.InstanceStatsTask
, which lives in this 8K
dependency:
<dependency>
<groupId>org.hface</groupId>
<artifactId>hface-client</artifactId>
<version>0.1.4</version>
</dependency>
Hence in order to be able to use hface
with a Hazelcast cluster, this cluster would need to add this dependency, so when you start the cluster (nodes) they would know about this org.hface.InstanceStatsTask
class.
Hey tolitus,
Thanks for your answer! I will that when I can.
Carl
@tolitius I want to run Hazelcast like a service and in order, to monitor, it's behavior I want to use hface so after clone Hazelcast from Github add this dependency
<dependency>
<groupId>org.hface</groupId>
<artifactId>hface-client</artifactId>
<version>0.1.4</version>
</dependency>
at the end of all pom.xml
dependencies and compile that I still get error
com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.ClassNotFoundException: org.hface.InstanceStatsTask
What I did wrong? How can I use hface?
just to understand better what you are doing:
- why clone hazelcast? you can create your own "server" node by having a small project with two dependencies: i.e.
hazelcast
andhface-client
. changing hazelcast code does not sound right.
and compile that I still get error
-
where and when do you get
ClassNotFoundException
? -
which hazelcast version are you trying it with?
Hello @tolitius Thank you for response
- why clone Hazelcast? I cloned to add
hface
dependency in. I want to have each node with hface monitoring functionality - where and when do you get? After compiling Hazelcast with
hface
dependency without any error and try to connect hface to each of Hazelcast node - which Hazelcast version are you trying it with?
hazelcast-3.10.1
I created a sample for you, it is a hazecast server with the hface client dependency: https://github.com/tolitius/hface-server
@tolitius Thank you very much