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

likhia avatar image
likhia asked likhia commented

Problems with Hinted Handoff exercise in DS201

I have some issues to continue with Exercise 14 : Hinted Handoff of DS201 : Foundation of Apache Cassandra and Datastax enterprises. Can you help to advise?

I shutdown the 2 nodes according to step 3. However, I'm unable to execute cqlsh on node1. It is unable to connect to 127.0.0.1.

I have tried to restart the 2 nodes and managed to connect using cqlsh on node1 then i shut down the other 2 nodes again.

I encountered NoHostAvailable at step 6.

Please help to advise

ds201
10 |1000

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

starlord avatar image
starlord answered

Hi likhia,

Please ensure you are connecting to the node that is still online by specifying the IP and port when you run cqlsh, for example:

cqlsh <IP> <port>

The port is typically 9042, but you can check the native_transport_port in the cassandra.yaml of the node that is online to confirm, let us know if you can't get it working.

Share
10 |1000

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

Erick Ramirez avatar image
Erick Ramirez answered likhia commented

In the previous exercise, there was a note that instructed you to specify the IP address + CQL port when connecting with cqlsh because in the DS201 course VM, the nodes are configured with different CQL ports:

$ for _node in node*; do echo "$_node - `grep ^native_transport_port $_node/resources/cassandra/conf/cassandra.yaml`"; done
node1 - native_transport_port: 9041
node2 - native_transport_port: 9042
node3 - native_transport_port: 9043

If you don't specify the CQL port, cqlsh connects to the default 9042.

I suggest you review the instructions and try again. Cheers!

1 comment Share
10 |1000

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

Thanks. It is working fine now.

0 Likes 0 ·