I am trying to use reaper to manage my cassandra cluster, so far I am using a bitnami-cassandra and deployed it in microk8s.
The cassandra cluster is fine, and I have 2 pods, nodetool works fine.
When I configured the test_cassandra-reaper.yaml and get it started with this command
REAPER_SYMMETRIC_KEY=$(echo REAPER_SYMMETRIC_KEY) java -jar server/target/cassandra-reaper-3.6.0.jar server resource/test_cassandra-reaper.yaml
I could see this very encouraging logs
WARN [2024-05-28 15:50:46,944] [main] i.c.ReaperApplication - Reaper is ready to get things done!
But when I get into the GUI at ‘http://localhost:8080/webui’, I cannot add any cluster!
So the ‘e-5cg2451q42’ is my hostname of WSL2, and also the name of my microk8s node.
I tried to replace the seed node with other names in below:
- localhost
- 127.0.0.1
- every pod name
- bitnami-cassandra-headless.default.svc.cluster.local
- bitnami-cassandra.default.svc.cluster.local
But the logs keep the same
caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at java.base/java.net.Socket.connect(Socket.java:558)
at java.base/java.net.Socket.<init>(Socket.java:454)
at java.base/java.net.Socket.<init>(Socket.java:231)
at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createSocket(TCPDirectSocketFactory.java:40)
at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:617)
... 16 common frames omitted
ERROR [2024-05-28 15:57:12,254] [dw-71 - POST /cluster/auth] i.c.r.ClusterResource - failed to find cluster with seed hosts: [e-5cg2451q42]
io.cassandrareaper.ReaperException: no host could be reached through JMX
at io.cassandrareaper.management.jmx.JmxManagementConnectionFactory.connectAny(JmxManagementConnectionFactory.java:218)
at io.cassandrareaper.management.jmx.JmxManagementConnectionFactory.connectAny(JmxManagementConnectionFactory.java:54)
at io.cassandrareaper.management.ClusterFacade.connectImpl(ClusterFacade.java:897)
at io.cassandrareaper.management.ClusterFacade.connect(ClusterFacade.java:879)
at io.cassandrareaper.management.ClusterFacade.getClusterName(ClusterFacade.java:220)
at io.cassandrareaper.resources.ClusterResource.findClusterWithSeedHost(ClusterResource.java:376)
In the logs, I find this line valuable:
‘no host could be reached through JMX’
But I don’t find an answer ANYWHERE
zihao zheng is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.