ELK7.1.1之插件安装
在5.0版本之后不支持直接把插件包放入es安装目录的plugin目录下,需要单独安装;而且支持在线安装的插件很少,很多都是需要离线安装。以前的plugin变为elasticsearch-plugin
获取在线安装的插件:
./elasticsearch-plugin install -h
Install a plugin
The following official plugins may be installed by name:
analysis-icu
analysis-kuromoji
analysis-nori
analysis-phonetic
analysis-smartcn
analysis-stempel
analysis-ukrainian
discovery-azure-classic
discovery-ec2
discovery-gce
ingest-attachment
mapper-annotated-text
mapper-murmur3
mapper-size
repository-azure
repository-gcs
repository-hdfs
repository-s3
store-smb
transport-nio
接下来我们介绍几款常用插件的安装:
head插件
1.安装环境支持,需要安装nodejs
yum install -y nodejs npm
2.下载head插件
cd /usr/local/
git clone git://github.com/mobz/elasticsearch-head.git
3.安装依赖包
cd /usr/local/elasticsearch-head
npm install
#执行后会生成node_modules文件夹
如果遇到异常cnpm不是内部或外部命令 cnpm: command not found,则运行如下脚本,使用淘宝镜像包
npm install cnpm -g --registry=https://registry.npm.taobao.org
cnpm install
修改配置文件
2.修改Gruntfile.js
cd elasticsearch-head
cd /usr/local/elasticsearch-head
vim Gruntfile.js
在该文件中添加如下,务必注意不要漏了添加“,”号,这边的hostname:’*’,表示允许所有IP可以访问,此处也可以修改端口号
server: {
options: {
hostname: '*',
port: ,
base: '.',
keepalive: true
}
}
3.修改elasticsearch-head默认连接地址
cd _site
vi app.js
做如下修改,将ip地址修改为对应的服务器的ip地址
将localhost修改为elasticSearch IP
this.base_uri = this.config.base_uri || this.prefs.get("app-base_uri") || "http://10.0.0.11:9200";
4.修改elasticSearch配置文件并启动ElasticSearch
这边需要修改elasticsearch的配置文件elasticsearch.yml,以允许跨域访问,在文末追加如下代码即可
http.cors.enabled: true
http.cors.allow-origin: "*"
5.修改完毕后重新启动ElasticSearch(注意不能使用root权限启动)
6.启动elasticsearch-head
cd /usr/local/elasticsearch-head
nohup ./node_modules/grunt/bin/grunt server &
访问10.0.0.11:9100就能看到我们集群信息
一键脚本:
vim head_install.sh
#!/bin/sh
work_dir=/usr/local
node=`ip a s eth0|awk -F"[ /]+" 'NR==3{print $3}'`
yum install -y nodejs npm
cd ${work_dir}
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
npm install
sed -ri.bak "s/9100,/9100\,\n hostname: \'\*\'\,/" Gruntfile.js
cd _site
sed -ri.bak "s/localhost/${node}/" app.js
cat <<EOF >/root/head_start.sh
#!/bin/sh
work_dir=${work_dir}
{
while true
do
n=\$(ps -ef|grep -c [g]runt)
if [ \$n -eq ];then
cd \${work_dir}/elasticsearch-head
nohup ./node_modules/grunt/bin/grunt server &
fi
sleep 60s
done
}&
EOF
chmod +x /root/head_start.sh
/root/head_start.sh
Bigdesk插件
1、下载
cd /usr/local/
git clone https://github.com/hlstudio/bigdesk
2、启动web服务器,默认监听端口号8000,指定启动端口,并后台启动
cd /usr/local/bigdesk/_site
nohup python -m SimpleHTTPServer &
此时通过访问web界面来监控我们的集群状态。
http://10.0.0.11:8000
cerebro插件
1、下载cerebro插件:
git项目:https://github.com/lmenezes/cerebro/releases
wget https://github.com/lmenezes/cerebro/releases/download/v0.8.3/cerebro-0.8.3.tgz
2、上传到安装目录、解压:
tar xf cerebro-0.8..tgz -C /usr/local/src/
ln -s /usr/local/src/cerebro-0.8. /usr/local/cerebro
3、启动cerebro
cd /usr/local/cerebro
nohup ./bin/cerebro &
4、浏览器访问10.0.0.11:9000
连接集群http://10.0.0.11:9000
就能看到数据分片信息。
分词器
项目地址:
https://github.com/medcl/elasticsearch-analysis-ik/
下载地址:
wget https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.1.1/elasticsearch-analysis-ik-7.1.1.zip
安装插件
./bin/elasticsearch-plugin install file:///opt/elasticsearch-analysis-ik-7.1.1.zip
ELK7.1.1之插件安装的更多相关文章
- [Android Studio]SQLScout插件安装破解
以下内容为原创,欢迎转载,转载请注明 来自天天博客:http://www.cnblogs.com/tiantianbyconan/p/5972138.html [Android Studio]SQLS ...
- elasticsearch5.0及head插件安装
这个瞎jb整了半天.准备把es2.4升级到5.0,结果老报错 环境:centos6.5+es2.4是ok的换成es5就出毛病.也不能说啥 ,我用的是最新的 源码解压启动时候报错,具体错误for ...
- subtext3插件安装
1.启用Package Control,利用它进行插件安装: 启用方法:菜单栏-view-show console 在弹出的输入框内,输入以下代码,按回车,稍后会出现package control安装 ...
- webapp应用---cordova.js 3.7.0插件安装总结
今天是2014年的最后一天,年终总结什么的就不写了.记录一下今天的工作内容.如果不知道phoneGap,那么就不需要往下看了,phoneGap现在已经叫cordova了,叫什么不重要,重要的是它对we ...
- 分布式搜索引擎ElasticSearch+Kibana (Marvel插件安装详解)
在安装插件的过程中,尤其是安装Marvel插件遇到了很多问题,要下载license.Marvel-agent,又要下载安装Kibana 版本需求 Java 7 or later Elasticsear ...
- Sublime text3 常用插件 安装
1 安装插件前的准备工作 首先确保你的Sublime Text3编辑器为官方版(非破解版),建议下载官网的便携版本(好处多多). 然后安装插件管理工具(Package Control) 1.1 打开S ...
- HttpFox插件安装和打开教程
HttpFox插件安装教程 1.打开火狐浏览器,选择右上角的打开菜单 2.选择附加组件,在获取附件组件栏中搜索HttpFox插件 3.找到HttpFox插件选择安装 4.安装完成后选择左边的扩展栏确认 ...
- eclipse maven plugin 插件 安装 和 配置
离线插件 点击下载离线安装包:eclipse-maven-plugin.zip ( for eclipse helios or higher ) .解压缩到任意目录(如这里的plugins目录): ...
- Eclipse插件安装方式及使用说明
拷贝安装方式 1.通过ECLIPSE_HOME\plugins安装 在eclipse的主目录ECLIPSE_HOME, 比如在我的机器上安装的目录是:ECLIPSE_HOME有一个plugins的目录 ...
随机推荐
- day26—JavaScript对CSS样式的获取和修改实践
转行学开发,代码100天——2018-04-11 通过JavaScript获取和修改HTML元素及CSS属性是其一个基本功能.对于CSS样式通常有行内样式,外部样式,内嵌样式之分. 如: 行内样式: ...
- 异常-打开文件过多(too many open files)
异常-打开文件过多 异常报错如下 09-Oct-2019 15:37:51.923 严重 [http-nio2-8080-Acceptor-0] org.apache.tomcat.util.net. ...
- Leapin' Lizards [HDU - 2732]【网络流最大流】
题目链接 网络流直接最大流就是了,只是要拆点小心一个点的流超出了原本的正常范围才是. #include <iostream> #include <cstdio> #includ ...
- [LeetCode] 287. Find the Duplicate Number(Floyd判圈算法)
传送门 Description Given an array nums containing n + 1 integers where each integer is between 1 and n ...
- jQuery基础--动画操作
三组基本动画 <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset=" ...
- knn 数据集准备
""" Created on Mon Aug 26 20:57:24 2019 @author: huoqs knn algorithm ""&quo ...
- Python 学习笔记16 类 - 导入
我们在编码的过程中,可能会给对象添加越来越多的功能,即使我们使用了继承,也不可避免的使文件越来越臃肿. 为了避免这种情况, Python允许将对象存储在模块中,并且可以在其他模块中进行导入. 其实这和 ...
- ubuntu server 12.04安装任何软件都出现the following packages have unmet dependencies的解决方法
虽然目前没太弄清这到底是怎么回事,但是暂时可以给出一个解决的方法, 如果在安装任何软件都会出现这个问题,那么尝试着输入sudo apt-get install -f试一下. 在该命令执行完成后,我这边 ...
- 解读vue filter
1.全局filter, 全局的过滤一般在main.js里面使用 <div id="app"> <div> {{testVal | filVal(10,30) ...
- 水题(三角形与扇形面积计算sin()应用)
J - Sincerely Gym - 101350J Physics cat likes to draw shapes and figure out their area. He starts by ...