Cannot connect to Cassandra on localhost


Author: ababusa

Originally Sourced from: https://stackoverflow.com/questions/40239278/cannot-connect-to-cassandra-on-localhost

First time using cassandra, I have attempted to configue the yaml file according to other related posts but had no luck so far. Any idea how do so on the localhost?

The specified host(s) could not be reached.
All host(s) tried for query failed (tried: localhost/0:0:0:0:0:0:0:1:9042 (com.datastax.driver.core.TransportException: [localhost/0:0:0:0:0:0:0:1:9042] Cannot connect), localhost/127.0.0.1:9042 (com.datastax.driver.core.TransportException: [localhost/127.0.0.1:9042] Cannot connect))
  [localhost/0:0:0:0:0:0:0:1:9042] Cannot connect
  [localhost/127.0.0.1:9042] Cannot connect