elasticsearch5.0.1安装 marvel 插件
elasticsearch5.0.1安装 marvel 插件
1.在elasticsearch上安装x-pach插件
在elasticsearch的根目录(每个节点),运行 bin/elasticsearch-plugin进行安装
# bin/elasticsearch-plugin install x-pack
-> Downloading x-pack from elastic
[=================================================] 100%
* java.lang.RuntimePermission accessClassInPackage.com.sun.activation.registries
* java.lang.RuntimePermission getClassLoader
* java.lang.RuntimePermission setContextClassLoader
* java.lang.RuntimePermission setFactory
* java.security.SecurityPermission createPolicy.JavaPolicy
* java.security.SecurityPermission getPolicy
* java.security.SecurityPermission putProviderProperty.BC
* java.security.SecurityPermission setPolicy
* java.util.PropertyPermission * read,write
* java.util.PropertyPermission sun.nio.ch.bugLevel write
* javax.net.ssl.SSLPermission setHostnameVerifier
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.
Continue with installation? [y/N]y
-> Installed x-pack
如果config/elasticsearch.yml配置中关闭了自动创建索引,需要注释掉
#action.auto_create_index: false
改为如下:
action.auto_create_index: .security,.monitoring*,.watches,.triggered_watches,.watcher-history*
此时打开elasticsearch的9200端口,x-pack开启了账号密码认证
默认用户名和密码分别是 elastic 和 changeme
{
"name" : "u04es01.yaya.corp",
"cluster_name" : "yunva_es_cluster",
"cluster_uuid" : "xdljOmjtQ3-eaMjYyU1wJw",
"version" : {
"number" : "5.0.1",
"build_hash" : "080bb47",
"build_date" : "2016-11-11T22:08:49.812Z",
"build_snapshot" : false,
"lucene_version" : "6.2.1"
},
"tagline" : "You Know, for Search"
}
2.在Kibana上安装X-Pack
在Kibana根目录运行 bin/kibana-plugin 进行安装。
# bin/kibana-plugin install x-pack
Attempting to transfer from x-pack
Attempting to transfer from https://artifacts.elastic.co/downloads/kibana-plugins/x-pack/x-pack-5.0.1.zip
Transferring 56957357 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...
Plugin installation complete
在浏览器上输入: http://localhost:5601/ ,可以打开Kibana,此时需要输入用户名和密码登录,默认分别是 elastic 和 changeme
之前如果有nginx会有双重验证(nginx可以去掉)
修改密码会同步修改elasticsearch:9200端口的密码
更详细的信息可以参考:
https://www.elastic.co/guide/en/x-pack/5.0/installing-xpack.html