None of the configured nodes are availableException错误解决
来源:互联网 发布:美国非农数据最新消息 编辑:程序博客网 时间:2024/05/22 08:01
1.利用TransportClient对elastic进行操作时,报错如下
2.问题原因:
@SuppressWarnings({ "unchecked", "resource" })public static void main(String[] args) throws Exception {// 先构建clientSettings settings = Settings.builder().put("cluster.name", "my-application1").build();TransportClient client = new PreBuiltTransportClient(settings).addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("192.168.251.130"), 9300));System.out.println(client);createEmployee(client); //getEmployee(client);//updateEmployee(client); //deleteEmployee(client); client.close();}
3.问题解决
1.cluster.name与服务器中配置的名称不符合,
2.服务器中的配合文件中的cluster.name仍然是被注释的
3.解决方法: 将名称改为一样即可
参考: http://blog.csdn.net/yilan1993/article/details/50955039
阅读全文
0 0
- None of the configured nodes are availableException错误解决
- None of the configured nodes are available
- NoNodeAvailableException[None of the configured nodes are available
- elasticsearch报错:None of the configured nodes are available: []
- ElasticSearch: NoNodeAvailableException[None of the configured nodes are available...]
- None of the configured nodes are available #transport#-1
- Elasticsearch NoNodeAvailableException None of the configured nodes are available
- Elasticsearch NoNodeAvailableException[None of the configured nodes are available
- elasticsearch报错解决办法:NoNodeAvailableException[None of the configured nodes are available
- Exception in thread "main" NoNodeAvailableException[None of the configured nodes are available: [{#t
- org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are availa
- 记一次生产环境elasticsearch排查问题的排查None of the configured nodes are available
- elasticsearch None of the configured nodes are available遇到的坑
- ElasticSearch报错:None of the configured nodes were available
- RAC安装错误:The specified nodes are not clusterable
- 模拟器安装apk错误解决:The currently selected variant "debug" uses split APKs, but none of the 1 split apks...
- Failed to connect to the session manager: None of the authentication protocols specified are support
- velocity-tools springboot jar 解决 None of the document roots
- 《写给大家看的大数据》读后感
- 关于3D模型的搜索算法
- discuz文章列表页调用查看数和回复数
- 学习MongoDB 二:MongoDB添加、删除、修改
- Java多线程--syncornized原理与应用
- None of the configured nodes are availableException错误解决
- 层次聚类
- springmvc注解开发handler
- 存储类、链接
- Spring详解(一)------概述
- linux notes
- 《麦肯锡工作法》读后感
- Mongodb与Msyql的对应关系
- 【bzoj2005】[Noi2010]能量采集