Elasticsearch不使用sugarcrm 7.5.0.1

时间:2014-12-17 08:22:00

标签: elasticsearch sugarcrm

我已将SugarCRM 7.2.2.0升级到7.5.0.1。 然后我将java更新为v7,将elasticsearch更新为v1.3.1

启动elasticsearch并启动索引后,全局搜索不会给出任何结果。

以下是弹力搜索发布时的输出:

/usr/local/bin/elasticsearch/bin/elasticsearch
[2014-12-17 09:11:37,057][INFO ][node                     ] [Wild Child] version[1.3.1], pid[19801], build[2de6dc5/2014-07-28T14:45:15Z]
[2014-12-17 09:11:37,059][INFO ][node                     ] [Wild Child] initializing...
[2014-12-17 09:11:37,066][INFO ][plugins                  ] [Wild Child] loaded [], sites []
[2014-12-17 09:11:39,896][WARN ][common.network           ] failed to resolve local host, fallback to loopback
java.net.UnknownHostException: sm4.localdomain: sm4.localdomain: Name or service not known
  at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
  at org.elasticsearch.common.network.NetworkUtils.<clinit>(NetworkUtils.java:54)
  at org.elasticsearch.transport.netty.NettyTransport.<init>(NettyTransport.java:204)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
...
Caused by: java.net.UnknownHostException: sm4.localdomain: Name or service not known
  at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
  at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
  at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
  at java.net.InetAddress.getLocalHost(InetAddress.java:1469)
... 62 more
[2014-12-17 09:11:40,779][INFO ][node                     ] [Wild Child] initialized
[2014-12-17 09:11:40,780][INFO ][node                     ] [Wild Child] starting ...
[2014-12-17 09:11:41,002][INFO ][transport                ] [Wild Child] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/92.39.241.87:9300]}
[2014-12-17 09:11:41,046][INFO ][discovery                ] [Wild Child] elasticsearch/OeRmy39vTz2WTcnjSXoHHA
[2014-12-17 09:11:44,095][INFO ][cluster.service          ] [Wild Child] new_master [Wild Child][OeRmy39vTz2WTcnjSXoHHA][localhost][inet[/92.39.241.87:9300]], reason: zen-disco-join (elected_as_master)
[2014-12-17 09:11:44,133][INFO ][http                     ] [Wild Child] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/92.39.241.87:9200]}
[2014-12-17 09:11:44,134][INFO ][node                     ] [Wild Child] started
[2014-12-17 09:11:45,039][INFO ][gateway                  ] [Wild Child] recovered [1] indices into cluster_state

虽然可以访问localhost:9200。

然后,当我在Sugar上安排系统索引时,任何弹性搜索日志中似乎都没有发生。

有没有人有这个问题?

非常感谢任何帮助!

谢谢

干杯,维克多

2 个答案:

答案 0 :(得分:1)

不知道你是否解决了这个问题。我最近做了同样的升级,并且不得不将我的java版本更新为1.7,另外,必须确保我的日志和数据位置是可写的(elasticsearch用户和elasticsearch组)。

答案 1 :(得分:1)

我最终解决了我的问题。 实际上,升级java是必要的。

就我而言,我必须在crontab中添加一行来调用cron.php以使elasticsearch与Sugarcrm一起工作。