Please install Apache Cassandra 3.0.9 from apache-cassandra - from http://archive.apache.org/dist/cassandra/3.0.9/apache-cassandra-3.0.9-bin.tar.gz
Please set start_rpc=true in cassandra.yaml, otherwise the testcase will not be able to connect to the cassandra.
And run this code on the same host