elasticsearch-head可视化

Es可视化工具:elasticsearch-head安装
1、nodejs下载页面: https://nodejs.org/en/download/
2、安装nodejs
在这里插入图片描述

备注:安装完之后不创建软连接。可以添加到环境变量
Vim /etc/profile
Export NODEJS_HOME=/usr/local/nodejs
Export PATH= N O D E J S H O M E / b i n : NODEJS_HOME/bin: NODEJSHOME/bin:PATH
3、安装es-head
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
grunt是一个很方便的构建工具,可以进行打包压缩、测试、执行等等的工作,5.0里的head插件就是通过grunt启动的。因此需要安装一下grunt:
先使用npm安装grunt,npm(node package manager):node包管理工具,类似yum
Grunt是基于node.js的项目构建工具
npm install -g grunt-cli //执行后会生成node_modules文件夹
npm install
如遇以下错误:
在这里插入图片描述

解决:npm install phantomjs-prebuilt@2.1.16 --ignore-script

4、启动:
在这里插入图片描述

Npm run start &
5、验证:
浏览器访问 http://es-head节点IP:9100 ,并在下面的地址里把localhost改为es-head节点IP
在这里插入图片描述

6、将es集群配置文件做修改,并重启服务
vim /export/home/elasticsearch-2.3.5/config/elasticsearch.yml
http.cors.enabled: true
http.cors.allow-origin: “"
vim /home/elasticsearch-2.3.5/config/elasticsearch.yml
http.cors.enabled: true
http.cors.allow-origin: "

7、重启:
kill -9 7498
kill -9 7619

Su – elasticsearch

/export/home/elasticsearch-2.3.5/bin/elasticsearch –d
/home/elasticsearch-2.3.5/bin/elasticsearch –d
8、再次连接:
在这里插入图片描述

9、新建索引:
在这里插入图片描述

zend_extension=opcache.so
问题:
[2019-09-07T10:38:22,870][WARN ][o.e.b.JNANatives ] unable to install syscall filter:
java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed
解决:
解决:使用新的:linux版本,就不会出现此类问题了。
ERROR: [3] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
[2]: max number of threads [1024] for user [elasticsearch] is too low, increase to at least [4096]
[3]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
解决:切换到root用户,编辑limits.conf 添加类似如下内容
vi /etc/security/limits.conf
添加如下内容:

  • soft nofile 65536
  • hard nofile 131072
  • soft nproc 2048
  • hard nproc 4096
    问题三:max number of threads [1024] for user [lish] likely too low, increase to at least [2048]
    解决:切换到root用户,进入limits.d目录下修改配置文件。
    vi /etc/security/limits.d/90-nproc.conf
    修改如下内容:
  • soft nproc 1024
    #修改为
  • soft nproc 2048
    [1]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk
    解决:
    Centos6不支持SecComp,而ES5.2.0默认bootstrap.system_call_filter为true
    禁用:在elasticsearch.yml中配置bootstrap.system_call_filter为false,注意要在Memory下面:
    bootstrap.memory_lock: false
    bootstrap.system_call_filter: false
    Kibana问题:
    安装kibana时出现default index Error: Please specify a default index pattern
    解决办法:
    将配置文件kibana.yml中下面一项的配置打开(#注释符号打开):
    Kibana.index: “.kibana”
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值