question

francisdomoney@aol.com avatar image
francisdomoney@aol.com asked francisdomoney@aol.com commented

Cannot run dsetool status on k8s cluster running on Ubuntu 20.04

I have two issues I have encountered trying to run Logs and dsetool

kubectl -n cass-operator exec -it cluster2-dc2-default-sts-0 -- /bin/bash
Defaulting container name to cassandra.
Use 'kubectl describe pod/cluster2-dc2-default-sts-0 -n cass-operator' to see all of the containers in this pod.
dse@cluster2-dc2-default-sts-0:~$ dsetool status
Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused (Connection refused)

Any ideas. I have faithfully followed the README.md and the cluster is running

[UPDATE] Thanks. I am at the same point again. I have attached two screenshots

workshopcass-operator
1 comment
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

francisdomoney@aol.com avatar image francisdomoney@aol.com commented ·

[Re-posted comments in original question since this is not an "answer"]

0 Likes 0 ·
Cedrick Lunven avatar image
Cedrick Lunven answered francisdomoney@aol.com commented

Hi,

Looking at the logs are here It feels that the cluster is still initializing, As the Cassandra is not started yet the internal cqlsh command cannot reach any service. You need to wait until the pod move to state READY and RUNNING.


1 comment Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

francisdomoney@aol.com avatar image francisdomoney@aol.com commented ·

here is another screenshot of the machine state

0 Likes 0 ·
jim.dickinson_187342 avatar image
jim.dickinson_187342 answered francisdomoney@aol.com commented

Since you're seeing a number of containers restarting, I would bet that you're running out of memory.

1 comment Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

francisdomoney@aol.com avatar image francisdomoney@aol.com commented ·

Thanks Jim. I will try again once more this morning. I think I am identifying the limits of what I can run on a fairly well provisioned Ubuntu desktop machine. This valuable information. If Kubernetes drives me onto cloud I will needto think through the issues associated with this for use in a pan African context. There are cost, cybersecurity and geopolitical issues.

0 Likes 0 ·