美文网首页
安装小结

安装小结

作者: 果酱一一 | 来源:发表于2015-12-23 19:44 被阅读21次

第一个问题 :Java API:NoNodeAvailableException: No node available


I assume that you are setting the ES server on a remote host? In that case you will need to bind the publish address to the host's public IP address.

In your ES host edit /etc/elasticsearch/elasticsearch.yml

and add its public IP after network.publish_host:
Set the address other nodes will use to communicate with this node. If not set, it is automatically derived. It must point to an actual IP address.

network.publish_host: 192.168.0.1

And in your code connect to this host on port 9300. Note that you need the IP and not the domain name (at least according to my experience on Amazon EC2)
ElasticSearch Java API:NoNodeAvailableException: No node available


后台启动elasticSearch
./elasticsearch start

相关文章

  • 【教程】react教程(精简)

    react 教程 一、React安装 参考:小结点node博客-react的安装与使用 1 、 使用npm安装脚手...

  • Git 入门教程:PPT+视频+《Pro.Git中文版》

    01 git安装视频链接: 密码: p46w 02 Git基本操作 小结 03 git分支 小结 04 Git服务...

  • 安装小结

    第一个问题 :Java API:NoNodeAvailableException: No node availab...

  • GoogleTest 小结

    1. GoogleTest 安装, 基于gtest V1.10 2. 用法小结 2.1 简单测试安装 2.2 系统...

  • opencv安装配置小结

    opencv安装配置小结 由于opencv版本之间不通用的原因,自己多次更换安装了opencv各种版本以及各种安装...

  • MySQL笔记

    小结:MySQL [TOC] 安装与登陆 Linux系统:可以从官网下载deb安装包安装,或者使用apt-get命...

  • scrapy安装小结

    折腾一下午,终于在mac上把scrapy给装上,现总结一下经验,以供参考。 scrapy安装前的电脑状况描述: a...

  • zabbix安装小结

    安装server

  • Mongo安全 之 SSL

    目录 引言 安装安装Mongo运行Mongo 普通连接 SSL连接制作证书更新配置下载证书连接数据库 小结 引言 ...

  • pip的安装及使用pip命令安装selenium方法

    在做自动化的时候,我们经常使用python+selenium的结构。下面小结pip的安装及使用pip命令安装sel...

网友评论

      本文标题:安装小结

      本文链接:https://www.haomeiwen.com/subject/hjsvhttx.html