Cannot connect to Cassandra on localhost

Author: ababusa

Originally Sourced from:

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/ (com.datastax.driver.core.TransportException: [localhost/] Cannot connect))
  [localhost/0:0:0:0:0:0:0:1:9042] Cannot connect
  [localhost/] Cannot connect