zoukankan      html  css  js  c++  java
  • 使用es索引遇到的问题记录

    1设置es索引的运行内存:

    直接在启动文件里面改就好,启动命令是elasticsearch.bat,用notepad++编辑这个文件,里面添加这样的一行:SET ES_HEAP_SIZE=10g即可

    2将es索引设置为.bat快捷启动,用管理员打开cmd命令窗口输入一下的命令:server.bat install es,然后通过命令:net start es便可启动es索引。

    3上传文件的时候遇到异常信息:failed to send join request to master reason IllegalStateExceptin Future got interrupted;nested:InterruptedException;

    原因是开启了太多的elasticsearch了,9200被多个程序占用,解决方法1先看一下端口9200有哪些程序在占用netstat -ano,列出所有的端口,netstat -aon|findstr "9200"查看端口被哪个pid在使用,tasklist|findstr “pid”,查看这个pid实际上运行的是哪个程序,输入命令taskkill /f /t /im 程序.exe 即可把占用这个端口的程序关闭

  • 相关阅读:
    bzoj1648
    bzoj3404
    bzoj1650
    bzoj1625
    bzoj1606
    bzoj1464
    bzoj1572
    bzoj1617
    bzoj1092
    bzoj1091
  • 原文地址:https://www.cnblogs.com/lisi2016/p/6863886.html
Copyright © 2011-2022 走看看