我通过阅读此tutorial安装了预构建Elasticsearch 1.0.0
版本。如果我开始弹性搜索,我收到以下错误消息,我应该尝试使用旧版本的ES或如何解决此问题吗?
[elastic-dataportal.rhcloud.com elasticsearch-1.0.0]\> ./bin/elasticsearch
[2014-02-25 10:02:18,757][INFO ][node ] [Desmond Pitt] version[1.0.0], pid[203443], build[a46900e/2014-02-12T16:18:34Z]
[2014-02-25 10:02:18,764][INFO ][node ] [Desmond Pitt] initializing ...
[2014-02-25 10:02:18,780][INFO ][plugins ] [Desmond Pitt] loaded [], sites []
OpenJDK Server VM warning: You have loaded library /var/lib/openshift/430c93b1500446b03a00005c/app-root/data/elasticsearch-1.0.0/lib/sigar/libsigar-x86-linux.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
[2014-02-25 10:02:32,198][INFO ][node ] [Desmond Pitt] initialized
[2014-02-25 10:02:32,205][INFO ][node ] [Desmond Pitt] starting ...
[2014-02-25 10:02:32,813][INFO ][transport ] [Desmond Pitt] bound_address {inet[/127.8.212.129:3306]}, publish_address {inet[/127.8.212.129:3306]}
[2014-02-25 10:02:35,949][INFO ][cluster.service ] [Desmond Pitt] new_master [Desmond Pitt][_bWO_h9ETTWrMNr7x_yALg][ex-std-node134.prod.rhcloud.com][inet[/127.8.212.129:3306]], reason: zen-disco-join (elected_as_master)
[2014-02-25 10:02:36,167][INFO ][discovery ] [Desmond Pitt] elasticsearch/_bWO_h9ETTWrMNr7x_yALg
{1.0.0}: Startup Failed ...
- BindHttpException[Failed to bind to [8080]]
ChannelException[Failed to bind to: /127.8.212.129:8080]
BindException[Address already in use]
答案 0 :(得分:4)
首先必须停止正在运行的演示应用程序,该应用程序已绑定到8080.可以使用以下命令完成:
ctl_app stop
运行此命令后,您将能够在端口8080上启动elasticsearch。但是,建议不要将其用于生产环境。
答案 1 :(得分:4)
我建议使用此盒式磁带安装ElasticSearch:https://github.com/ncdc/openshift-elasticsearch-cartridge
它将为您省去手动自定义配置的麻烦。
答案 2 :(得分:3)
您尝试将ES分配给已经使用的端口8080。配置中的罪魁祸首是http.port: ${OPENSHIFT_DIY_PORT}
。只需将port
个配置保留在配置之外,或者将envvar分配给其他端口。 ES的默认端口为9200,http为9300。