11

别说,Cerebro还真好用!老板再也不用担心ES集群了

 3 years ago
source link: https://mp.weixin.qq.com/s?__biz=MzU2NjIzNDk5NQ%3D%3D&%3Bmid=2247494451&%3Bidx=1&%3Bsn=ddfdf6f07adca6c855f868672032c61b
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

点击上方 匠心零度 ,选择“ 设为星标

做积极的人,而不是积极废人

JZzIze.jpg!mobile

来源 | https://urlify.cn/jMJRZb

Cerebro 是以前的 Elasticsearch 插件 Elasticsearch Kopf 的演变(https://github.com/lmenezes/elasticsearch- kopf) – 这不适用于 Elasticsearch 版本5.x或更高版本。 是查看分片分配和最有用的界面之一, 通过图形界面执行常见的索引操作, 并且 允许您添加用户,密码或 LDAP 身份验证问网络界面。 对先前插件的部分重写,并且可以作为自运行工具使用应用程序服务器。

Cerebro 的安装网站 可以发现:https://github.com/lmenezes/cerebro,为了安装它,你必须使用 Java 1.8 或更新的版本。

安装 Cerebro

为了安装 Cerebro,需要手动下载并安装它。

你可以在 https://github.com/lmenezes/cerebro 上下载 Cerebro 的二进制发行版。 对于 Linux 或 macOSX,我们可以使用以下命令:

wget -c https://github.com/lmenezes/cerebro/releases/download/v0.8.5/cerebro-0.8.5.tgz tar xfvz cerebro-0.8.5.tgz

可以在上面的github里找到最新的 cerebro 发行版本。

如果你想做 docker 安装,请参阅链接 https://github.com/lmenezes/cerebro-docker。

运行 cerebro

可以通过如下的方式来运行 crebro:

cerebro-0.8.5/bin/cerebro

针对 Windows 操作系统来说,可以使用如下的方式来运行:

cerebro-0.8.5/bin/cerebro.bat

在 console 里,可以看到类似如下的输出:

fuuyM3y.png!mobile

从上面的输出可以看出来,可以通过 http://0.0.0.0:9000/ 开访问:

na2uquN.png!mobile

在上面需要输入我们的 Elasticsearch 的 node address 来进行连接。点击 Connect 按钮:

FBv2MbM.png!mobile

在上面,可以看到 overview tab 的界面。它显示了目前 node 的总体情况。

点击 nodes tab,可以看到如下的界面:

jERbIbe.png!mobile

点击 rest tab,可以输入我们的DSL请求:

VbuAru6.png!mobile

可以在这个界面里发送我们想要的 DSL 查询请求。这里有点像我们的 Kibana Dev tools。只是在这里没有 auto-complete 功能。

可以点 more tab:

QzYRJnF.png!mobile

状态栏:

在上面它显示我们的 cluster 状态为 yellow ,它表示需要更多的节点来分别我们的 shard。

END

如果读完觉得有收获的话,欢迎点【好看】,关注【匠心零度】,查阅更多精彩历史!!!

nmqYriz.gif!mobile

让我“ 好看 ”  bYreamJ.gif!mobile


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK