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的目录 ...
随机推荐
- Skyline(6.x)-Web二次开发-多窗口对比
GitHub 上获取源码 1. 打开个 3D 窗口 一个页面加载多个 TerraExplorer3DWindow 和 SGWorld 等只有第一个能用(即使用 iframe 也是一样) 所以我决定打开 ...
- day38—JavaScript的运动基础-匀速运动
转行学开发,代码100天——2018-04-23 一.运动基础框架 JavaScript的运动可以广义理解为渐变效果,直接移动效果等,图网页上常见的“分享到”,banner,透明度变化等.其实现的基本 ...
- [转]Jenkins HTML报告样式无法显示问题解决
原文地址: https://vwin.github.io/2018/10/11/Jenkins-HTML%E6%8A%A5%E5%91%8A%E6%A0%B7%E5%BC%8F%E6%97%A0%E6 ...
- 学习使用Delphi for android 调用Java类库
http://blog.csdn.net/laorenshen/article/details/41148253 学习使用Delphi for android 调用Java类库 2014-11-15 ...
- Eclipse如何汉化[完美版]
当前版本:Eclipse 4.5.1 1.如何查看eclipse的版本呢 找到关于Eclipse,点击 . 2.打开浏览器连接http://www.eclipse.org/babel/download ...
- LeetCode 230. Kth Smallest Element in a BST 动态演示
返回排序二叉树第K小的数 还是用先序遍历,记录index和K进行比较 class Solution { public: void helper(TreeNode* node, int& idx ...
- 认识requests库,以及安装方法
1.学习requests库有什么意义 1)对我来说,我是测试人员,我用它来解决HTTP接口自动化测试 2)写爬虫需要用到requests 3)如果是开发人员,需要些接口,了解requests有助于掌握 ...
- jQuery基础--选择器
2. 选择器 2.1. 什么是jQuery选择器 jQuery选择器是jQuery为我们提供的一组方法,让我们更加方便的获取到页面中的元素.注意:jQuery选择器返回的是jQuery对象. jQue ...
- hive 排序
1.全局排序(order by) Order by:全局排序,只有一个reducer ASC(ascend):升序(默认) DESC(descend):降序 2.每个MR内部排序(sort by) s ...
- 最小生成树(prim和Kruskal操!!SB题)
Arctic Network Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 30571 Accepted: 9220 D ...