Take a look here then and see what you have got the jmx authentication set to, see if that helps you.
https://www.guru99.com/cassandra-security.html#7 Sorry for the short answer, New Years Day and away from my computer to look things up properly. Sent from my iPhone > On 1 Jan 2021, at 23:14, Manu Chadha <manu.cha...@hotmail.com> wrote: > > Just nodetool doesn't work unfortunately > > Sent from my iPhone > >>> On 1 Jan 2021, at 21:28, Paul Chandler <p...@redshots.com> wrote: >>> >> Hi Manu, >> >> nodetool uses the JMX user and password, I think the normal default for that >> is for it not being required, but not sure if that is the case for the setup >> you are using. So just try nodetool flush and see if that works. >> >> Regards >> >> Paul >> >> Sent from my iPhone >> >>> On 1 Jan 2021, at 20:41, Manu Chadha <manu.cha...@hotmail.com> wrote: >>> >>> >>> In fact, I notice that I can’t run any nodetool command. I get the error >>> even when running nodetool status command >>> >>> Sent from Mail for Windows 10 >>> >>> From: Manu Chadha >>> Sent: 01 January 2021 20:36 >>> To: user@cassandra.apache.org >>> Subject: username/password error when using nodetool flush >>> >>> Hi >>> >>> Happy New Year. >>> >>> I am trying to use `nodetool flush -u username` but I get error `nodetool: >>> Failed to connect to '127.0.0.1:7199' - FailedLoginException: 'Invalid >>> username or password'.` >>> >>> I am using the same credentials which I use in `cqlsh -u -p`. As far as I >>> can observe, I am using the right values. >>> >>> I am running `cassandra` using `kubernetes` and `K8ssandra`. I have `SSH`ed >>> to a node and am running `nodetool flush` in the container by getting a >>> shell in the container using ` docker exec -it >>> k8s_cassandra_k8ssandra-dc1-default-sts-0_default_00b0d72a-c124-4b04-b25d-9e0f17edc582_0 >>> /bin/bash `. >>> >>> What mistake I might be making? Is there some other credential I need to >>> use? >>> >>> Thanks >>> Manu >>> >>> Sent from Mail for Windows 10 >>> >>>