I have been working through the exercises associated with the DS201 course and found them to be excellent! I ran into a bit of a snag in some of the final exercises and, though I got my setup to work for what I needed to do, I know this can't be the truly correct way of handling the issues.
In Ex 16 we begin with a fresh slate and create a singe node, altering the .yaml file with the supplied file labwork/config_node. Soon we need to run a stress test.
Mine errors. As I look at the output on the screen, I see all this information about connection problems and 127.0.0.1:9041.
That config_node file set the native_transport_port to 9042 and so I wonder if that is the problem. I shut down my node, edit my cassandra.yaml (altering native_transport_port to 9041), restart my node and run the stress test without further issuer. Yeah! - problem solved. Or so I think...
Now Ex 17 comes along and I need to enter cqlsh. Now it's looking for 9042, not 9041.
Not knowing what else to do I once again take down the node, change that value in the .yaml file back to 9042, restart my node and complete the remaining exercises without incident.
So it seems like the stress program and cqlsh had their own ideas about what port(?) was needed to connect to my cluster. Why did what I did work and what should have been done? (I'm quite sure in real life you don't have to redo the .yaml everytime you want to run a stress test.)
**note-If you respond to my question, please know I am in no way an administrator and can barely get around in linux at this point. I know about code and data and tables (relational - now learning Cassandra), but not server stuff . You can "dumb down" your answer as much as you like and I will take no offense.
Thank you so much for reading through my long post and for your help!
Nancy