es安装ik分词器

网上找了一大堆,很多都介绍的不详细,开始安装完一直报错找不到plugin-descriptor.properties,有些懵这个东西不应该带在里面吗,参考了一篇博客说新建一个这个,新建完可以启动,但是插入索引数据会报错找不到type=mapper_parsing_exception, reason=analyzer [ik_smart] not found for field [name]],肯定是刚才安装的不对,因此重新安装,下载安装包一定要找。

1、先安装es很简单不讲解

2、安装ik分词器

版本和es版本对应 https://github.com/medcl/elasticsearch-analysis-ik/releases/tag/v7.8.0一定看清楚下载包和版本
在这里插入图片描述

3、解压分词器

把下载好的ik分词器解压缩到plugins里面,注意目录和解压后的内容
在这里插入图片描述

4、再次启动ok

PS D:\sofewar\elasticsearch-7.8.0-windows-x86_64\elasticsearch-7.8.0\bin> .\elasticsearch.bat
future versions of Elasticsearch will require Java 11; your Java version from [D:\sofewar\jdk1.8.0_65\jre] does not meet this requirement
future versions of Elasticsearch will require Java 11; your Java version from [D:\sofewar\jdk1.8.0_65\jre] does not meet this requirement
Warning: with JDK 8 on Windows, Elasticsearch may be unable to derive correct
  ergonomic settings due to a JDK issue (JDK-8074459). Please use a newer
  version of Java.
Warning: MaxDirectMemorySize may have been miscalculated due to JDK-8074459.
  Please use a newer version of Java or set MaxDirectMemorySize explicitly.
[2023-04-04T01:00:13,963][INFO ][o.e.n.Node               ] [SMY] version[7.8.0], pid[29808], build[default/zip/757314695644ea9a1dc2fecd26d1a43856725e65/2020-06-14T19:35:50.234439Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_65/25.65-b01]
[2023-04-04T01:00:13,964][INFO ][o.e.n.Node               ] [SMY] JVM home [D:\sofewar\jdk1.8.0_65\jre]
[2023-04-04T01:00:13,964][INFO ][o.e.n.Node               ] [SMY] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.locale.providers=SPI,JRE, -Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.io.tmpdir=C:\Users\cdlx\AppData\Local\Temp\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -XX:MaxDirectMemorySize=536870912, -Delasticsearch, -Des.path.home=D:\sofewar\elasticsearch-7.8.0-windows-x86_64\elasticsearch-7.8.0, -Des.path.conf=D:\sofewar\elasticsearch-7.8.0-windows-x86_64\elasticsearch-7.8.0\config, -Des.distribution.flavor=default, -Des.distribution.type=zip, -Des.bundled_jdk=true]
[2023-04-04T01:00:17,869][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [aggs-matrix-stats]
[2023-04-04T01:00:17,869][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [analysis-common]
[2023-04-04T01:00:17,870][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [constant-keyword]
[2023-04-04T01:00:17,870][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [flattened]
[2023-04-04T01:00:17,871][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [frozen-indices]
[2023-04-04T01:00:17,871][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [ingest-common]
[2023-04-04T01:00:17,872][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [ingest-geoip]
[2023-04-04T01:00:17,872][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [ingest-user-agent]
[2023-04-04T01:00:17,873][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [kibana]
[2023-04-04T01:00:17,874][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [lang-expression]
[2023-04-04T01:00:17,874][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [lang-mustache]
[2023-04-04T01:00:17,875][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [lang-painless]
[2023-04-04T01:00:17,876][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [mapper-extras]
[2023-04-04T01:00:17,876][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [parent-join]
[2023-04-04T01:00:17,877][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [percolator]
[2023-04-04T01:00:17,878][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [rank-eval]
[2023-04-04T01:00:17,879][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [reindex]
[2023-04-04T01:00:17,879][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [repository-url]
[2023-04-04T01:00:17,880][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [search-business-rules]
[2023-04-04T01:00:17,881][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [searchable-snapshots]
[2023-04-04T01:00:17,882][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [spatial]
[2023-04-04T01:00:17,882][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [tasks]
[2023-04-04T01:00:17,882][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [transform]
[2023-04-04T01:00:17,882][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [transport-netty4]
[2023-04-04T01:00:17,883][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [vectors]
[2023-04-04T01:00:17,883][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-analytics]
[2023-04-04T01:00:17,884][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-async-search]
[2023-04-04T01:00:17,884][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-autoscaling]
[2023-04-04T01:00:17,884][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-ccr]
[2023-04-04T01:00:17,884][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-core]
[2023-04-04T01:00:17,885][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-deprecation]
[2023-04-04T01:00:17,885][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-enrich]
[2023-04-04T01:00:17,885][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-eql]
[2023-04-04T01:00:17,885][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-graph]
[2023-04-04T01:00:17,886][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-identity-provider]
[2023-04-04T01:00:17,886][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-ilm]
[2023-04-04T01:00:17,886][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-logstash]
[2023-04-04T01:00:17,887][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-ml]
[2023-04-04T01:00:17,887][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-monitoring]
[2023-04-04T01:00:17,888][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-ql]
[2023-04-04T01:00:17,888][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-rollup]
[2023-04-04T01:00:17,888][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-security]
[2023-04-04T01:00:17,888][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-sql]
[2023-04-04T01:00:17,889][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-voting-only-node]
[2023-04-04T01:00:17,889][INFO ][o.e.p.PluginsService     ] [SMY] loaded module [x-pack-watcher]
[2023-04-04T01:00:17,890][INFO ][o.e.p.PluginsService     ] [SMY] loaded plugin [analysis-ik]
[2023-04-04T01:00:19,006][INFO ][o.e.e.NodeEnvironment    ] [SMY] using [1] data paths, mounts [[(D:)]], net usable_space [115.7gb], net total_space [238.4gb], types [NTFS]
[2023-04-04T01:00:19,006][INFO ][o.e.e.NodeEnvironment    ] [SMY] heap size [989.8mb], compressed ordinary object pointers [true]
[2023-04-04T01:00:19,116][INFO ][o.e.n.Node               ] [SMY] node name [SMY], node ID [CBfEBCSERhiNjYaDtoX4_A], cluster name [elasticsearch]
[2023-04-04T01:00:29,566][INFO ][o.e.x.s.a.s.FileRolesStore] [SMY] parsed [0] roles from file [D:\sofewar\elasticsearch-7.8.0-windows-x86_64\elasticsearch-7.8.0\config\roles.yml]
[2023-04-04T01:00:30,404][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [SMY] [controller/17120] [Main.cc@110] controller (64 bit): Version 7.8.0 (Build 58ff6912e20047) Copyright (c) 2020 Elasticsearch BV
[2023-04-04T01:00:31,361][INFO ][o.e.d.DiscoveryModule    ] [SMY] using discovery type [zen] and seed hosts providers [settings]
[2023-04-04T01:00:32,412][INFO ][o.e.n.Node               ] [SMY] initialized
[2023-04-04T01:00:32,413][INFO ][o.e.n.Node               ] [SMY] starting ...
[2023-04-04T01:00:44,489][INFO ][o.e.t.TransportService   ] [SMY] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}, {[::1]:9300}
[2023-04-04T01:00:44,832][WARN ][o.e.b.BootstrapChecks    ] [SMY] the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
[2023-04-04T01:00:44,835][INFO ][o.e.c.c.Coordinator      ] [SMY] cluster UUID [v6VahEYBT0qcrpi8UJtDvw]
[2023-04-04T01:00:44,846][INFO ][o.e.c.c.ClusterBootstrapService] [SMY] no discovery configuration found, will perform best-effort cluster bootstrapping after [3s] unless existing master is discovered
[2023-04-04T01:00:44,941][INFO ][o.e.c.s.MasterService    ] [SMY] elected-as-master ([1] nodes joined)[{SMY}{CBfEBCSERhiNjYaDtoX4_A}{4FEMuUGTTHuBladyLGoEEw}{127.0.0.1}{127.0.0.1:9300}{dilmrt}{ml.machine_memory=34043187200, xpack.installed=true, transform.node=true, ml.max_open_jobs=20} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 5, version: 72, delta: master node changed {previous [], current [{SMY}{CBfEBCSERhiNjYaDtoX4_A}{4FEMuUGTTHuBladyLGoEEw}{127.0.0.1}{127.0.0.1:9300}{dilmrt}{ml.machine_memory=34043187200, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]}
[2023-04-04T01:00:45,132][INFO ][o.e.c.s.ClusterApplierService] [SMY] master node changed {previous [], current [{SMY}{CBfEBCSERhiNjYaDtoX4_A}{4FEMuUGTTHuBladyLGoEEw}{127.0.0.1}{127.0.0.1:9300}{dilmrt}{ml.machine_memory=34043187200, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}]}, term: 5, version: 72, reason: Publication{term=5, version=72}
[2023-04-04T01:00:45,427][INFO ][o.e.l.LicenseService     ] [SMY] license [e063d5b4-cd1d-49a8-adaa-fb0a31f7a718] mode [basic] - valid
[2023-04-04T01:00:45,428][INFO ][o.e.x.s.s.SecurityStatusChangeListener] [SMY] Active license is now [BASIC]; Security is disabled
[2023-04-04T01:00:45,439][INFO ][o.e.g.GatewayService     ] [SMY] recovered [0] indices into cluster_state
[2023-04-04T01:00:51,496][INFO ][o.e.h.AbstractHttpServerTransport] [SMY] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200}, {[::1]:9200}
[2023-04-04T01:00:51,496][INFO ][o.e.n.Node               ] [SMY] started
[2023-04-04T01:01:30,769][INFO ][o.w.a.d.Dictionary       ] [SMY] try load config from D:\sofewar\elasticsearch-7.8.0-windows-x86_64\elasticsearch-7.8.0\config\analysis-ik\IKAnalyzer.cfg.xml
[2023-04-04T01:01:30,772][INFO ][o.w.a.d.Dictionary       ] [SMY] try load config from D:\sofewar\elasticsearch-7.8.0-windows-x86_64\elasticsearch-7.8.0\plugins\ik\config\IKAnalyzer.cfg.xml
[2023-04-04T01:01:31,599][INFO ][o.e.c.m.MetadataCreateIndexService] [SMY] [user] creating index, cause [api], templates [], shards [9]/[2], mappings [_doc]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值