环境细节: 工作灯:6.2
应用服务器:Liberty 8.5.5.0
操作系统:Windows Server 2008 r2
我正在尝试在 Worklight 6.2 中实现 Operational Analytics 的集群拓扑。以下是步骤
创建了两个自由服务器实例 analytics1 和 analytics2。
将 analytics.war 文件复制到两台服务器的应用程序文件夹中。
在analytis1服务器的server.xml中,我已经配置为主节点了。
jndiEntry jndiName="analytics/nodetype" value="master"
jndiEntry jndiName="analytics/shards" value="2"
jndiEntry jndiName="analytics/replicas_per_shard" value="2"在 analytics2 服务器的 server.xml 0f 中,我已配置为数据节点。
jndiEntry jndiName="analytics/nodetype" value="data"
jndiEntry jndiName="analytics/masternodes" value="XX.XX.XX.XX:9600"
此拓扑中未填充数据。
如果将其作为单个节点尝试,即没有将节点类型设置为主节点或数据,则显示分析结果。
以下是我的日志跟踪
[10/11/14 23:23:30:351 GST] 00000021 com.ibm.ws.webcontainer.servlet I SRVE0242I: [analytics] [/analytics] [data]: Initialization successful.
[10/11/14 23:24:11:920 GST] 00000021 org.apache.wink.server.internal.RequestProcessor E An unhandled exception occurred which will be propagated to the container.
[10/11/14 23:24:11:955 GST] 00000021 com.ibm.ws.webcontainer.util.ApplicationErrorUtils E SRVE0777E: Exception thrown by application class 'org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult:276'
org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:276)
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.start(TransportSearchTypeAction.java:147)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction.doExecute(TransportSearchQueryThenFetchAction.java:59)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction.doExecute(TransportSearchQueryThenFetchAction.java:49)
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:63)
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:108)
at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:43)
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:63)
at org.elasticsearch.client.node.NodeClient.execute(NodeClient.java:92)
at org.elasticsearch.client.support.AbstractClient.search(AbstractClient.java:212)
at org.elasticsearch.action.search.SearchRequestBuilder.doExecute(SearchRequestBuilder.java:1043)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59)
at com.ibm.elasticsearch.util.ESUtility.genericFacet(ESUtility.java:155)
at com.ibm.elasticsearch.util.ESUtility.genericFacet(ESUtility.java:139)
at com.ibm.elasticsearch.util.ESUtility.genericFacet(ESUtility.java:210)
at com.ibm.elasticsearch.rest.Common.getGadgets(Common.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)