Skip to content

Commit

Permalink
Upgrade latest cassandra version to 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
krvikash committed Oct 26, 2022
1 parent 1411770 commit fab2716
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class TestCassandraLatestConnectorSmokeTest
protected QueryRunner createQueryRunner()
throws Exception
{
CassandraServer server = closeAfterClass(new CassandraServer("cassandra:3.11.10", "cu-cassandra.yaml"));
CassandraServer server = closeAfterClass(new CassandraServer("cassandra:4.1", "cu-cassandra-latest.yaml"));
CassandraSession session = server.getSession();
createTestTables(session, KEYSPACE, Timestamp.from(TIMESTAMP_VALUE.toInstant()));
return createCassandraQueryRunner(server, ImmutableMap.of(), ImmutableMap.of(), REQUIRED_TPCH_TABLES);
Expand Down
29 changes: 29 additions & 0 deletions plugin/trino-cassandra/src/test/resources/cu-cassandra-latest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
cluster_name: 'Test Cluster'
partitioner: org.apache.cassandra.dht.Murmur3Partitioner

data_file_directories:
- /var/lib/cassandra/data
saved_caches_directory: /var/lib/cassandra/saved_caches

commitlog_directory: /var/lib/cassandra/commitlog
commitlog_sync: periodic
commitlog_sync_period: 10000ms
commitlog_segment_size: 1MiB
commitlog_total_space: 1MiB

seed_provider:
- class_name: org.apache.cassandra.locator.SimpleSeedProvider
parameters:
- seeds: "127.0.0.1:7000"

concurrent_reads: 2
concurrent_writes: 2
concurrent_counter_writes: 2
concurrent_materialized_view_writes: 2

listen_address: 127.0.0.1
native_transport_port: 9142
rpc_address: localhost
broadcast_rpc_address: localhost

endpoint_snitch: SimpleSnitch

0 comments on commit fab2716

Please sign in to comment.