current license is non-compliant for [jdbc]

女爷i 2023-03-13 13:29 191阅读 0赞

os: centos 7.4.1708
es: 7.6.2
ide: dbeaver 6.2.3

通过 dbeaver 配置 jdbc 连接 es时报错 current license is non-compliant for [jdbc]
在这里插入图片描述
在这里插入图片描述
在官网 https://www.elastic.co/cn/subscriptions 搜索后发现需要白金级别

在这里插入图片描述
查看服务器es的license信息,发现 “type” : “basic”

  1. # curl -XGET http://localhost:9200/_license
  2. {
  3. "license" : {
  4. "status" : "active",
  5. "uid" : "91546f48-bd7f-4a74-b4b9-889dece7db80",
  6. "type" : "basic",
  7. "issue_date" : "2020-05-12T20:10:42.742Z",
  8. "issue_date_in_millis" : 1589314242742,
  9. "max_nodes" : 1000,
  10. "issued_to" : "my-application",
  11. "issuer" : "elasticsearch",
  12. "start_date_in_millis" : -1
  13. }
  14. }

修改成30天试用版,https://www.elastic.co/guide/en/elasticsearch/reference/master/start-trial.html

  1. # curl -X POST "localhost:9200/_license/start_trial?acknowledge=true&pretty"
  2. {
  3. "acknowledged" : true,
  4. "trial_was_started" : true,
  5. "type" : "trial"
  6. }

再查看license信息时,内容已发生变化。

  1. # curl -XGET http://localhost:9200/_license
  2. {
  3. "license" : {
  4. "status" : "active",
  5. "uid" : "275f23b1-7b57-4bfd-b309-16d9545aebfa",
  6. "type" : "trial",
  7. "issue_date" : "2020-05-14T03:16:54.139Z",
  8. "issue_date_in_millis" : 1589426214139,
  9. "expiry_date" : "2020-06-13T03:16:54.139Z",
  10. "expiry_date_in_millis" : 1592018214139,
  11. "max_nodes" : 1000,
  12. "issued_to" : "my-application",
  13. "issuer" : "elasticsearch",
  14. "start_date_in_millis" : -1
  15. }
  16. }

此时在 dbeaver 里查看时,已正常显示。

在这里插入图片描述

参考:
https://www.elastic.co/cn/subscriptions

https://www.elastic.co/cn/downloads/jdbc-client

https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-jdbc.html

发表评论

表情:
评论列表 (有 0 条评论,191人围观)

还没有评论,来说两句吧...

相关阅读