记录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. Hadoop 学习笔记(二) HDFS API

    4.删除HDFS上的文件 package proj; import java.io.IOException; import org.apache.hadoop.conf.Configuration; ...

  2. 【java】基于Tomcat的WebSocket转帖 + 自己理解

    网址:http://redstarofsleep.iteye.com/blog/1488639 原帖时间是2012-5-8,自己书写时间是2013年6月21日10:39:06 Java代码 packa ...

  3. 【HDOJ】2416 Treasure of the Chimp Island

    bfs().题目的数据乱码.应该如下: *****#********* *.......$...* *..***.......* *....*****..* *....******37A *****. ...

  4. 构建你的第一个App

    Building Your First App 原文链接:http://developer.android.com/training/basics/firstapp/index.html 译文链接1: ...

  5. 微博广告推荐中有关Hadoop的那些事

    一.背景 微博,一个DAU上亿.每日发博量几千万的社交性产品,拥有庞大的数据集.如何高效得从如此规模的数据集中挖掘出有价值的信息,以增强用户粘性,提高信息传播速度,就成了重中之重.因此,我们引入了ha ...

  6. G - Oil Skimming - hdu 4185(二分图匹配)

    题意:在大海里有一些石油 ‘#’表示石油, ‘.’表示水,有个人有一个工具可以回收这些石油,不过只能回收1*2大小的石油块,里面不能含有海水,要不就没办法使用了,求出来最多能回收多少块石油 分析:先把 ...

  7. nexus私服安装

    一.搭建nexus私服.当前服务器版本是jdk1.8    . nexus安装包下载:http://www.sonatype.org/nexus/archived 先是下载目前最新的版本 Nexus ...

  8. Python logging模块详解

    简单将日志打印到屏幕: import logging logging.debug('debug message') logging.info('info message') logging.warni ...

  9. Android 自定义CheckBox样式

    1.首先在drawable文件夹中添加drawable文件checkbox_style.xml. <selector xmlns:android="http://schemas.and ...

  10. apache利用.htaccess实现部分页面301

    由于网站改版,对访问url进行了改进 原:http://www.tutufu.com/w_weifenlei/DeHaiZi_38251/ 现:http://www.tutufu.com/unclas ...