elasticsearch插件安装

1.安装环境
 centos 6
 jdk8.20以上
 elasticsearch 1.7.1以上
安装jdk环境
export JAVA_HOME=/data/program/jdk1.8
export JRE_HOME=/data/program/jdk1.8/jre
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarhtml

[root@elk-server ~]# source  /etc/profile
[root@elk-server ~]# java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)html5

安装elasticsearch只需解压并进入到bin目录下
执行程序便可
./elasticsearch -d
访问localhost:9200地址便可看到相应信息
{
  "status" : 200,
  "name" : "Raymond Sikorsky",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "1.7.2",
    "build_hash" : "e43676b1385b8125d647f593f7202acbd816e8ec",
    "build_timestamp" : "2015-09-14T09:49:53Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  },
  "tagline" : "You Know, for Search"
}
bin目录下elasticsearch.in.sh能够修改内存大小
conf目录有elasticsearch.yml配置文件java

插件
head插件
是一个elasticsearch的集群管理工具,它彻底由html5编写
[root@elk-server bin]# ./plugin --install mobz/elasticsearch-head
-> Installing mobz/elasticsearch-head...
Trying https://github.com/mobz/elasticsearch-head/archive/master.zip...
Downloading ...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................DONE
Installed mobz/elasticsearch-head into /root/elasticsearch-1.7.2/plugins/head
便可安装完毕
访问:http://192.168.1.230:9200/_plugin/head/git

bigdesk插件
是elasticsearch的一个集群监控工具,能够经过它来查看集群的各类状态,cpu,内存等,索引数据,搜索状况,http链接数
[root@elk-server bin]# ./plugin --install lukas-vlcek/bigdesk/2.5.0
-> Installing lukas-vlcek/bigdesk/2.5.0...
Trying http://download.elasticsearch.org/lukas-vlcek/bigdesk/bigdesk-2.5.0.zip...
Trying http://search.maven.org/remotecontent?filepath=lukas-vlcek/bigdesk/2.5.0/bigdesk-2.5.0.zip...
Trying https://oss.sonatype.org/service/local/repositories/releases/content/lukas-vlcek/bigdesk/2.5.0/bigdesk-2.5.0.zip...
Trying https://github.com/lukas-vlcek/bigdesk/archive/2.5.0.zip...
Trying https://github.com/lukas-vlcek/bigdesk/archive/master.zip...
Downloading ........................................................................................................................................................................................................................................................DONE
Installed lukas-vlcek/bigdesk/2.5.0 into /root/elasticsearch-1.7.2/plugins/bigdesk
Identified as a _site plugin, moving to _site structure ...
访问:http://192.168.1.230:9200/_plugin/bigdeskgithub

mavel插件
也是elasticsearch一个管理监控工具,集合head和bigdesk,但不是免费的centos

如今咱们新加一台elasticsearch节点
只要在同一网段都会自动发现elasticsearch

相关文章
相关标签/搜索