ERROR: bootstrap checks failed
max file descriptors [1024] for elasticsearch process is too low, increase to at least [65536]
处理方案
[root@node1 ~]# vi /etc/security/limits.conf
# /etc/security/limits.conf
hadoop soft nofile 65536
hadoop hard nofile 65536
[root@node1 ~]# sysctl -p
[hadoop@node1 ~]$ ulimit -Hn
65536
Last login: Sat Feb 25 12:45:11 2017
[root@node1 ~]# su - hadoop
[hadoop@node1 ~]$ cd /opt/es5.0/elasticsearch-5.1.2
[hadoop@node1 elasticsearch-5.1.2]$ cd bin/
[hadoop@node1 bin]$ sh ../../init_env.sh
../../init_env.sh: line 9: ulimit: open files: cannot modify limit: Operation not permitted
[hadoop@node1 bin]$ cat ../../init_env.sh
#!/bin/bash
# add by gaojingsong
# init env
JAVA_HOME=/opt/es5.0/jdk1.8.0_111
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME PATH
ulimit -n 262144
[hadoop@node1 bin]$ ulimit -n 262144
-bash: ulimit: open files: cannot modify limit: Operation not permitted
[hadoop@node1 bin]$ ./elasticsearch
[2017-02-25T12:48:32,075][WARN ][o.e.b.JNANatives ] unable to install syscall filter:
java.lang.UnsupportedOperationException: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER compiled in
at org.elasticsearch.bootstrap.Seccomp.linuxImpl(Seccomp.java:349) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Seccomp.init(Seccomp.java:630) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.JNANatives.trySeccomp(JNANatives.java:215) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Natives.trySeccomp(Natives.java:99) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:105) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:176) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:306) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.cli.Command.main(Command.java:88) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82) [elasticsearch-5.1.2.jar:5.1.2]
[2017-02-25T12:48:48,723][INFO ][o.e.n.Node ] [node-1] initializing ...
[2017-02-25T12:48:52,278][INFO ][o.e.e.NodeEnvironment ] [node-1] using [1] data paths, mounts [[/ (/dev/hdc2)]], net usable_space [7.5gb], net total_space [17.1gb], spins? [possibly], types [ext3]
[2017-02-25T12:48:52,279][INFO ][o.e.e.NodeEnvironment ] [node-1] heap size [1.9gb], compressed ordinary object pointers [true]
[2017-02-25T12:48:52,283][INFO ][o.e.n.Node ] [node-1] node name [node-1], node ID [EdHbn3S_Sxm4Cwz0pMxwRQ]
[2017-02-25T12:48:52,461][INFO ][o.e.n.Node ] [node-1] version[5.1.2], pid[3640], build[c8c4c16/2017-01-11T20:18:39.146Z], OS[Linux/2.6.18-128.el5/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_111/25.111-b14]
[2017-02-25T12:49:16,001][INFO ][o.e.p.PluginsService ] [node-1] loaded module [aggs-matrix-stats]
[2017-02-25T12:49:16,001][INFO ][o.e.p.PluginsService ] [node-1] loaded module [ingest-common]
[2017-02-25T12:49:16,002][INFO ][o.e.p.PluginsService ] [node-1] loaded module [lang-expression]
[2017-02-25T12:49:16,002][INFO ][o.e.p.PluginsService ] [node-1] loaded module [lang-groovy]
[2017-02-25T12:49:16,003][INFO ][o.e.p.PluginsService ] [node-1] loaded module [lang-mustache]
[2017-02-25T12:49:16,004][INFO ][o.e.p.PluginsService ] [node-1] loaded module [lang-painless]
[2017-02-25T12:49:16,005][INFO ][o.e.p.PluginsService ] [node-1] loaded module [percolator]
[2017-02-25T12:49:16,006][INFO ][o.e.p.PluginsService ] [node-1] loaded module [reindex]
[2017-02-25T12:49:16,006][INFO ][o.e.p.PluginsService ] [node-1] loaded module [transport-netty3]
[2017-02-25T12:49:16,007][INFO ][o.e.p.PluginsService ] [node-1] loaded module [transport-netty4]
[2017-02-25T12:49:16,008][INFO ][o.e.p.PluginsService ] [node-1] no plugins loaded
[2017-02-25T12:50:37,721][INFO ][o.e.n.Node ] [node-1] initialized
[2017-02-25T12:50:37,722][INFO ][o.e.n.Node ] [node-1] starting ...
[2017-02-25T12:50:43,667][INFO ][o.e.t.TransportService ] [node-1] publish_address {192.168.1.104:9300}, bound_addresses {192.168.1.104:9300}
[2017-02-25T12:50:43,956][INFO ][o.e.b.BootstrapCheck ] [node-1] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: bootstrap checks failed
max file descriptors [1024] for elasticsearch process is too low, increase to at least [65536]
[2017-02-25T12:50:44,001][INFO ][o.e.n.Node ] [node-1] stopping ...
[2017-02-25T12:50:45,189][INFO ][o.e.n.Node ] [node-1] stopped
[2017-02-25T12:50:45,189][INFO ][o.e.n.Node ] [node-1] closing ...
[2017-02-25T12:50:45,974][INFO ][o.e.n.Node ] [node-1] closed
[hadoop@node1 bin]$ ulimit -Hn
1024
处理方案:
[root@node1 ~]# vi /etc/security/limits.conf
# /etc/security/limits.conf
hadoop soft nofile 65536
hadoop hard nofile 65536
[root@node1 ~]# sysctl -p
[hadoop@node1 ~]$ ulimit -Hn
65536
[hadoop@node1 ~]$
[hadoop@node1 bin]$ exit
logout
[root@node1 ~]# su - hadoop
[hadoop@node1 ~]$ cd /opt/es5.0/elasticsearch-5.1.2/bin/
[hadoop@node1 bin]$ ./elasticsearch
[2017-02-25T12:57:44,717][WARN ][o.e.b.JNANatives ] unable to install syscall filter:
java.lang.UnsupportedOperationException: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER compiled in
at org.elasticsearch.bootstrap.Seccomp.linuxImpl(Seccomp.java:349) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Seccomp.init(Seccomp.java:630) ~[elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.JNANatives.trySeccomp(JNANatives.java:215) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Natives.trySeccomp(Natives.java:99) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:105) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:176) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:306) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.cli.Command.main(Command.java:88) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89) [elasticsearch-5.1.2.jar:5.1.2]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82) [elasticsearch-5.1.2.jar:5.1.2]
[2017-02-25T12:57:49,258][INFO ][o.e.n.Node ] [node-1] initializing ...
[2017-02-25T12:57:49,893][INFO ][o.e.e.NodeEnvironment ] [node-1] using [1] data paths, mounts [[/ (/dev/hdc2)]], net usable_space [7.5gb], net total_space [17.1gb], spins? [possibly], types [ext3]
[2017-02-25T12:57:49,894][INFO ][o.e.e.NodeEnvironment ] [node-1] heap size [1.9gb], compressed ordinary object pointers [true]
[2017-02-25T12:57:49,902][INFO ][o.e.n.Node ] [node-1] node name [node-1], node ID [EdHbn3S_Sxm4Cwz0pMxwRQ]
[2017-02-25T12:57:50,010][INFO ][o.e.n.Node ] [node-1] version[5.1.2], pid[3837], build[c8c4c16/2017-01-11T20:18:39.146Z], OS[Linux/2.6.18-128.el5/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_111/25.111-b14]
[2017-02-25T12:58:04,978][INFO ][o.e.p.PluginsService ] [node-1] loaded module [aggs-matrix-stats]
[2017-02-25T12:58:04,980][INFO ][o.e.p.PluginsService ] [node-1] loaded module [ingest-common]
[2017-02-25T12:58:04,981][INFO ][o.e.p.PluginsService ] [node-1] loaded module [lang-expression]
[2017-02-25T12:58:04,982][INFO ][o.e.p.PluginsService ] [node-1] loaded module [lang-groovy]
[2017-02-25T12:58:04,983][INFO ][o.e.p.PluginsService ] [node-1] loaded module [lang-mustache]
[2017-02-25T12:58:04,984][INFO ][o.e.p.PluginsService ] [node-1] loaded module [lang-painless]
[2017-02-25T12:58:04,992][INFO ][o.e.p.PluginsService ] [node-1] loaded module [percolator]
[2017-02-25T12:58:04,996][INFO ][o.e.p.PluginsService ] [node-1] loaded module [reindex]
[2017-02-25T12:58:04,997][INFO ][o.e.p.PluginsService ] [node-1] loaded module [transport-netty3]
[2017-02-25T12:58:04,998][INFO ][o.e.p.PluginsService ] [node-1] loaded module [transport-netty4]
[2017-02-25T12:58:04,999][INFO ][o.e.p.PluginsService ] [node-1] no plugins loaded
[2017-02-25T12:59:42,643][INFO ][o.e.n.Node ] [node-1] initialized
[2017-02-25T12:59:42,644][INFO ][o.e.n.Node ] [node-1] starting ...
[2017-02-25T12:59:43,710][INFO ][o.e.t.TransportService ] [node-1] publish_address {192.168.1.104:9300}, bound_addresses {192.168.1.104:9300}
[2017-02-25T12:59:43,755][INFO ][o.e.b.BootstrapCheck ] [node-1] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
[2017-02-25T12:59:47,780][WARN ][o.e.m.j.JvmGcMonitorService] [node-1] [gc][young][2][7] duration [3.7s], collections [1]/[3.9s], total [3.7s]/[8.4s], memory [83.6mb]->[27.7mb]/[1.9gb], all_pools {[young] [58.9mb]->[340.8kb]/[66.5mb]}{[survivor] [8.3mb]->[8.3mb]/[8.3mb]}{[old] [16.3mb]->[19.4mb]/[1.9gb]}
[2017-02-25T12:59:47,794][WARN ][o.e.m.j.JvmGcMonitorService] [node-1] [gc][2] overhead, spent [3.7s] collecting in the last [3.9s]
[2017-02-25T12:59:52,205][INFO ][o.e.c.s.ClusterService ] [node-1] new_master {node-1}{EdHbn3S_Sxm4Cwz0pMxwRQ}{X8YXs6i8SoyGLG2PUvhrVg}{192.168.1.104}{192.168.1.104:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2017-02-25T12:59:52,716][INFO ][o.e.g.GatewayService ] [node-1] recovered [0] indices into cluster_state
[2017-02-25T12:59:52,912][INFO ][o.e.h.HttpServer ] [node-1] publish_address {192.168.1.104:9200}, bound_addresses {192.168.1.104:9200}
[2017-02-25T12:59:52,912][INFO ][o.e.n.Node ] [node-1] started
相关推荐
Elasticsearch-Bulk-Insert-Plugin 是一个专为Kettle设计的插件,主要用于高效地将大量数据批量插入到Elasticsearch(ES)集群中。Elasticsearch是一种流行且功能强大的分布式搜索引擎,常用于大数据分析、日志分析...
Elasticsearch(ES)作为一个开源的全文搜索引擎,因其强大的搜索功能和分布式特性而备受青睐。然而,对于中文这种复杂的语言,分词是搜索引擎理解文本的关键步骤。本文将详细介绍elasticsearch-analysis-ik-7.10.2...
"ranger-2.1.0-elasticsearch-plugin"是Ranger为Elasticsearch设计的安全插件,适用于Elasticsearch 5.x及更高版本。该插件旨在增强Elasticsearch的数据安全性,允许管理员对索引、文档、字段级别设置权限,实现用户...
总的来说,elasticsearch-bulk-insert-plugin-8.2.0.0-342.zip是一个解决Kettle与Elasticsearch 7.x兼容问题的插件,提供了数据批量导入的能力,帮助用户充分利用Elasticsearch的强大功能进行数据分析和存储。...
Elasticsearch是一个开源的全文...总之,Elasticsearch 8.1.0在Linux上的部署涉及下载、解压、配置、启动和管理等多个步骤。了解这些基础知识对于有效地利用Elasticsearch处理大规模数据和提供高效搜索服务至关重要。
5. **配置文件**: 解压后的目录中包含一个名为`elasticsearch.yml`的配置文件,这是Elasticsearch的主要配置文件。你可以在这里修改集群名称、节点角色、网络设置、索引存储等参数。 6. **Java运行环境**: Elastic...
若上述命令安装失败,可以下载Elasticsearch-SQL插件的zip压缩包,解压后将文件夹重命名为`sql`,并将其放置于ES安装目录的`plugins`子目录下,例如:`\elasticsearch-6.4.0\plugins\sql`。安装完毕后,请务必重启...
1. **版本升级**:当新版本发布时,你可以按照官方文档的步骤,先备份数据,再替换新的Elasticsearch二进制文件,最后重新配置并启动。 2. **数据迁移**:在升级或更换硬件时,需使用工具如`elasticdump`或`reindex...
10. **安装与配置**:解压"elasticsearch-7.17.7"文件后,用户需按照官方文档配置环境变量,设置内存大小、网络端口等参数,然后启动服务,即可开始使用。 总的来说,Elasticsearch是现代大数据时代的一个重要工具...
在Elasticsearch中安装IK分词器通常包括以下步骤: 1. 将`elasticsearch-analysis-ik-7.17.16.jar`复制到Elasticsearch的`plugins`目录下。 2. 如果需要自定义配置,编辑`config/IKAnalyzer.cfg.xml`。 3. 重启...
6. **安全管理**:从7.x版本开始,Elasticsearch默认启用了安全功能,包括内置的x-pack插件。为了允许非本地连接,可能需要取消安全认证或配置合适的用户和权限。 7. **多节点集群**:若要搭建多节点Elasticsearch...
安装Elasticsearch 8.5.2在Windows上,你需要执行以下步骤: 1. **解压**:将"elasticsearch-8.5.2-windows-x86_64.zip"文件解压缩到你选择的目录。 2. **配置**:修改`config/elasticsearch.yml`配置文件,根据...
安装Elasticsearch 7.2.0步骤: 1. 下载`elasticsearch-7.2.0-linux-x86_64.tar.gz`到Linux服务器。 2. 使用`tar -zxvf elasticsearch-7.2.0-linux-x86_64.tar.gz`解压文件。 3. 设置Elasticsearch的运行目录和数据...
在使用Elasticsearch时,你需要了解基本的概念,如索引(Index)、类型(Type,7.x版本中已废弃,被映射为Document)、文档(Document)和字段(Field)。还需要掌握如何创建索引、索引数据、执行查询以及管理集群的...
Elasticsearch是一个开源的全文搜索引擎,它以分布式、RESTful API接口、实时、高可用性和可扩展性著称。在Windows环境下安装Elasticsearch ...理解这些概念和操作步骤对于充分利用Elasticsearch的强大功能至关重要。
安装X-Pack的步骤包括在每个节点上解压`x-pack`插件,然后在`elasticsearch.yml`中启用它,如`xpack.security.enabled: true`。之后,使用`bin/elasticsearch-setup-passwords interactive`命令初始化默认用户和密码...
通常,Elasticsearch的安装路径为`/usr/share/elasticsearch`,plugins目录位于其下。你可以通过以下命令进行解压和移动: ``` unzip elasticsearch-analysis-ik-7.12.0.zip sudo mv ik /usr/share/elasticsearch...
Elasticsearch是一个开源的全文...总的来说,Elasticsearch 8.2.3在Linux环境中的部署涉及下载、解压、配置、启动和集群化等多个步骤。了解并掌握这些知识对于管理和维护一个高效、安全的Elasticsearch实例至关重要。