Use Service Records

32 views
Skip to first unread message

Malte

unread,
Jul 4, 2016, 10:49:22 AM7/4/16
to DataStax Java Driver for Apache Cassandra User Mailing List
Hi there,

I is it possible to use service records as contact point for the java driver in order to connect to a cluster? In the documentation I wasn't able to find anything in this regards.

All the best

Kant Kodali

unread,
Jul 4, 2016, 10:52:48 AM7/4/16
to java-dri...@lists.datastax.com
+1

--
You received this message because you are subscribed to the Google Groups "DataStax Java Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.

Andrew Tolbert

unread,
Jul 4, 2016, 10:56:08 AM7/4/16
to DataStax Java Driver for Apache Cassandra User Mailing List
Hi Malte,

To my knowledge this is not currently supported, but does sound like it a good option.   There is a feature request, JAVA-1082, for allowing specification of an API that provides contact points that could be used for implementing this.   The driver will resolve multiple IPs from A/AAAA records though (JAVA-925) if you wanted a way to represent all contact points/nodes in a DNS record.

Thanks,
Andy

Kant Kodali

unread,
Jul 4, 2016, 11:06:23 AM7/4/16
to java-dri...@lists.datastax.com
Hi Malte,

Have you tried passing the DNS name? I haven't looked into the Cassandra driver code however if you pass the DNS name to INetSocketAddress constructor in java it should be able to resolve that to one of the IP's in A records because DNS by default implements round robin as far as I know. please correct me if I am wrong.

Thanks,
Kant

--

Malte

unread,
Jul 11, 2016, 8:52:50 AM7/11/16
to DataStax Java Driver for Apache Cassandra User Mailing List
Actually I had to implement resolving the DNS Names on my own. SRV-Records only point to the certain hosts. 

Thanks for your support.
Reply all
Reply to author
Forward
0 new messages