1、简介

Cerebro是Elasticsearch 版本5.x 以前插件 Elasticsearch Kopf 的演变,可以通过图形界面查看分片分配和执行常见的索引操作。完全开源,需要依赖 Java 1.8 或更高版本才能运行。

2、安装

# 安装java
yum -y install java

# 解压
wget https://github.com/lmenezes/cerebro/releaases/download/v0.9.3/cerebro-0.9.3.zip
unzip cerebro-0.9.3.zip

# 启动
nohup cerebro-0.9.3/bin/cerebbro 2>&1 &

3、使用

浏览器登陆 http://127.0.0.1:9000,看到开始页面即为成功。

登录页,输入ES集群的 node address 进行连接,点击 Connect 进入

CentOS 7.x部署cerebro_Elastic

4、快捷配置

快速启动的话,将使用默认配置。可以把ES集群信息写入配置文件,省去每次登录的输入操作。

vim cerebro/conf/application.conf 
# 这里仅配置host信息
hosts = [ 
  {  
    host = "http://127.0.0.1:9200"
    name = "my-application"
    auth = {   
      username = "elastic"
      password = "123456"
    } 
  }
]