Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started



natrajan.rajasekaran_191958 avatar image
natrajan.rajasekaran_191958 asked Erick Ramirez answered

Getting "Authorization error" when connecting via cqlsh for the week 6 exercise

I was working on the Week 6 exercise. I got the below issue: Step: 6a

kubectl exec -it -n cass-operator cluster1-dc1-default-sts-0 -- cqlsh -e "select * from killrvideo.spacecraft_journey_catalog limit 5;" -u cluster1-superuser -p 6eBUqKhSqLkR8mdd8O5sz1xL5HKAfRfhtUXmbCCKgtMb12vqvRIC5A
Defaulting container name to cassandra.
Use 'kubectl describe pod/cluster1-dc1-default-sts-0 -n cass-operator' to see all of the containers in this pod.
error: unable to upgrade connection: Authorization error (user=kube-apiserver-kubelet-client, verb=create, resource=nodes, subresource=proxy)
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.

Hi @natrajan.rajasekaran_191958,

is your kind cluster still running properly? Can you see the nodes and pods?

Try this to see if it's responding correctly:

kind get clusters
kubectl get nodes


0 Likes 0 ·

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

When you run the get pods command, are you able to confirm that all pods are operational?

If "2 of 2 containers" isn't reported for the C* pod, run the command you posted above to get information about the pod:

$ kubectl describe pod/cluster1-dc1-default-sts-0 -n cass-operator

I was just chatting to Bettina about this and she things that your KinD cluster isn't setup correctly. If so, you will need to retrace your steps and maybe start from scratch. Cheers!

10 |1000

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