开始Elasticsearch服务我尝试启动群集弹性搜寻有2个节点: 我运行命令:有2个节点
service elasticsearch start
然后我为了加入集群与命令运行elasticsearch的2个实例:
/bin/elasticsearch
但是当我检查head_plugin:localhost:2900/_plugin/head/
我得到的集群健康状态黄色,节点没有加入群集
如何配置这两个节点,使他们加入ŧ他集群? 感谢 编辑: 这是我得到:
[email protected]:~# curl -XGET 'http://localhost:9200/_cluster/nodes?pretty=true'
{
"ok" : true,
"cluster_name" : "nearCluster",
"nodes" : {
"aHUjm3SjQa6MbRoWCnL4pQ" : {
"name" : "Primary node",
"transport_address" : "inet[/[email protected]:9300]",
"hostname" : "HOSTNAME",
"version" : "0.90.5",
"http_address" : "inet[/[email protected]:9200]"
}
}
}[email protected]:~# curl -XGET 'http://localhost:9201/_cluster/nodes?pretty=true'
{
"ok" : true,
"cluster_name" : "nearCluster",
"nodes" : {
"pz7dfIABSbKRc92xYCbtgQ" : {
"name" : "Second Node",
"transport_address" : "inet[/[email protected]:9301]",
"hostname" : "HOSTNAME",
"version" : "0.90.5",
"http_address" : "inet[/[email protected]:9201]"
}
}
日志说什么?您为系统配置了[集群发现]的什么手段(http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-discovery.html)? – mconlin
我更新了弹性搜索到最后一个版本,我会看到这是什么 – Sekai
我认为这是防火墙的问题,因为发现使用端口54328,我的iptables正在关闭该端口! 我会尝试更新我的iptables,我会回复你:) – Sekai