记录Linux下安装elasticSearch时遇到的一些错误

http://blog.sina.com.cn/s/blog_c90ce4e001032f7w.html

(2016-11-02 22:03:11)

标签:

elasticsearch

分类: 程序错误集锦
  本人安装ElasticSearch的步骤完全参照官方文档来进行,在此仅记录下安装过程遇到的一些错误以及解决的办法。

错误一 cannot allocate memory


解决方案: 虚拟机内存不够,关掉centos,重新加大内存分配,原先是512M,现在分配到1800M
 

错误二  can not run elasticsearch as root

解决方案: 不能用root用户登录来执行,切换为普通用户,
 
错误三 切换为普通用户后,权限不够
 
错误四  max virtual memory areas vm.max_count [65530] likely too low,increase to at least [26244] 

解决方案:https://zhuanlan.zhihu.com/p/22241634?refer=dataeye

错误五 max file descriptors [4096]  for elasticsearch process likely too low,increase to at least[65536] 
分享:

 

0

elasticsearch安装参数配置注意事项

awnuxkjy 2013-07-08 11:27 elasticsearch搜索 2,977 人阅读 抢沙发  
(4 次投票, 评分: 5.00, 总分: 5)
 
 

在elasticsearch安装时,有几个重要的参数配置需要我们注意:
1.文件描述
http://www.elasticsearch.org/guide/reference/setup/installation/这样描述:

Make sure to increase the number of open files descriptors on the machine (or for the user running elasticsearch). Setting it to 32k or even 64k is recommended.
 
In order to test how many open files the process can open, start it with -Des.max-open-files set to true. This will print the number of open files the process can open on startup.

关于第一句话就是我们的文件描述符配置设置为32k或者64k,具体配置为:
在linux系统:

/etc/security/limits.conf

编辑该文件,后面加上:

xq soft nofile 65536
xq hard nofile 65536

备注:xq为用户名,同时确保xq用户拥有次命令权限
用vi 编辑bin/elasticsearch文件后面加入

-Des.max-open-files=ture

这样在 运行命令

sh elasticsearch

就可以看得文件描述符的大小了

2.内存设置
elasticsearch内存设置为:

bootstrap.mlockall: true

这样可以elasticsearch确保使用物理内存,不使用linux swap 。

/etc/security/limits.conf

编辑该文件,后面加上:

xq  -memlock     unlimited

备注:xq为用户名,同时确保xq用户拥有次命令权限
或者直接编辑/etc/profile文件,在后面加上

ulimit -l unlimited

3.作为一个服务运行
请参考:elasticsearch service安装

本文固定链接: http://www.chepoo.com/elasticsearch-installation-parameters-configuration-considerations.html | IT技术精华网

记录Linux下安装elasticSearch时遇到的一些错误的更多相关文章

  1. linux下安装Elasticsearch(单机版和集群版)

    一.linux下安装Elasticsearch(单机) 1.软件下载 下载地址:https://www.elastic.co/cn/downloads/past-releases/elasticsea ...

  2. 解决在Linux下安装Oracle时的中文乱码问题

    本帖最后由 TsengYia 于 2012-2-22 17:06 编辑 解决在Linux下安装Oracle时的中文乱码问题 操作系统:Red Hat Enterprise Linux 6.1数据库:O ...

  3. linux下安装Oracle时交换空间不足的解决方法

    摘:linux下安装Oracle时交换空间不足的解决方法 linux上安装Oracle时交换空间不足的解决办法 增加交换空间有两种方法: 严格的说,在系统安装完后只有一种方法可以增加swap,那就是本 ...

  4. Linux下安装ElasticSearch 5 和配置外部访问

    https://www.cnblogs.com/hts-technology/p/8477291.html (一)ElasticSearch需要jdk1.8以上版本的支持,所以需要先安装jdk.lin ...

  5. linux下安装Elasticsearch

    一.简单介绍: Elasticsearch提供了近乎实时的数据操作和搜索功能,es集群中所有节点可以一起提供索引和搜索功能,能够相互发现彼此和自动地加入到集群中 二.基础概念: 1.索引: 表征的文档 ...

  6. linux下安装pkg-config时遇到"glib-2.0>=2.16"的错

    解决办法 如报错提示所述,加上:--with-internal-glib 即 ./configure --with-internal-glib 参考链接: http://stackoverflow.c ...

  7. 记录Mac下安装pyenv时所遇到的问题

    http://blog.csdn.net/foryouslgme/article/details/51683654  

  8. Linux 下安装python软件包(pip、nose、virtualenv、distribute )

    新手刚开始学习Python,目前学习<笨方法学python>ing- 在学习习题46时需要安装几个软件包:pip.nose.virtualenv.distribute !在此记录Linux ...

  9. Linux下安装配置Node及memcached

    这篇主要是记录Linux下安装Node及memcached遇到的问题及安装配置过程,方便日后查阅 Node安装及配置 [root@hostname ~]tar zxvf node-v0.12.4.ta ...

随机推荐

  1. java四种创建对象的方法

    1.用new语句创建对象,这是最常见的创建对象的方法.   2.运用反射手段,调用java.lang.Class或者java.lang.reflect.Constructor类的newInstance ...

  2. 【转】(DT系列五)Linux kernel 是怎么将 devicetree中的内容生成plateform_device

    原文网址:http://www.cnblogs.com/biglucky/p/4057495.html Linux kernel 是怎么将 devicetree中的内容生成plateform_devi ...

  3. delphi 通过控件的handle取得控件

    例子代码如下: vartsg:TstringGrid;begintsg:=Tstringgrid(FindControl(handle));//正常使用TstringGrid//tsg......./ ...

  4. 5. c++ 内存管理 C/C++ 内存机制

    参考自:http://blog.csdn.net/wpf_ml/article/details/7759911 1. 内存,Cache,寄存器内存:通常计算机将数据存放在物理内存,cache及寄存器中 ...

  5. 【转】VS调试技巧

    [转自]http://blog.csdn.net/ghttzsqgm/article/details/5326894 http://blog.csdn.net/cadcisdhht/article/d ...

  6. AJAX中的请求方式以及同步异步的区别

    AJAX中的请求方式以及同步异步的区别请求方式,分为GET与POST: GET 最为常见的HTTP请求,普通上网浏览页面就是GET.GET方式的参数请求直接跟在URL后,以问号开始.(JS中用wind ...

  7. 编写SQL

    create table student ( sno char(9) primary key, sname char(20) unique, ssex char(2), sage smallint, ...

  8. [Java Concurrent] 并发访问共享资源的简单案例

    EvenGenerator 是一个偶数生成器,每调用一个 next() 就会加 2 并返回叠加后结果.在本案例中,充当被共享的资源. EvenChecker 实现了 Runnable 接口,可以启动新 ...

  9. VS2008LINK : fatal error LNK1000: Internal error during IncrBuildImage

    修改链接选项,方法:项目->属性->链接器->常规   下面的“启用增量链接”,将“是(/INCREMENTAL)”改为“否(/INCREMENTAL:NO)”,然后确定就可以了.

  10. 沧海一声笑,移动应用的CRASH原因我找到! --记最新款数字化測试“星云測试“的使用攻略

    沧海一声笑,移动应用的CRASH原因我找到! --记最新款数字化測试"星云測试"的使用攻略 世界进步那么快,非常多新奇的点子层出不穷,于是我们创业.我们做最酷的手机应用,做最轰炸的 ...