DataStax Academy FAQ

DataStax Academy migrated to a new learning management system (LMS) in July 2020. We are also moving to a new Cassandra Certification process so there are changes to exam bookings, voucher system and issuing of certificates.

Check out the Academy FAQ pages for answers to your questions:


question

natrajan.rajasekaran_191958 avatar image
natrajan.rajasekaran_191958 asked ·

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)
workshop
1 comment
10 |1000 characters needed characters left characters exceeded

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

Thanks!

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!

Share
10 |1000 characters needed characters left characters exceeded

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