Elasticsearch 2.3.3 插件和集群 centos 7

本文介绍了Elasticsearch的几个重要插件,包括Kibana、Marvel及SmartChineseAnalysis等,并详细阐述了如何通过修改配置文件elasticsearch.yml来搭建Elasticsearch集群。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、插件

1.Kibana

参考文档:https://www.elastic.co/guide/en/kibana/current/index.html


2.Marvel

新版Marvel属于Kibana的插件,必须先安装Kibana

参考文档:https://www.elastic.co/guide/en/marvel/current/index.html


3.Smart Chinese Analysis  中文分析插件

参考文档:https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-smartcn.html


4.Integrations(集成)

Integrations are not plugins, but are external tools or modules that make it easier to work with Elasticsearch.

参考地址:https://www.elastic.co/guide/en/elasticsearch/plugins/current/integrations.html

重点:

JDBC importer(JDBC导入): The Java Database Connection (JDBC) importer allows to fetch data from JDBC sources for indexing into Elasticsearch

官方说明:Elasticsearch2.0以后不支持rivers了,可以用JDBC importer代替


二、集群

1.配置文件elasticsearch.yml

参考文档:https://www.elastic.co/guide/en/elasticsearch/reference/current/modules.html

单个es安装成功后,组成集群需要修改配置文件config/elasticsearch.yml

[root@localhost eshome]# vi es1/config/elasticsearch.yml

#集群名,节点组成集群的名称必须相同

cluster.name: xxx-es

#节点名

node.name: node-1

#同一电脑安装3个es,需要修改默认端口号使其都能启动

Http.port: 9200
transport.tcp.port: 9300

network.host: [_local_,10.10.10.201]

discovery.zen.ping.unicast.hosts: ["10.10.10.201:9301","10.10.10.201:9302"]


[root@localhost eshome]# vi es2/config/elasticsearch.yml

#集群名,节点组成集群的名称必须相同

cluster.name: xxx-es

#节点名

node.name: node-2

#同一电脑安装3个es,需要修改默认端口号使其都能启动

http.port: 9201
transport.tcp.port: 9301

Network.host: [_local_,10.10.10.201]

discovery.zen.ping.unicast.hosts: ["10.10.10.201:9300","10.10.10.201:9302"]


[root@localhost eshome]# vi es3/config/elasticsearch.yml

#集群名,节点组成集群的名称必须相同

cluster.name: xxx-es

#节点名

node.name: node-3

#同一电脑安装3个es,需要修改默认端口号使其都能启动

http.port: 9202
transport.tcp.port: 9302

network.host: [_local_,10.10.10.201]

discovery.zen.ping.unicast.hosts: ["10.10.10.201:9300", "10.10.10.201:9301"]

----------------------------------------------------------------------------------------

#这里没有设置network.publish_host。研究官方文档,解释network.host是network.bind_host和network.publish_host同时设置的简写方式;而作为另一种高级用法,当使用代理服务器的时候,可能需要单独设置network.bind_host和network.publish_host为不同的值。看来读懂English还是很有收获的。

原文:

The network.host setting explained in Commonly used network settings is a shortcut which sets the bind host and the publish host at the same time. In advanced used cases, such as when running behind a proxy server, you may need to set these settings to different values:network.bind_host、network.publish_host

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值