roman
roman

Reputation: 667

How to retrieve the nodes names of a vertica cluster using jdbc

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

Answers (1)

mauro
mauro

Reputation: 5950

What about...

rs = stmt.executeQuery("SELECT node_name FROM v_catalog.nodes") ;

Upvotes: 2

Related Questions