shubhendra sen
shubhendra sen

Reputation: 206

Apache ignite jdbc Connection credential

Hi peoples I want to set up apache ignite server with credentials like the jdbc does .

for example.
Connection conn = DriverManager.getConnection(url,user,pass);

currently this connection string does not have user and password. It is like Connection conn = DriverManager.getConnection(url);

To do this what configurations I have to do in server so that i have to pass username and password.

Upvotes: 0

Views: 1131

Answers (2)

Andrei Aleksandrov
Andrei Aleksandrov

Reputation: 736

Please take a look here:

https://apacheignite-sql.readme.io/docs/jdbc-driver#section-parameters

You should use user and password options in connection string like:

jdbc:ignite:thin://127.0.0.1:10800;user=ignite;password=ignite

Upvotes: 1

alamar
alamar

Reputation: 19313

Please see Advanced Security section of documentation if you like to enable JDBC/thin clients username/password authentication. Please note that it requires that at least one data region is persistent.

In short:

  • persistenceEnabled=true
  • authenticationEnabled=true
  • CREATE USER "userName" ... from ignite/ignite OR
  • ALTER USER "ignite" ...

Upvotes: 1

Related Questions