Reputation: 667
Is there a way of retrieve the nodes names of a vertica cluster using jdbc?
in order to achieve a fault-tolerect connection strategy?
Can it retrieved from this retConnection Connection instance?
Connection retConnection = null;
.
.
.
retConnection = DriverManager.getConnection
(
connectionString,
connectionProperties
);
Thanks.
Upvotes: 1
Views: 303
Reputation: 5950
What about...
rs = stmt.executeQuery("SELECT node_name FROM v_catalog.nodes") ;
Upvotes: 2