current license is non-compliant for [jdbc]

  |   0 评论   |   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”

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

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

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

# curl -X POST "localhost:9200/_license/start_trial?acknowledge=true&pretty"
{
  "acknowledged" : true,
  "trial_was_started" : true,
  "type" : "trial"
}

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

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

1760497858338140160.png

参考:
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
————————————————

原文链接:https://blog.csdn.net/ctypyb2002/article/details/106115691


标题:current license is non-compliant for [jdbc]
作者:michael
地址:https://blog.junxworks.cn/articles/2024/02/22/1708570513483.html