elasticsearch报错:None of the configured nodes are available: []

问题:在内网测试的时候可以正常访问,但是部署到外网上客户端连接elasticsearch报错:None of the configured nodes are available: []

原因:默认情况下,ElasticSearch使用0.0.0.0地址,并为http传输开启9200-9300端口,为节点到节点的通信开启9300-9400端口,部署到外网修改修改elasticsearch.yml配置

操作:

修改elasticsearch.yml

将network.host、transport.tcp.port、http.port重新配置成自己真实的ip即可

重新启动es即可

具体配置说明请看http://blog.csdn.net/lu_wei_wei/article/details/51263153

时间: 2024-11-08 06:17:39

elasticsearch报错:None of the configured nodes are available: []的相关文章

hibernate报错:no currentsessioncontext configured!

使用hibernate框架时候报错:no currentsessioncontext configured! 这个错误是当我们使用getCurrentSession();时候引起的,原因是currentSession配置错误,与事务有关,当我们使用currentSession的时候需要在hibernate.cfg.xml中进行如下事务配置: 1.如果是本地事务: <property name="hibernate.current_session_context_class">

git连接不上远程仓库---visualstudio提交代码报错:no upstream configured for branch &#39;master&#39;

1,新建文件夹,在文件下下鼠标右键git bush--->git init,初始化仓库: 2,设置gitthub仓库地址:git remote add origin https://github.com/z*****g/lm.git 3,git pull origin master 4,git push --set-upstream origin master,关联一个远程分支,并从这个分支上传下带代码 git branch查看分支 git add . git commit -m "提交注

Elasticsearch 报错:Fielddata is disabled on text fields by default. Set `fielddata=true` on [`your_field_name`] in order to load fielddata in memory by uninverting the inverted index.

Elasticsearch 报错: Fielddata is disabled on text fields by default. Set `fielddata=true` on [`your_field_name`] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. 解决:https://www.e

连接redis报错MISCONF Redis is configured to save RDB s

连接redis报错MISCONF Redis is configured to save RDB snapshots date: Mon Nov 11 16:11:24 CST 2019 笔者:张首富 程序报错如下 redis.exceptions.ResponseError: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands t

git报错:fatal: No configured push destination.

本地仓库代码(git push)上传git仓库报错: fatal: No configured push destination. Either specify the URL from the command-line or configure a remote repository using git remote add <name> <url> and then push using the remote name git push <name> 解决办法: 在

elasticsearch报错expected &lt;block end&gt;, but found BlockMappingStart解决方法

我用的是elasticsearch2.4.0,在修改完配置文件就出现类似格式 expected <block end>, but found BlockMappingStart......的报错 经过网上搜索发现是格式问题,在配置文件中vim /etc/elasticsearch/elasticsearch.yml中. 每个配置行前需要有空格 每个':'两边需要有空格 数组中间加空格 还有注释掉的参数不能在#后边加空格不然报错

CentOS release 6.7 启动 elasticsearch 报错

启动elasticsearch 报如下错误: [2017-05-10T10:04:50,648][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_SECC

yii2.0 报错Cookievalidationkey Must Be Configured With A Secret Key

'components' => [ 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 'cookieValidationKey' => 'test', //这里配置秘钥字符串就不会报错了 ]]

elasticsearch报错

[2014-09-05 10:04:26,551][INFO ][node                     ] [Yukio] started [2014-09-05 10:05:49,076][DEBUG][action.search.type       ] [Yukio] [logstash-2014.08.25][1], node[D9K7wZoESkutIqqdR0CxkQ], [P], s[STARTED]: Failed to execute [[email protect