Elasticsearch集群搭建以及配置hanlp中文分词插件

一、运行环境

  1. 操作系统: CentOS 7.3
  2. Elasticsearch版本: 6.7.0
  3. hanlp版本:6.7.0

说明:如果有的朋友第一次安装Elasticsearch,建议您先看一下我之前发布的博客有专门讲述Elasticsearch的安装,可以说从零开始、很详细。本次主要讲述的是Elasticsearch集群搭建方面的知识;
二、集群搭建

  1. 下载Elasticsearch-6.7.0安装包
    如又需要的朋友,欢迎您点击此处 进行下载!!!
    密码:582v
  2. 解压到/gis/soft/目录下
[agssvrYX@mongodb-1 soft]$ ll
总用量 90848
drwxr-x---  5 agssvrYX agssvrYX     4096 4月   6 10:33 elasticsearch-6.7.0
  1. 进入elasticsearch-6.7.0目录,新建三个子目录(我这里是搭建了三个子节点node-9411、node-9412、node-9413)
[agssvrYX@mongodb-1 soft]$ ls -l elasticsearch-6.*
elasticsearch-6.7.0:
总用量 12
drwxr-x--- 9 agssvrYX agssvrYX 4096 4月   6 10:33 node-9411
drwxr-x--- 9 agssvrYX agssvrYX 4096 4月   6 10:34 node-9412
drwxr-x--- 9 agssvrYX agssvrYX 4096 4月   6 10:32 node-9413
  1. 我们先以node-9411目录为例(同理:node-9412、node-9413一样),看一下具体的目录内容:
[agssvrYX@mongodb-1 node-9411]$ ll
总用量 476
drwxr-x---  3 agssvrYX agssvrYX   4096 4月   6 10:33 bin
drwxr-x---  3 agssvrYX agssvrYX   4096 4月   6 12:39 config
drwxr-x---  4 agssvrYX agssvrYX   4096 4月   6 10:33 data
drwxr-x---  3 agssvrYX agssvrYX   4096 4月   6 10:33 lib
-rwxr-x---  1 agssvrYX agssvrYX  13692 4月   6 10:32 LICENSE.txt
drwxr-x---  2 agssvrYX agssvrYX   4096 4月   6 10:33 logs
drwxr-x--- 31 agssvrYX agssvrYX   4096 4月   6 10:32 modules
-rwxr-x---  1 agssvrYX agssvrYX 427502 4月   6 10:32 NOTICE.txt
drwxr-x---  3 agssvrYX agssvrYX   4096 4月   6 10:32 plugins
-rwxr-x---  1 agssvrYX agssvrYX   8519 4月   6 10:33 README.textile
  1. 先cd进入config目录,然后打开elasticsearch.yml配置文件,进行集群的搭建配置
[agssvrYX@mongodb-1 node-9411]$ cd config/
[agssvrYX@mongodb-1 config]$ vi elasticsearch.yml
cluster.name: IntelligentSearch #集群名称

node.name: node-9411 #节点名称
node.master: true #表示节点是否成为主节点
node.data: true #表示节点是否存储数据

bootstrap.memory_lock: false #是否锁住内存,避免交换(swapped)带来的性能损失,默认值是: false
bootstrap.system_call_filter: false #是否支持过滤掉系统调用
network.host: 10.130.0.174 #本地监听绑定的ip地址
http.port: 9411 #对外提供http服务的端口
transport.tcp.port: 9300 #节点间交互的tcp端口
http.cors.enabled: true #是否支持跨域,默认为false
http.cors.allow-origin: "*" #允许跨域后,表示支持所有域名

#设置集群中master节点的初始列表,可以通过这些节点来自动发现新加入集群的节点。
discovery.zen.ping.unicast.hosts: ["10.130.0.174:9300","10.130.0.174:9301", "10.130.0.174:9302"]
discovery.zen.minimum_master_nodes: 1 #设置这个参数来保证集群中的节点可以知道其它N个有master资格的节点。默认为1,对于大的集群来说,可以设置大一点的值(2-4)
#设置索引数据的存储路径,默认是es根目录下的data文件夹,可以设置多个存储路径,用逗号隔开,例:path.data: /xxx/yyy/zz1,/xxx/yyy/zz2
path.data: /gis/data/elasticsearch-6.7.0/node-9411

#设置日志文件的存储路径,默认是es根目录下的logs文件夹
path.logs: /gis/log/elasticsearch-6.7.0/node-9411
  1. 打开jvm.option文件,用于Elasticsearch的java堆内存的设置
[agssvrYX@mongodb-1 config]$ vi jvm.options 
-Xms1g
-Xmx1g
################################################################
## Expert settings
################################################################
##
## All settings below this section are considered
## expert settings. Don't tamper with them unless
## you understand what you are doing
##
################################################################

## GC configuration
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly

## G1GC Configuration
# NOTE: G1GC is only supported on JDK version 10 or later.
# To use G1GC uncomment the lines below.
# 10-:-XX:-UseConcMarkSweepGC
# 10-:-XX:-UseCMSInitiatingOccupancyOnly
# 10-:-XX:+UseG1GC
# 10-:-XX:InitiatingHeapOccupancyPercent=75

## DNS cache policy
# cache ttl in seconds for positive DNS lookups noting that this overrides the
# JDK security property networkaddress.cache.ttl; set to -1 to cache forever
-Des.networkaddress.cache.ttl=60
-Des.networkaddress.cache.negative.ttl=10

## optimizations

# pre-touch memory pages used by the JVM during initialization
-XX:+AlwaysPreTouch

## basic

# explicitly set the stack size
-Xss1m

# set to headless, just in case
-Djava.awt.headless=true

# ensure UTF-8 encoding by default (e.g. filenames)
-Dfile.encoding=UTF-8

# use our provided JNA always versus the system one
-Djna.nosys=true

# turn off a JDK optimization that throws away stack traces for common
# exceptions because stack traces are important for debugging
-XX:-OmitStackTraceInFastThrow

# flags to configure Netty
-Dio.netty.noUnsafe=true
-Dio.netty.noKeySetOptimization=true
-Dio.netty.recycler.maxCapacityPerThread=0

# log4j 2
-Dlog4j.shutdownHookEnabled=false
-Dlog4j2.disable.jmx=true

-Djava.io.tmpdir=${ES_TMPDIR}

## heap dumps

# generate a heap dump when an allocation from the Java heap fails
# heap dumps are created in the working directory of the JVM
-XX:+HeapDumpOnOutOfMemoryError

# specify an alternative path for heap dumps; ensure the directory exists and
# has sufficient space
-XX:HeapDumpPath=data

# specify an alternative path for JVM fatal error logs
-XX:ErrorFile=logs/hs_err_pid%p.log

## JDK 8 GC logging
8:-XX:+PrintGCDetails
8:-XX:+PrintGCDateStamps
8:-XX:+PrintTenuringDistribution
8:-XX:+PrintGCApplicationStoppedTime
8:-Xloggc:logs/gc.log
8:-XX:+UseGCLogFileRotation
8:-XX:NumberOfGCLogFiles=32
8:-XX:GCLogFileSize=64m

# JDK 9+ GC logging
9-:-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m
# due to internationalization enhancements in JDK 9 Elasticsearch need to set the provider to COMPAT otherwise
# time/date parsing will break in an incompatible way for some date patterns and locals
9-:-Djava.locale.providers=COMPAT
# temporary workaround for C2 bug with JDK 10 on hardware with AVX-512
10-:-XX:UseAVX=2

其余node-9412和node-9413节点都按照上述步骤进行设置就OK了!
注意:大家在启动es时候可能会遇到该问题[1] max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解决办法:

[agssvrYX@mongodb-1 ~]$ sudo su
[root@mongodb-1 agssvrYX]# vi /etc/sysctl.conf
追加以下内容:
vm.max_map_count=655360
保存后,执行:
sysctl -p
重新启动,成功。
必须是以root用户进行执行,否则不生效
  1. 启动Elasticsearch
[agssvrYX@mongodb-1 elasticsearch-6.7.0]$ ./node-9411/bin/elasticsearch -d
[agssvrYX@mongodb-1 elasticsearch-6.7.0]$ ./node-9412/bin/elasticsearch -d
[agssvrYX@mongodb-1 elasticsearch-6.7.0]$ ./node-9413/bin/elasticsearch -d
[agssvrYX@mongodb-1 ~]$ ps -ef | grep elasticsearch
agssvrYX  74936  16812  0 18:10 pts/0    00:00:00 grep --color=auto elasticsearch
agssvrYX 226846      1 22 13:15 ?        01:07:23 /bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -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 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=/tmp/elasticsearch-2918152704943329653 -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 -Des.path.home=/gis/soft/elasticsearch-6.7.0/node-9412 -Des.path.conf=/gis/soft/elasticsearch-6.7.0/node-9412/config -Des.distribution.flavor=default -Des.distribution.type=tar -cp /gis/soft/elasticsearch-6.7.0/node-9412/lib/* org.elasticsearch.bootstrap.Elasticsearch -d
agssvrYX 226887 226846  0 13:15 ?        00:00:00 /gis/soft/elasticsearch-6.7.0/node-9412/modules/x-pack-ml/platform/linux-x86_64/bin/controller
agssvrYX 228253      1 14 13:18 ?        00:43:05 /bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -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 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=/tmp/elasticsearch-6541350922282874948 -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 -Des.path.home=/gis/soft/elasticsearch-6.7.0/node-9411 -Des.path.conf=/gis/soft/elasticsearch-6.7.0/node-9411/config -Des.distribution.flavor=default -Des.distribution.type=tar -cp /gis/soft/elasticsearch-6.7.0/node-9411/lib/* org.elasticsearch.bootstrap.Elasticsearch -d
agssvrYX 228293 228253  0 13:18 ?        00:00:00 /gis/soft/elasticsearch-6.7.0/node-9411/modules/x-pack-ml/platform/linux-x86_64/bin/controller
agssvrYX 228597      1 22 13:19 ?        01:05:58 /bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -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 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=/tmp/elasticsearch-6351678759434082529 -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  -Des.path.home=/gis/soft/elasticsearch-6.7.0/node-9413 -Des.path.conf=/gis/soft/elasticsearch-6.7.0/node-9413/config -Des.distribution.flavor=default -Des.distribution.type=tar -cp /gis/soft/elasticsearch-6.7.0/node-9413/lib/* org.elasticsearch.bootstrap.Elasticsearch -d
agssvrYX 228646 228597  0 13:19 ?        00:00:00 /gis/soft/elasticsearch-6.7.0/node-9413/modules/x-pack-ml/platform/linux-x86_64/bin/controller

三、配置hanlp中文分词插件

  1. 我们在配置安装hanlp中文分词插件之前,先来了解一下这个问题?
    (1) 使用es进行全文搜索为什么会很快呢?
    主要是因为es使用称为倒排索引的结构达到快速全文搜索的目的。
  2. hanlp中文分词插件作用以及效果
    举个例子:
    比如说有三个文档
    文档1: 我希望祖国战胜疫情
    文档2: 祝福祖国明天会更好
    文档3: 我爱祖国

经过hanlp中文分词插件,以上三个文档均会根据分词规则,将文档里的内容进行分词,显示的结果如下:
注意:不同的分词规则,分词结果不一样,选择根据分词器提供的分词规则找到适合的分词规则
文档1分词结果: [我,祝福,祖国,战胜,疫情]
文档2分词结果: [祝福,祖国,明天,会,更好]
文档3分词结果: [我,爱,祖国]

通过上面的分词结果,我们会很惊讶的发现拆分的每个词都是我们熟悉的词语, 如果不使用中文分词插件,就会发现上面的文档把每个字拆分成了一个词,对我们中文检索很不方便,如果数据量很大的话可以说相当的费力。

在这里插入图片描述
通过图中的所描述的倒排索引,当我们搜索"祝福"二字时,es通过倒排索引可以极其快速的检索出文档1和文档2。如果没有hanlp中文分词插件,搜索"祝福"就会被拆分为"祝""福"两个词的倒排索引, 就会把包含"祝"的文档都检索出来,跟我实际上想要的结果相差甚远了!

  1. 下载elasticsearch-analysis-hanlp-v6.x中文分词插件
    如果有的朋友想下载,欢迎点击此处进行下载!!!
    密码:3zt2
  2. 解压analysis-hanlp压缩包到plugins目录下
[agssvrYX@mongodb-1 plugins]$ ll
总用量 4
drwxr-x--- 3 agssvrYX agssvrYX 4096 4月   6 10:32 analysis-hanlp
[agssvrYX@mongodb-1 plugins]$ cd analysis-hanlp/
[agssvrYX@mongodb-1 analysis-hanlp]$ ll
总用量 7824
drwxr-x--- 2 agssvrYX agssvrYX    4096 4月   6 10:32 data
-rw-r----- 1 agssvrYX agssvrYX   20973 4月   6 10:32 elasticsearch-analysis-hanlp-6.7.0.jar
-rw-r----- 1 agssvrYX agssvrYX 7971308 4月   6 10:32 hanlp-1.2.8.jar
-rw-r----- 1 agssvrYX agssvrYX    2700 4月   6 10:32 plugin-descriptor.properties
-rw-r----- 1 agssvrYX agssvrYX     434 4月   6 10:32 plugin-security.policy
  1. 打开plugin-descriptor.properties文件
[agssvrYX@mongodb-1 analysis-hanlp]$ vi plugin-descriptor.properties
description=HANLP chinese segment plugin
#
# 'version': plugin's version
version=6.7.0
#
# 'name': the plugin name
name=analysis-hanlp

### mandatory elements for site plugins:
#
# 'site': set to true to indicate contents of the _site/
#  directory in the root of the plugin should be served.
#site=${elasticsearch.plugin.site}
#
### mandatory elements for jvm plugins :
#
# 'jvm': true if the 'classname' class should be loaded
#  from jar files in the root directory of the plugin.
#  Note that only jar files in the root directory are
#  added to the classpath for the plugin! If you need
#  other resources, package them into a resources jar.
#jvm=${elasticsearch.plugin.jvm}
#
# 'classname': the name of the class to load, fully-qualified.
classname=org.elasticsearch.plugin.analysis.hanlp.AnalysisHanlpPlugin
#
# 'java.version' version of java the code is built against
# use the system property java.specification.version
# version string must be a sequence of nonnegative decimal integers
# separated by "."'s and may have leading zeros
java.version=1.8
#
# 'elasticsearch.version' version of elasticsearch compiled against
# You will have to release a new version of the plugin for each new
# elasticsearch release. This version is checked when the plugin
# is loaded so Elasticsearch will refuse to start in the presence of
# plugins with the incorrect elasticsearch.version.
elasticsearch.version=6.7.0
  1. 在jvm.option文件中添加以下内容
-Djava.security.policy=/gis/soft/elasticsearch-6.7.0/node-9411/plugins/analysis-hanlp/plugin-security.policy
  1. 重启Elasticsearch
[agssvrYX@mongodb-1 ~]$ ps -ef | grep elasticsearch
agssvrYX 120296  16812  0 20:14 pts/0    00:00:00 grep --color=auto elasticsearch
agssvrYX 226846      1 16 13:15 ?        01:07:33 /bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -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 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=/tmp/elasticsearch-2918152704943329653 -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 -Djava.security.policy=/gis/soft/elasticsearch-6.7.0/node-9411/plugins/analysis-hanlp/plugin-security.policy -Des.path.home=/gis/soft/elasticsearch-6.7.0/node-9412 -Des.path.conf=/gis/soft/elasticsearch-6.7.0/node-9412/config -Des.distribution.flavor=default -Des.distribution.type=tar -cp /gis/soft/elasticsearch-6.7.0/node-9412/lib/* org.elasticsearch.bootstrap.Elasticsearch -d
agssvrYX 226887 226846  0 13:15 ?        00:00:00 /gis/soft/elasticsearch-6.7.0/node-9412/modules/x-pack-ml/platform/linux-x86_64/bin/controller
agssvrYX 228253      1 10 13:18 ?        00:43:16 /bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -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 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=/tmp/elasticsearch-6541350922282874948 -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 -Djava.security.policy=/gis/soft/elasticsearch-6.7.0/node-9411/plugins/analysis-hanlp/plugin-security.policy -Des.path.home=/gis/soft/elasticsearch-6.7.0/node-9411 -Des.path.conf=/gis/soft/elasticsearch-6.7.0/node-9411/config -Des.distribution.flavor=default -Des.distribution.type=tar -cp /gis/soft/elasticsearch-6.7.0/node-9411/lib/* org.elasticsearch.bootstrap.Elasticsearch -d
agssvrYX 228293 228253  0 13:18 ?        00:00:00 /gis/soft/elasticsearch-6.7.0/node-9411/modules/x-pack-ml/platform/linux-x86_64/bin/controller
agssvrYX 228597      1 15 13:19 ?        01:06:08 /bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -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 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=/tmp/elasticsearch-6351678759434082529 -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 -Djava.security.policy=/gis/soft/elasticsearch-6.7.0/node-9411/plugins/analysis-hanlp/plugin-security.policy -Des.path.home=/gis/soft/elasticsearch-6.7.0/node-9413 -Des.path.conf=/gis/soft/elasticsearch-6.7.0/node-9413/config -Des.distribution.flavor=default -Des.distribution.type=tar -cp /gis/soft/elasticsearch-6.7.0/node-9413/lib/* org.elasticsearch.bootstrap.Elasticsearch -d
agssvrYX 228646 228597  0 13:19 ?        00:00:00 /gis/soft/elasticsearch-6.7.0/node-9413/modules/x-pack-ml/platform/linux-x86_64/bin/controller

四、总结

以上就是我最近几天工作中需要完成的一小块内容,今天正好有功夫来总结一下es集群搭建和配置hanlp中文分词插件如何完成的步骤和在此过程中遇到的问题,也希望能够对有需要的朋友一点点帮助,如果在此过程中遇到问题欢迎大家在下方评论区留言!!!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章