Forum Discussion
shuiyiting
8 years agoNew Contributor
jdbc connection by thrift are disable in cassandra, to resolve that i tried connect by dse-driver, here are my steps:
copy these jars into soapui bin/ext:
dse-java-driver-core-1.4.0
dse-java-driver-mapping-1.4.0
metrics-core-3.0.2
netty-all-4.1.6.Final
update guava jar in lib:
guava-18.0
launch soapui and create groovy script:
import com.datastax.driver.core.*; Cluster cluster = null; cluster = new Cluster.Builder().addContactPoints("127.0.0.1").withPort(9042).build(); Session session = cluster.connect(); PreparedStatement statement = session.prepare("select * from keyspace.exemple_table"); ResultSet rs = session.execute(statement.bind()); Row row = rs.one();
Related Content
- 6 years ago
- 10 years ago
- 3 years ago
Recent Discussions
- 5 days ago
- 10 days ago