elasticsearch 安装部署中遇到的那些问题

1、服务安装:
为避免本机服务名冲突,多版本需要修改 bin/elasticsearch-service.bat 文件中的服务ID名称,即"SERVICE_ID",如修改如下:
SERVICE_ID=elasticsearch7-service-x64

安装命令:
elasticsearch-service.bat install

2、服务卸载:(需要管理员权限)
格式: sc delete 服务名称(通过服务查看,即上述SERVICE_ID)
sc delete elasticsearch-service-x64

3、给用户修改指定的密码
bin目录下执行下列命令
elasticsearch-reset-password --username 用户名 -i
替换用户名为你的名称,回车会让你输入密码(6位)

4、遇到的问题:“current license is non-compliant for [jdbc]”
认证问题,打开命令行输入:
curl --user 用户名:密码 -X POST "localhost:9200/_license/start_trial?acknowledge=true&pretty"
自行替换用户名和密码

5、DBeaver to Elasticsearch connectivity is OK but fails on listing tables:The [8.8.2] version of the [jdbc] client is not compatible with Elasticsearch version [8.6.1]
(务必始终保证jdbc和es的版本统一)
You need to download the correct / compatible version of the driver as the error states
Navigate here
https://www.elastic.co/downloads/past-releases#jdbc-client
Always best to match versions of Clients and Servers!
另外:千万不能将这个jar包直接放到Plugin 文件夹下

6、Elasticsearch8 Plugin [x-pack-sql-jdbc-8.14.0.jar] is missing a descriptor properties file
千万不能将上述6中的jar包放到Plugin 文件夹下,否则就报这样的错误信息

7、java.lang.IllegalStateException: Could not load plugin descriptor for plugin directory [ik]
安装IK分词遇到的问题,如果放在plugin目录下,要自行建立ik目录

posted @ 2024-06-28 11:04  Ju_Sean  阅读(55)  评论(0)    收藏  举报