elasticsearch,Java,elasticsearch" /> elasticsearch,Java,elasticsearch" />

Java NoNoNodeAvailableException[没有任何配置的节点可用:[{{transport}-1}{ifvrlxsusudgvyfzl_Rabkg}{10.10.10.109}{10.10.10.109:9300}]

Java NoNoNodeAvailableException[没有任何配置的节点可用:[{{transport}-1}{ifvrlxsusudgvyfzl_Rabkg}{10.10.10.109}{10.10.10.109:9300}],java,elasticsearch,Java,elasticsearch,我已经在我的服务器(10.10.10.109)上安装了elasticsearch 5.0.2(最新版本)并且试图从java创建传输客户端,我无法连接并获取“不可下载的异常”。我的项目中包含了相同版本的elasticsearchmaven依赖项。但我不知道我错在哪里 TransportClient client = new PreBuiltTransportClient(Settings.EMPTY) .addTransportAddress(new InetSocketTrans

我已经在我的
服务器(10.10.10.109)
上安装了
elasticsearch 5.0.2
(最新版本)并且试图从java创建传输客户端,我无法连接并获取“不可下载的异常”。我的项目中包含了相同版本的
elasticsearch
maven依赖项。但我不知道我错在哪里

TransportClient client = new PreBuiltTransportClient(Settings.EMPTY)
        .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("10.10.10.109"), 9300));
这是我的
elasticsearch.yml
文件

#
        # NOTE: Elasticsearch comes with reasonable defaults for most settings.
        #       Before you set out to tweak and tune the configuration, make sure you
        #       understand what are you trying to accomplish and the consequences.
        #
        # The primary way of configuring a node is via this file. This template lists
        # the most important settings you may want to configure for a production cluster.
        #
        # Please see the documentation for further information on configuration options:
        # <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
        #
        # ---------------------------------- Cluster -----------------------------------
        #
        # Use a descriptive name for your cluster:
        #
        #cluster.name: my-application
        #
        # ------------------------------------ Node ------------------------------------
        #
        # Use a descriptive name for the node:
        #
        #node.name: node-1
        #
        # Add custom attributes to the node:
        #
        #node.attr.rack: r1
        #
        # ----------------------------------- Paths ------------------------------------
        #
        # Path to directory where to store the data (separate multiple locations by comma):
        #
        #path.data: /path/to/data
        #
        # Path to log files:
        #
        #path.logs: /path/to/logs
        #
        # ----------------------------------- Memory -----------------------------------
        #
        # Lock the memory on startup:
        #
        #bootstrap.memory_lock: true
        #
        # Make sure that the heap size is set to about half the memory available
        # on the system and that the owner of the process is allowed to use this
        # limit.
        #
        # Elasticsearch performs poorly when the system is swapping the memory.
        #
        # ---------------------------------- Network -----------------------------------
        #
        # Set the bind address to a specific IP (IPv4 or IPv6):
        #
        network.host: 10.10.10.109
        #
        # Set a custom port for HTTP:
        #
        #http.port: 9200
        #
        # For more information, see the documentation at:
        # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>
        #
        # --------------------------------- Discovery ----------------------------------
        #
        # Pass an initial list of hosts to perform discovery when new node is started:
        # The default list of hosts is ["127.0.0.1", "[::1]"]
        #
        #discovery.zen.ping.unicast.hosts: ["host1", "host2"]
        #
        # Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1):
        #
        #discovery.zen.minimum_master_nodes: 3
        #
        # For more information, see the documentation at:
        # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html>
        #
        # ---------------------------------- Gateway -----------------------------------
        #
        # Block initial recovery after a full cluster restart until N nodes are started:
        #
        #gateway.recover_after_nodes: 3
        #
        # For more information, see the documentation at:
        # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html>
        #
        # ---------------------------------- Various -----------------------------------
        #
        # Disable starting multiple nodes on a single system:
        #
        #node.max_local_storage_nodes: 1
        #
        # Require explicit names when deleting indices:
        #
        #action.destructive_requires_name: true
#
#注意:Elasticsearch为大多数设置提供了合理的默认值。
#在开始调整和调整配置之前,请确保
#了解你想要实现的目标及其后果。
#
#配置节点的主要方法是通过此文件。此模板列出
#您可能希望为生产群集配置的最重要的设置。
#
#有关配置选项的更多信息,请参阅文档:
# 
#
#------------------------------------集群-----------------------------------
#
#为群集使用描述性名称:
#
#cluster.name:我的应用程序
#
#-------------------------------------节点------------------------------------
#
#为节点使用描述性名称:
#
#node.name:node-1
#
#将自定义属性添加到节点:
#
#node.attr.rack:r1
#
#------------------------------------路径------------------------------------
#
#存储数据的目录路径(用逗号分隔多个位置):
#
#path.data:/path/to/data
#
#日志文件的路径:
#
#path.logs:/path/to/logs
#
#-------------------------------------内存-----------------------------------
#
#启动时锁定内存:
#
#bootstrap.memory\u lock:true
#
#确保堆大小设置为可用内存的一半左右
#并且允许进程的所有者使用此
#限制。
#
#当系统交换内存时,Elasticsearch性能不佳。
#
#------------------------------------网络-----------------------------------
#
#将绑定地址设置为特定IP(IPv4或IPv6):
#
network.host:10.10.10.109
#
#为HTTP设置自定义端口:
#
#http.port:9200
#
#有关更多信息,请参阅以下位置的文档:
# 
#
#-------------------------------------发现----------------------------------
#
#在启动新节点时传递要执行查找的主机的初始列表:
#主机的默认列表为[“127.0.0.1”、“[::1]”
#
#discovery.zen.ping.unicast.hosts:[“主机1”、“主机2”]
#
#通过配置大多数节点(节点总数/2+1)防止“大脑分裂”:
#
#discovery.zen.minimum_主节点:3
#
#有关更多信息,请参阅以下位置的文档:
# 
#
#------------------------------------网关-----------------------------------
#
#在完全重新启动群集后阻止初始恢复,直到启动N个节点:
#
#gateway.recover_在_节点之后:3
#
#有关更多信息,请参阅以下位置的文档:
# 
#
#------------------------------各种-----------------------------------
#
#禁用在单个系统上启动多个节点:
#
#node.max\u本地存储\u节点:1
#
#删除索引时需要显式名称:
#
#action.destructive_需要_名称:true

我得到了答案,我的服务器防火墙阻塞了9300端口,这就是我无法连接的原因。 谢谢