elasticsearch jdbc license

elasticsearch jdbc는 유료로 구매해야 사용할 수 있다.

Basic 라이센스에서 확인해보니 아래처럼 에러가 발생한다.

Jdbc Driver를 만들 수 있으면 참 좋을 것 같은데,,,, 조만간 만들어보자.

 

java.sql.SQLInvalidAuthorizationSpecException: current license is non-compliant for [jdbc]

at org.elasticsearch.xpack.sql.client.JreHttpUrlConnection$SqlExceptionType.asException(JreHttpUrlConnection.java:330)

at org.elasticsearch.xpack.sql.client.JreHttpUrlConnection.parserError(JreHttpUrlConnection.java:207)

at org.elasticsearch.xpack.sql.client.JreHttpUrlConnection.request(JreHttpUrlConnection.java:170)

at org.elasticsearch.xpack.sql.client.HttpClient.lambda$post$1(HttpClient.java:106)

at org.elasticsearch.xpack.sql.client.JreHttpUrlConnection.http(JreHttpUrlConnection.java:66)

at org.elasticsearch.xpack.sql.client.HttpClient.lambda$post$2(HttpClient.java:105)

at java.security.AccessController.doPrivileged(Native Method)

at org.elasticsearch.xpack.sql.client.HttpClient.post(HttpClient.java:104)

at org.elasticsearch.xpack.sql.client.HttpClient.query(HttpClient.java:81)

at org.elasticsearch.xpack.sql.jdbc.JdbcHttpClient.query(JdbcHttpClient.java:69)

at org.elasticsearch.xpack.sql.jdbc.JdbcStatement.initResultSet(JdbcStatement.java:160)

at org.elasticsearch.xpack.sql.jdbc.JdbcStatement.execute(JdbcStatement.java:151)

at JDBCTest.main(JDBCTest.java:27)