# Spring-elasticsearch conflict with elasticsearch0.90.5?

**URL:** <https://discuss.elastic.co/t/spring-elasticsearch-conflict-with-elasticsearch0-90-5/14078>\
**Category:** Elasticsearch\
**Created:** [October 23, 2013, 9:40pm UTC](https://discuss.elastic.co/t/spring-elasticsearch-conflict-with-elasticsearch0-90-5/14078 "2013-10-23T21:40:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramdev\_Wudali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramdev_wudali/32/7894_2.png) [@Ramdev\_Wudali](https://discuss.elastic.co/u/Ramdev_Wudali)\
**Post date:** [October 23, 2013, 9:40pm UTC](https://discuss.elastic.co/t/spring-elasticsearch-conflict-with-elasticsearch0-90-5/14078/1 "2013-10-23T21:40:30Z")

</div>

Hi :  
I just started playing with the newest available stable release of  
elasticsearch (which seems to be 0.90.5). I was successful in using 0.90.3  
and the spring-elasticsearch (0.2.0) . However with the newest version I am  
running into the following error :

Exception in thread "main"  
org.springframework.beans.factory.BeanCreationException: Error creating  
bean with name 'esClient': Invocation of init method failed; nested  
exception is org.elasticsearch.client.transport.NoNodeAvailableException:  
No node available  
at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482)  
at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)  
at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)  
at  
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
at  
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
at  
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
at  
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
at  
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:610)  
at  
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
at  
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
at  
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)  
at  
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)  
at com.test.TransferJDBCToElastic.main(TransferJDBCToElastic.java:49)  
Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: No  
node available  
at  
org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:205)  
at  
org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.execute(InternalTransportIndicesAdminClient.java:85)  
at  
org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(AbstractIndicesAdminClient.java:151)  
at  
org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:43)  
at  
org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85)  
at  
org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59)  
at  
fr.pilato.spring.elasticsearch.ElasticsearchAbstractClientFactoryBean.isIndexExist(ElasticsearchAbstractClientFactoryBean.java:596)  
at  
fr.pilato.spring.elasticsearch.ElasticsearchAbstractClientFactoryBean.initMappings(ElasticsearchAbstractClientFactoryBean.java:471)  
at  
fr.pilato.spring.elasticsearch.ElasticsearchAbstractClientFactoryBean.afterPropertiesSet(ElasticsearchAbstractClientFactoryBean.java:332)  
at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1541)  
at  
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)  
... 12 more

However if I just did the following :  
Client client2 = new TransportClient().addTransportAddress(new  
InetSocketTransportAddress("localhost",9300));

It succeeds.

My project has SOLR dependencies and my question is :  
Are there any issues with using SOLR and elastic and if so how do I avoid  
these conflicts ?

Thanks for the help

Ramdev

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ramdev\_Wudali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramdev_wudali/32/7894_2.png) [@Ramdev\_Wudali](https://discuss.elastic.co/u/Ramdev_Wudali)\
**Post date:** [October 24, 2013, 1:47am UTC](https://discuss.elastic.co/t/spring-elasticsearch-conflict-with-elasticsearch0-90-5/14078/2 "2013-10-24T01:47:38Z")

</div>

I should amend this post I think.

So It fails when I try and get an explicit connection to the elasticsearch  
server instance via Spring as well as via an explicit call to the  
TransportClient. However on the call to the TransportClient, a new Client  
is returned with the nodes attribute of the client being 0. (i.e. the list  
of nodes is empty). I think there is some configuration I am missing...  
any help on this front is much appreciated.

Is there something in the elastic configuration file that needs to change ?  
to set number of nodes ?

Thanks

Ramdev

On Wednesday, 23 October 2013 16:40:30 UTC-5, Ramdev Wudali wrote:

> Hi :  
> I just started playing with the newest available stable release of  
> elasticsearch (which seems to be 0.90.5). I was successful in using 0.90.3  
> and the spring-elasticsearch (0.2.0) . However with the newest version I am  
> running into the following error :
> 
> Exception in thread "main"  
> org.springframework.beans.factory.BeanCreationException: Error creating  
> bean with name 'esClient': Invocation of init method failed; nested  
> exception is org.elasticsearch.client.transport.NoNodeAvailableException:  
> No node available  
> at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482)  
> at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)  
> at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)  
> at  
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
> at  
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
> at  
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
> at  
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
> at  
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:610)  
> at  
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
> at  
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
> at  
> org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)  
> at  
> org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)  
> at com.test.TransferJDBCToElastic.main(TransferJDBCToElastic.java:49)  
> Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: No  
> node available  
> at  
> org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:205)  
> at  
> org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.execute(InternalTransportIndicesAdminClient.java:85)  
> at  
> org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(AbstractIndicesAdminClient.java:151)  
> at  
> org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:43)  
> at  
> org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85)  
> at  
> org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59)  
> at  
> fr.pilato.spring.elasticsearch.ElasticsearchAbstractClientFactoryBean.isIndexExist(ElasticsearchAbstractClientFactoryBean.java:596)  
> at  
> fr.pilato.spring.elasticsearch.ElasticsearchAbstractClientFactoryBean.initMappings(ElasticsearchAbstractClientFactoryBean.java:471)  
> at  
> fr.pilato.spring.elasticsearch.ElasticsearchAbstractClientFactoryBean.afterPropertiesSet(ElasticsearchAbstractClientFactoryBean.java:332)  
> at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1541)  
> at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)  
> ... 12 more
> 
> However if I just did the following :  
> Client client2 = new TransportClient().addTransportAddress(new  
> InetSocketTransportAddress("localhost",9300));
> 
> It succeeds.
> 
> My project has SOLR dependencies and my question is :  
> Are there any issues with using SOLR and elastic and if so how do I avoid  
> these conflicts ?
> 
> Thanks for the help
> 
> Ramdev

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 24, 2013, 4:46am UTC](https://discuss.elastic.co/t/spring-elasticsearch-conflict-with-elasticsearch0-90-5/14078/3 "2013-10-24T04:46:38Z")

</div>

Try with spring-elasticsearch in master.  
I need to release a new version to be 0.90.5 compatible I guess.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 24 oct. 2013 à 03:47, Ramdev Wudali [agastya71@gmail.com](mailto:agastya71@gmail.com) a écrit :

> I should amend this post I think.
> 
> So It fails when I try and get an explicit connection to the elasticsearch server instance via Spring as well as via an explicit call to the TransportClient. However on the call to the TransportClient, a new Client is returned with the nodes attribute of the client being 0. (i.e. the list of nodes is empty). I think there is some configuration I am missing...  
> any help on this front is much appreciated.
> 
> Is there something in the elastic configuration file that needs to change ? to set number of nodes ?
> 
> Thanks
> 
> Ramdev
> 
> On Wednesday, 23 October 2013 16:40:30 UTC-5, Ramdev Wudali wrote:
> 
> > Hi :  
> > I just started playing with the newest available stable release of elasticsearch (which seems to be 0.90.5). I was successful in using 0.90.3 and the spring-elasticsearch (0.2.0) . However with the newest version I am running into the following error :
> > 
> > Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'esClient': Invocation of init method failed; nested exception is org.elasticsearch.client.transport.NoNodeAvailableException: No node available  
> > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482)  
> > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)  
> > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)  
> > at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
> > at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
> > at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
> > at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
> > at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:610)  
> > at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
> > at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
> > at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)  
> > at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)  
> > at com.test.TransferJDBCToElastic.main(TransferJDBCToElastic.java:49)  
> > Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: No node available  
> > at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:205)  
> > at org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.execute(InternalTransportIndicesAdminClient.java:85)  
> > at org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(AbstractIndicesAdminClient.java:151)  
> > at org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:43)  
> > at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85)  
> > at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59)  
> > at fr.pilato.spring.elasticsearch.ElasticsearchAbstractClientFactoryBean.isIndexExist(ElasticsearchAbstractClientFactoryBean.java:596)  
> > at fr.pilato.spring.elasticsearch.ElasticsearchAbstractClientFactoryBean.initMappings(ElasticsearchAbstractClientFactoryBean.java:471)  
> > at fr.pilato.spring.elasticsearch.ElasticsearchAbstractClientFactoryBean.afterPropertiesSet(ElasticsearchAbstractClientFactoryBean.java:332)  
> > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1541)  
> > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)  
> > ... 12 more
> > 
> > However if I just did the following :  
> > Client client2 = new TransportClient().addTransportAddress(new InetSocketTransportAddress("localhost",9300));
> > 
> > It succeeds.
> > 
> > My project has SOLR dependencies and my question is :  
> > Are there any issues with using SOLR and elastic and if so how do I avoid these conflicts ?
> > 
> > Thanks for the help
> > 
> > Ramdev
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 24, 2013, 4:49am UTC](https://discuss.elastic.co/t/spring-elasticsearch-conflict-with-elasticsearch0-90-5/14078/4 "2013-10-24T04:49:37Z")

</div>

Forget my last answer.  
I think you can not have different Lucene versions in your classpath.

I guess SOLR dependency bring Lucene jars as well.

Could you check that you have only Lucene jars provided by elasticsearch?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 24 oct. 2013 à 06:46, David Pilato [david@pilato.fr](mailto:david@pilato.fr) a écrit :

> Try with spring-elasticsearch in master.  
> I need to release a new version to be 0.90.5 compatible I guess.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 24 oct. 2013 à 03:47, Ramdev Wudali [agastya71@gmail.com](mailto:agastya71@gmail.com) a écrit :
> 
> > I should amend this post I think.
> > 
> > So It fails when I try and get an explicit connection to the elasticsearch server instance via Spring as well as via an explicit call to the TransportClient. However on the call to the TransportClient, a new Client is returned with the nodes attribute of the client being 0. (i.e. the list of nodes is empty). I think there is some configuration I am missing...  
> > any help on this front is much appreciated.
> > 
> > Is there something in the elastic configuration file that needs to change ? to set number of nodes ?
> > 
> > Thanks
> > 
> > Ramdev
> > 
> > On Wednesday, 23 October 2013 16:40:30 UTC-5, Ramdev Wudali wrote:
> > 
> > > Hi :  
> > > I just started playing with the newest available stable release of elasticsearch (which seems to be 0.90.5). I was successful in using 0.90.3 and the spring-elasticsearch (0.2.0) . However with the newest version I am running into the following error :
> > > 
> > > Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'esClient': Invocation of init method failed; nested exception is org.elasticsearch.client.transport.NoNodeAvailableException: No node available  
> > > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482)  
> > > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)  
> > > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)  
> > > at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
> > > at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
> > > at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
> > > at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
> > > at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:610)  
> > > at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
> > > at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
> > > at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)  
> > > at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)  
> > > at com.test.TransferJDBCToElastic.main(TransferJDBCToElastic.java:49)  
> > > Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: No node available  
> > > at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:205)  
> > > at org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.execute(InternalTransportIndicesAdminClient.java:85)  
> > > at org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(AbstractIndicesAdminClient.java:151)  
> > > at org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:43)  
> > > at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85)  
> > > at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59)  
> > > at fr.pilato.spring.elasticsearch.ElasticsearchAbstractClientFactoryBean.isIndexExist(ElasticsearchAbstractClientFactoryBean.java:596)  
> > > at fr.pilato.spring.elasticsearch.ElasticsearchAbstractClientFactoryBean.initMappings(ElasticsearchAbstractClientFactoryBean.java:471)  
> > > at fr.pilato.spring.elasticsearch.ElasticsearchAbstractClientFactoryBean.afterPropertiesSet(ElasticsearchAbstractClientFactoryBean.java:332)  
> > > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1541)  
> > > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)  
> > > ... 12 more
> > > 
> > > However if I just did the following :  
> > > Client client2 = new TransportClient().addTransportAddress(new InetSocketTransportAddress("localhost",9300));
> > > 
> > > It succeeds.
> > > 
> > > My project has SOLR dependencies and my question is :  
> > > Are there any issues with using SOLR and elastic and if so how do I avoid these conflicts ?
> > > 
> > > Thanks for the help
> > > 
> > > Ramdev
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).  
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ramdev\_Wudali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramdev_wudali/32/7894_2.png) [@Ramdev\_Wudali](https://discuss.elastic.co/u/Ramdev_Wudali)\
**Post date:** [October 24, 2013, 12:25pm UTC](https://discuss.elastic.co/t/spring-elasticsearch-conflict-with-elasticsearch0-90-5/14078/5 "2013-10-24T12:25:43Z")

</div>

Hi David:  
Thanks for the pointer. However, My issue turned out to be caused  
because of a non-default cluster.name property.  
I had modified the Elasticsearch config so that the default cluster name  
value of Elasticsearch is not used (and get confused with other instances  
of Elasticsearch running in the network). However, when I had changed the  
default name of the cluster, I had not realized that the spring config for  
the client had to be modified to include  
the esProperties value for the cluster.name.

Once I did the necessary modification I was able to get to the server  
nodes, and index my content.

That said, I will have t keep an eye out on the lucene dependencies for  
SOLR and their conflict with Elastic's lucene dependencies.

Thanks much for the assist.

Ramdev

On Wednesday, 23 October 2013 23:49:37 UTC-5, David Pilato wrote:

> Forget my last answer.  
> I think you can not have different Lucene versions in your classpath.
> 
> I guess SOLR dependency bring Lucene jars as well.
> 
> Could you check that you have only Lucene jars provided by elasticsearch?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 24 oct. 2013 à 06:46, David Pilato \<[da...@pilato.fr](mailto:da...@pilato.fr) \<javascript:\>\> a  
> écrit :
> 
> Try with spring-elasticsearch in master.  
> I need to release a new version to be 0.90.5 compatible I guess.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 24 oct. 2013 à 03:47, Ramdev Wudali \<[agas...@gmail.com](mailto:agas...@gmail.com) \<javascript:\>\>  
> a écrit :
> 
> I should amend this post I think.
> 
> So It fails when I try and get an explicit connection to the  
> elasticsearch server instance via Spring as well as via an explicit call to  
> the TransportClient. However on the call to the TransportClient, a new  
> Client is returned with the nodes attribute of the client being 0. (i.e.  
> the list of nodes is empty). I think there is some configuration I am  
> missing...  
> any help on this front is much appreciated.
> 
> Is there something in the elastic configuration file that needs to change  
> ? to set number of nodes ?
> 
> Thanks
> 
> Ramdev
> 
> On Wednesday, 23 October 2013 16:40:30 UTC-5, Ramdev Wudali wrote:
> 
> > Hi :  
> > I just started playing with the newest available stable release of  
> > elasticsearch (which seems to be 0.90.5). I was successful in using 0.90.3  
> > and the spring-elasticsearch (0.2.0) . However with the newest version I am  
> > running into the following error :
> > 
> > Exception in thread "main"  
> > org.springframework.beans.factory.BeanCreationException: Error creating  
> > bean with name 'esClient': Invocation of init method failed; nested  
> > exception is org.elasticsearch.client.transport.NoNodeAvailableException:  
> > No node available  
> > at  
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482)  
> > at  
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)  
> > at  
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)  
> > at  
> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)  
> > at  
> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)  
> > at  
> > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)  
> > at  
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)  
> > at  
> > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:610)  
> > at  
> > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)  
> > at  
> > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)  
> > at  
> > org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)  
> > at  
> > org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)  
> > at com.test.TransferJDBCToElastic.main(TransferJDBCToElastic.java:49)  
> > Caused by: org.elasticsearch.client.transport.NoNodeAvailableException:  
> > No node available  
> > at  
> > org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:205)  
> > at  
> > org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.execute(InternalTransportIndicesAdminClient.java:85)  
> > at  
> > org.elasticsearch.client.support.AbstractIndicesAdminClient.exists(AbstractIndicesAdminClient.java:151)  
> > at  
> > org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsRequestBuilder.doExecute(IndicesExistsRequestBuilder.java:43)  
> > at  
> > org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85)  
> > at  
> > org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59)  
> > at  
> > fr.pilato.spring.elasticsearch.ElasticsearchAbstractClientFactoryBean.isIndexExist(ElasticsearchAbstractClientFactoryBean.java:596)  
> > at  
> > fr.pilato.spring.elasticsearch.ElasticsearchAbstractClientFactoryBean.initMappings(ElasticsearchAbstractClientFactoryBean.java:471)  
> > at  
> > fr.pilato.spring.elasticsearch.ElasticsearchAbstractClientFactoryBean.afterPropertiesSet(ElasticsearchAbstractClientFactoryBean.java:332)  
> > at  
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1541)  
> > at  
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)  
> > ... 12 more
> > 
> > However if I just did the following :  
> > Client client2 = new TransportClient().addTransportAddress(new  
> > InetSocketTransportAddress("localhost",9300));
> > 
> > It succeeds.
> > 
> > My project has SOLR dependencies and my question is :  
> > Are there any issues with using SOLR and elastic and if so how do I avoid  
> > these conflicts ?
> > 
> > Thanks for the help
> > 
> > Ramdev
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:10am UTC](https://discuss.elastic.co/t/spring-elasticsearch-conflict-with-elasticsearch0-90-5/14078/6 "2017-07-06T02:10:49Z")

</div>


