Build Cloud-Native apps with Apache Cassandra

GOT QUESTIONS from the Workshop? You're in the right place! Post a question here and we'll get you answers.

Click here for Week 8 Materials and Homework.

Follow us on Eventbrite to get notified when new workshops are scheduled!


question

mantha.srikant_190702 avatar image
mantha.srikant_190702 asked ·

Unable to login to a pod with SSH from a Git bash console for the week 5 exercises

Hi DataStax,

I am following the steps to create a single node cassandra cluster, then login to the pod using https://github.com/DataStax-Academy/cassandra-workshop-series/blob/master/week5-Cass-in-k8s/README_CASSANDRA.MD .

I am running this setup in my local windows 10 HOME machine which has sufficient ram to run the kubernetes locally. I am running these commands from gitbash console.

manthas@Srikant-Laptop MINGW64 /c/Technical/Cassandra/cassandra-workshop-series/week5-Cass-in-k8s (master)
$ kubectl -n cass-operator get pods
NAME READY STATUS RESTARTS AGE
cass-operator-56fcb9ff47-xxcq5 1/1 Running 0 14m
cluster1-dc1-default-sts-0 2/2 Running 0 13m

However, I face the below issue while executing

Step 3d. Execute the command to login to a pod with SSH We are using the pod name cluster1-dc1-default-sts-0 listed with get pods command, make sure the pod name also exist for you.

manthas@Srikant-Laptop MINGW64 /c/Technical/Cassandra/cassandra-workshop-series/week5-Cass-in-k8s (master)

$ kubectl -n cass-operator exec -it cluster1-dc1-default-sts-0 -- /bin/bash
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.
Unable to use a TTY - input is not a terminal or the right kind of file
error: Internal error occurred: error executing command in container: failed to exec in container: failed to start exec "6c03d8a7f78708b4231b025a89dadcc26da1e22a560c78d7fe0307da361d5aea": OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"C:/Program Files/Git/usr/bin/bash\": stat C:/Program Files/Git/usr/bin/bash: no such file or directory": unknown

I am stuck with this error, how can I proceed further ?

-Regards

Srikant Mantha

workshop
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.

1 Answer

mantha.srikant_190702 avatar image
mantha.srikant_190702 answered ·

I switched to cmd.exe and to my surprise, it was working. Thank, closing this issue.


1596574371038.png (36.5 KiB)
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.