您的位置:首页 > 运维架构 > Linux

Elasticsearch 2.3.3 插件和集群 centos 7

2016-07-11 12:20 309 查看
一、插件

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: