I want to use in my application a transport client whith
spring-elasticsearch, so in my applicationcontext file I wrote,
<elasticsearch:client id="esClient" />
but when i start up the server i have the following error:
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected
exception parsing XML document from file
[C:\Users\hp\workspacePFE.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nLooker\WEB-INF\classes\META-INF\spring\applicationContext.xml];
nested exception is java.lang.RuntimeException: Incorrect settings. You
must set esNodes when creating a transport client.
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)
...........
Caused by: java.lang.RuntimeException: Incorrect settings. You must set
esNodes when creating a transport client.
at
fr.pilato.spring.elasticsearch.xml.ClientBeanDefinitionParser.parse(ClientBeanDefinitionParser.java:38)
at
org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73)
............
if I go through another configuration creation of a node and a client node
from that node, there is no problem:
I want to use in my application a transport client whith spring-elasticsearch, so in my applicationcontext file I wrote,
<elasticsearch:client id="esClient" />
but when i start up the server i have the following error:
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [C:\Users\hp\workspacePFE.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\nLooker\WEB-INF\classes\META-INF\spring\applicationContext.xml]; nested exception is java.lang.RuntimeException: Incorrect settings. You must set esNodes when creating a transport client.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)
...........
Caused by: java.lang.RuntimeException: Incorrect settings. You must set esNodes when creating a transport client.
at fr.pilato.spring.elasticsearch.xml.ClientBeanDefinitionParser.parse(ClientBeanDefinitionParser.java:38)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73)
............
if I go through another configuration creation of a node and a client node from that node, there is no problem:
ie if I have another node running on another machine, the trasport client
can not connect to this node?
transport client can not connect to different nodes simutaneously ??
ie if I have another node running on another machine, the trasport client
can not connect to this node?
transport client can not connect to different nodes simutaneously ??
something like this <elasticsearch:client id="testTransportClient" esNodes="localhost:9300" esNodes="host2:9200" esNodes="host3:9200"
settingsFile="fr/pilato/spring/elasticsearch/xml/esclient-transport.properties" />
??
2013/4/3 Ammar Yahia yahia.ammar.info@gmail.com
ie if I have another node running on another machine, the trasport client can not connect to this node?
transport client can not connect to different nodes simutaneously ??
ie if I have another node running on another machine, the trasport client
can not connect to this node?
transport client can not connect to different nodes simutaneously ??
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.