File tree Expand file tree Collapse file tree 5 files changed +16
-4
lines changed
java/software/aws/mcs/example Expand file tree Collapse file tree 5 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1+ # CHANGELOG
2+
3+ ## [ 1.0.2] - 2020-04-14
4+
5+ Resolves issue #4 by removing the ` local-datacenter ` parameter from the ` application.conf ` file, and uses the region
6+ specified on the command line.
7+
8+ ## [ 1.0.1] - 2020-04-01
9+
10+ Update the POM to reference the latest version of the plugin
11+
12+ ## [ 1.0.0] - 2020-03-17
13+
14+ Initial Release
Original file line number Diff line number Diff line change 33 <modelVersion >4.0.0</modelVersion >
44 <groupId >software.aws.mcs</groupId >
55 <artifactId >aws-sigv4-auth-cassandra-java-driver-examples</artifactId >
6- <version >1.0.1 </version >
6+ <version >1.0.2 </version >
77 <name >AWS SigV4 Auth Java Driver 4.x Examples</name >
88 <organization >
99 <name >Amazon Web Services</name >
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public static void main(String[] args) {
4545 SigV4AuthProvider provider = new SigV4AuthProvider (args [0 ]);
4646 List <InetSocketAddress > contactPoints = Collections .singletonList (new InetSocketAddress (args [1 ], 9142 ));
4747
48- try (CqlSession session = CqlSession .builder ().addContactPoints (contactPoints ).withAuthProvider (provider ).build ()) {
48+ try (CqlSession session = CqlSession .builder ().addContactPoints (contactPoints ).withAuthProvider (provider ).withLocalDatacenter ( args [ 0 ]). build ()) {
4949 // Use a prepared query for quoting
5050 PreparedStatement prepared = session .prepare ("select * from acme.orders where customer_id = ?" );
5151
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ datastax-java-driver {
22 basic.contact-points = [ "cassandra.us-east-2.amazonaws.com:9142" ]
33 basic.load-balancing-policy {
44 class = DefaultLoadBalancingPolicy
5- local-datacenter = dc1
65 }
76 advanced {
87 auth-provider = {
Original file line number Diff line number Diff line change 11datastax-java-driver {
22 basic.load-balancing-policy {
33 class = DefaultLoadBalancingPolicy
4- local-datacenter = dc1
54 }
65 advanced {
76 auth-provider = {
You can’t perform that action at this time.
0 commit comments