# TransportClient broken on master?

**URL:** <https://discuss.elastic.co/t/transportclient-broken-on-master/5640>\
**Category:** Elasticsearch\
**Created:** [October 19, 2011, 9:29am UTC](https://discuss.elastic.co/t/transportclient-broken-on-master/5640 "2011-10-19T09:29:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeremie\_BORDIER1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeremie_bordier1/32/2860_2.png) [@Jeremie\_BORDIER1](https://discuss.elastic.co/u/Jeremie_BORDIER1)\
**Post date:** [October 19, 2011, 9:29am UTC](https://discuss.elastic.co/t/transportclient-broken-on-master/5640/1 "2011-10-19T09:29:37Z")

</div>

Hola,

It seems that the TransportClient is broken on master:

Code:  
client = new TransportClient(settings).addTransportAddress(new  
InetSocketTransportAddress("localhost", 9300));  
client.admin().indices().prepareCreate(indexName)....execute().actionGet();  
Result:  
Exception in thread "main"  
org.elasticsearch.client.transport.NoNodeAvailableException: No node  
available  
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:170)  
at org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.create(InternalTransportIndicesAdminClient.java:252)  
at org.elasticsearch.client.action.admin.indices.create.CreateIndexRequestBuilder.doExecute(CreateIndexRequestBuilder.java:158)  
at org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:52)  
at org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:47)

Code:  
Node node = NodeBuilder.nodeBuilder().client(true).node();  
client = node.client();  
client.admin().indices().prepareCreate(indexName)....execute().actionGet();  
=\> Works

Note that the first code used to work perfectly on 0.17.7

--  
Jérémie 'ahFeel' BORDIER

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [October 19, 2011, 3:20pm UTC](https://discuss.elastic.co/t/transportclient-broken-on-master/5640/2 "2011-10-19T15:20:07Z")

</div>

Are you sure you used the same server and client version? Tests seem to  
pass...

On Wed, Oct 19, 2011 at 11:29 AM, Jérémie BORDIER \<[jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com)

> wrote:

> Hola,
> 
> It seems that the TransportClient is broken on master:
> 
> Code:  
> client = new TransportClient(settings).addTransportAddress(new  
> InetSocketTransportAddress("localhost", 9300));
> 
> client.admin().indices().prepareCreate(indexName)....execute().actionGet();  
> Result:  
> Exception in thread "main"  
> org.elasticsearch.client.transport.NoNodeAvailableException: No node  
> available  
> at  
> org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:170)  
> at  
> org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.create(InternalTransportIndicesAdminClient.java:252)  
> at  
> org.elasticsearch.client.action.admin.indices.create.CreateIndexRequestBuilder.doExecute(CreateIndexRequestBuilder.java:158)  
> at  
> org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:52)  
> at  
> org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:47)
> 
> Code:  
> Node node = NodeBuilder.nodeBuilder().client(true).node();  
> client = node.client();
> 
> client.admin().indices().prepareCreate(indexName)....execute().actionGet();  
> =\> Works
> 
> Note that the first code used to work perfectly on 0.17.7
> 
> --  
> Jérémie 'ahFeel' BORDIER

---

<div class="post-metadata">

**Author:** ![Jeremie\_BORDIER1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeremie_bordier1/32/2860_2.png) [@Jeremie\_BORDIER1](https://discuss.elastic.co/u/Jeremie_BORDIER1)\
**Post date:** [October 19, 2011, 3:23pm UTC](https://discuss.elastic.co/t/transportclient-broken-on-master/5640/3 "2011-10-19T15:23:18Z")

</div>

I'll try one more time but I did recheck... More in a few minutes.

Jérémie

On Wed, Oct 19, 2011 at 5:20 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> Are you sure you used the same server and client version? Tests seem to  
> pass...
> 
> On Wed, Oct 19, 2011 at 11:29 AM, Jérémie BORDIER  
> [jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com) wrote:
> 
> > Hola,
> > 
> > It seems that the TransportClient is broken on master:
> > 
> > Code:  
> > client = new TransportClient(settings).addTransportAddress(new  
> > InetSocketTransportAddress("localhost", 9300));
> > 
> > client.admin().indices().prepareCreate(indexName)....execute().actionGet();  
> > Result:  
> > Exception in thread "main"  
> > org.elasticsearch.client.transport.NoNodeAvailableException: No node  
> > available  
> > at  
> > org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:170)  
> > at  
> > org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.create(InternalTransportIndicesAdminClient.java:252)  
> > at  
> > org.elasticsearch.client.action.admin.indices.create.CreateIndexRequestBuilder.doExecute(CreateIndexRequestBuilder.java:158)  
> > at  
> > org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:52)  
> > at  
> > org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:47)
> > 
> > Code:  
> > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > client = node.client();
> > 
> > client.admin().indices().prepareCreate(indexName)....execute().actionGet();  
> > =\> Works
> > 
> > Note that the first code used to work perfectly on 0.17.7
> > 
> > --  
> > Jérémie 'ahFeel' BORDIER

--  
Jérémie 'ahFeel' BORDIER

---

<div class="post-metadata">

**Author:** ![Jeremie\_BORDIER1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeremie_bordier1/32/2860_2.png) [@Jeremie\_BORDIER1](https://discuss.elastic.co/u/Jeremie_BORDIER1)\
**Post date:** [October 19, 2011, 4:21pm UTC](https://discuss.elastic.co/t/transportclient-broken-on-master/5640/4 "2011-10-19T16:21:28Z")

</div>

Ok my bad, it works. The problem was actually that I tried to start  
master using the same command line / data directory than for my 0.17.7  
instance, and elasticsearch failed to start (failed to acquire lock),  
so I started it just with ./elasticsearch -f and the default  
clustername. Long story short: the TransportClient works, but master  
doesn't want to start with my current command line:

bin/elasticsearch -f -Xmx2g -Xms2g  
-Des.config=/Users/ahfeel/Work/archivezen/es/config/elasticsearch.yml  
-Des.path.data=/data/archivezen2/es/data  
-Des.path.work=/tmp/archivezen2  
-Des.path.logs=/data/archivezen2/es/logs/index

Jérémie

On Wed, Oct 19, 2011 at 5:23 PM, Jérémie BORDIER  
[jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com) wrote:

> I'll try one more time but I did recheck... More in a few minutes.
> 
> Jérémie
> 
> On Wed, Oct 19, 2011 at 5:20 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> 
> > Are you sure you used the same server and client version? Tests seem to  
> > pass...
> > 
> > On Wed, Oct 19, 2011 at 11:29 AM, Jérémie BORDIER  
> > [jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com) wrote:
> > 
> > > Hola,
> > > 
> > > It seems that the TransportClient is broken on master:
> > > 
> > > Code:  
> > > client = new TransportClient(settings).addTransportAddress(new  
> > > InetSocketTransportAddress("localhost", 9300));
> > > 
> > > client.admin().indices().prepareCreate(indexName)....execute().actionGet();  
> > > Result:  
> > > Exception in thread "main"  
> > > org.elasticsearch.client.transport.NoNodeAvailableException: No node  
> > > available  
> > > at  
> > > org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:170)  
> > > at  
> > > org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.create(InternalTransportIndicesAdminClient.java:252)  
> > > at  
> > > org.elasticsearch.client.action.admin.indices.create.CreateIndexRequestBuilder.doExecute(CreateIndexRequestBuilder.java:158)  
> > > at  
> > > org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:52)  
> > > at  
> > > org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:47)
> > > 
> > > Code:  
> > > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > > client = node.client();
> > > 
> > > client.admin().indices().prepareCreate(indexName)....execute().actionGet();  
> > > =\> Works
> > > 
> > > Note that the first code used to work perfectly on 0.17.7
> > > 
> > > --  
> > > Jérémie 'ahFeel' BORDIER
> 
> --  
> Jérémie 'ahFeel' BORDIER

--  
Jérémie 'ahFeel' BORDIER

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [October 19, 2011, 9:05pm UTC](https://discuss.elastic.co/t/transportclient-broken-on-master/5640/5 "2011-10-19T21:05:38Z")

</div>

What failure do tyou get?

On Wed, Oct 19, 2011 at 6:21 PM, Jérémie BORDIER  
[jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com)wrote:

> Ok my bad, it works. The problem was actually that I tried to start  
> master using the same command line / data directory than for my 0.17.7  
> instance, and elasticsearch failed to start (failed to acquire lock),  
> so I started it just with ./elasticsearch -f and the default  
> clustername. Long story short: the TransportClient works, but master  
> doesn't want to start with my current command line:
> 
> bin/elasticsearch -f -Xmx2g -Xms2g  
> -Des.config=/Users/ahfeel/Work/archivezen/es/config/elasticsearch.yml  
> -Des.path.data=/data/archivezen2/es/data  
> -Des.path.work=/tmp/archivezen2  
> -Des.path.logs=/data/archivezen2/es/logs/index
> 
> Jérémie
> 
> On Wed, Oct 19, 2011 at 5:23 PM, Jérémie BORDIER  
> [jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com) wrote:
> 
> > I'll try one more time but I did recheck... More in a few minutes.
> > 
> > Jérémie
> > 
> > On Wed, Oct 19, 2011 at 5:20 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> > 
> > > Are you sure you used the same server and client version? Tests seem to  
> > > pass...
> > > 
> > > On Wed, Oct 19, 2011 at 11:29 AM, Jérémie BORDIER  
> > > [jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com) wrote:
> > > 
> > > > Hola,
> > > > 
> > > > It seems that the TransportClient is broken on master:
> > > > 
> > > > Code:  
> > > > client = new TransportClient(settings).addTransportAddress(new  
> > > > InetSocketTransportAddress("localhost", 9300));
> 
> client.admin().indices().prepareCreate(indexName)....execute().actionGet();
> 
> > > > Result:  
> > > > Exception in thread "main"  
> > > > org.elasticsearch.client.transport.NoNodeAvailableException: No node  
> > > > available  
> > > > at
> 
> org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:170)
> 
> > > > ```
> > > > at
> > > > 
> > > > ```
> 
> org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.create(InternalTransportIndicesAdminClient.java:252)
> 
> > > > ```
> > > > at
> > > > 
> > > > ```
> 
> org.elasticsearch.client.action.admin.indices.create.CreateIndexRequestBuilder.doExecute(CreateIndexRequestBuilder.java:158)
> 
> > > > ```
> > > > at
> > > > 
> > > > ```
> 
> org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:52)
> 
> > > > ```
> > > > at
> > > > 
> > > > ```
> 
> org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:47)
> 
> > > > Code:  
> > > > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > > > client = node.client();
> 
> client.admin().indices().prepareCreate(indexName)....execute().actionGet();
> 
> > > > =\> Works
> > > > 
> > > > Note that the first code used to work perfectly on 0.17.7
> > > > 
> > > > --  
> > > > Jérémie 'ahFeel' BORDIER
> > 
> > --  
> > Jérémie 'ahFeel' BORDIER
> 
> --  
> Jérémie 'ahFeel' BORDIER

---

<div class="post-metadata">

**Author:** ![Jeremie\_BORDIER1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeremie_bordier1/32/2860_2.png) [@Jeremie\_BORDIER1](https://discuss.elastic.co/u/Jeremie_BORDIER1)\
**Post date:** [October 19, 2011, 9:09pm UTC](https://discuss.elastic.co/t/transportclient-broken-on-master/5640/6 "2011-10-19T21:09:02Z")

</div>

Here's all it says:

[2011-10-19 18:20:41,464][INFO][node] [Nova,  
Cassandra] {0.18.0-SNAPSHOT}[93794]: initializing ...  
[2011-10-19 18:20:41,471][INFO][plugins] [Nova,  
Cassandra] loaded , sites   
[2011-10-19 18:20:59,645][ERROR][bootstrap]  
{0.18.0-SNAPSHOT}: Initialization Failed ...

1. IOException[Failed to obtain node lock]

Jérémie

On Wed, Oct 19, 2011 at 11:05 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> What failure do tyou get?
> 
> On Wed, Oct 19, 2011 at 6:21 PM, Jérémie BORDIER [jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com)  
> wrote:
> 
> > Ok my bad, it works. The problem was actually that I tried to start  
> > master using the same command line / data directory than for my 0.17.7  
> > instance, and elasticsearch failed to start (failed to acquire lock),  
> > so I started it just with ./elasticsearch -f and the default  
> > clustername. Long story short: the TransportClient works, but master  
> > doesn't want to start with my current command line:
> > 
> > bin/elasticsearch -f -Xmx2g -Xms2g  
> > -Des.config=/Users/ahfeel/Work/archivezen/es/config/elasticsearch.yml  
> > -Des.path.data=/data/archivezen2/es/data  
> > -Des.path.work=/tmp/archivezen2  
> > -Des.path.logs=/data/archivezen2/es/logs/index
> > 
> > Jérémie
> > 
> > On Wed, Oct 19, 2011 at 5:23 PM, Jérémie BORDIER  
> > [jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com) wrote:
> > 
> > > I'll try one more time but I did recheck... More in a few minutes.
> > > 
> > > Jérémie
> > > 
> > > On Wed, Oct 19, 2011 at 5:20 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> > > 
> > > > Are you sure you used the same server and client version? Tests seem to  
> > > > pass...
> > > > 
> > > > On Wed, Oct 19, 2011 at 11:29 AM, Jérémie BORDIER  
> > > > [jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com) wrote:
> > > > 
> > > > > Hola,
> > > > > 
> > > > > It seems that the TransportClient is broken on master:
> > > > > 
> > > > > Code:  
> > > > > client = new TransportClient(settings).addTransportAddress(new  
> > > > > InetSocketTransportAddress("localhost", 9300));
> > > > > 
> > > > > client.admin().indices().prepareCreate(indexName)....execute().actionGet();  
> > > > > Result:  
> > > > > Exception in thread "main"  
> > > > > org.elasticsearch.client.transport.NoNodeAvailableException: No node  
> > > > > available  
> > > > > at
> > > > > 
> > > > > org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:170)  
> > > > > at
> > > > > 
> > > > > org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.create(InternalTransportIndicesAdminClient.java:252)  
> > > > > at
> > > > > 
> > > > > org.elasticsearch.client.action.admin.indices.create.CreateIndexRequestBuilder.doExecute(CreateIndexRequestBuilder.java:158)  
> > > > > at
> > > > > 
> > > > > org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:52)  
> > > > > at
> > > > > 
> > > > > org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:47)
> > > > > 
> > > > > Code:  
> > > > > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > > > > client = node.client();
> > > > > 
> > > > > client.admin().indices().prepareCreate(indexName)....execute().actionGet();  
> > > > > =\> Works
> > > > > 
> > > > > Note that the first code used to work perfectly on 0.17.7
> > > > > 
> > > > > --  
> > > > > Jérémie 'ahFeel' BORDIER
> > > 
> > > --  
> > > Jérémie 'ahFeel' BORDIER
> > 
> > --  
> > Jérémie 'ahFeel' BORDIER

--  
Jérémie 'ahFeel' BORDIER

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [October 19, 2011, 9:10pm UTC](https://discuss.elastic.co/t/transportclient-broken-on-master/5640/7 "2011-10-19T21:10:15Z")

</div>

Is your data location writable?

On Wed, Oct 19, 2011 at 11:09 PM, Jérémie BORDIER \<[jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com)

> wrote:

> Here's all it says:
> 
> [2011-10-19 18:20:41,464][INFO][node] [Nova,  
> Cassandra] {0.18.0-SNAPSHOT}[93794]: initializing ...  
> [2011-10-19 18:20:41,471][INFO][plugins] [Nova,  
> Cassandra] loaded , sites   
> [2011-10-19 18:20:59,645][ERROR][bootstrap]  
> {0.18.0-SNAPSHOT}: Initialization Failed ...
> 
> 1. IOException[Failed to obtain node lock]
> 
> Jérémie
> 
> On Wed, Oct 19, 2011 at 11:05 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> 
> > What failure do tyou get?
> > 
> > On Wed, Oct 19, 2011 at 6:21 PM, Jérémie BORDIER \<  
> > [jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com)\>  
> > wrote:
> > 
> > > Ok my bad, it works. The problem was actually that I tried to start  
> > > master using the same command line / data directory than for my 0.17.7  
> > > instance, and elasticsearch failed to start (failed to acquire lock),  
> > > so I started it just with ./elasticsearch -f and the default  
> > > clustername. Long story short: the TransportClient works, but master  
> > > doesn't want to start with my current command line:
> > > 
> > > bin/elasticsearch -f -Xmx2g -Xms2g  
> > > -Des.config=/Users/ahfeel/Work/archivezen/es/config/elasticsearch.yml  
> > > -Des.path.data=/data/archivezen2/es/data  
> > > -Des.path.work=/tmp/archivezen2  
> > > -Des.path.logs=/data/archivezen2/es/logs/index
> > > 
> > > Jérémie
> > > 
> > > On Wed, Oct 19, 2011 at 5:23 PM, Jérémie BORDIER  
> > > [jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com) wrote:
> > > 
> > > > I'll try one more time but I did recheck... More in a few minutes.
> > > > 
> > > > Jérémie
> > > > 
> > > > On Wed, Oct 19, 2011 at 5:20 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> > > > 
> > > > > Are you sure you used the same server and client version? Tests seem  
> > > > > to  
> > > > > pass...
> > > > > 
> > > > > On Wed, Oct 19, 2011 at 11:29 AM, Jérémie BORDIER  
> > > > > [jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com) wrote:
> > > > > 
> > > > > > Hola,
> > > > > > 
> > > > > > It seems that the TransportClient is broken on master:
> > > > > > 
> > > > > > Code:  
> > > > > > client = new TransportClient(settings).addTransportAddress(new  
> > > > > > InetSocketTransportAddress("localhost", 9300));
> 
> client.admin().indices().prepareCreate(indexName)....execute().actionGet();
> 
> > > > > > Result:  
> > > > > > Exception in thread "main"  
> > > > > > org.elasticsearch.client.transport.NoNodeAvailableException: No node  
> > > > > > available  
> > > > > > at
> 
> org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:170)
> 
> > > > > > ```
> > > > > > at
> > > > > > 
> > > > > > ```
> 
> org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.create(InternalTransportIndicesAdminClient.java:252)
> 
> > > > > > ```
> > > > > > at
> > > > > > 
> > > > > > ```
> 
> org.elasticsearch.client.action.admin.indices.create.CreateIndexRequestBuilder.doExecute(CreateIndexRequestBuilder.java:158)
> 
> > > > > > ```
> > > > > > at
> > > > > > 
> > > > > > ```
> 
> org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:52)
> 
> > > > > > ```
> > > > > > at
> > > > > > 
> > > > > > ```
> 
> org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:47)
> 
> > > > > > Code:  
> > > > > > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > > > > > client = node.client();
> 
> client.admin().indices().prepareCreate(indexName)....execute().actionGet();
> 
> > > > > > =\> Works
> > > > > > 
> > > > > > Note that the first code used to work perfectly on 0.17.7
> > > > > > 
> > > > > > --  
> > > > > > Jérémie 'ahFeel' BORDIER
> > > > 
> > > > --  
> > > > Jérémie 'ahFeel' BORDIER
> > > 
> > > --  
> > > Jérémie 'ahFeel' BORDIER
> 
> --  
> Jérémie 'ahFeel' BORDIER

---

<div class="post-metadata">

**Author:** ![Jeremie\_BORDIER1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeremie_bordier1/32/2860_2.png) [@Jeremie\_BORDIER1](https://discuss.elastic.co/u/Jeremie_BORDIER1)\
**Post date:** [October 19, 2011, 9:30pm UTC](https://discuss.elastic.co/t/transportclient-broken-on-master/5640/8 "2011-10-19T21:30:35Z")

</div>

It is.

Jérémie

On Wed, Oct 19, 2011 at 11:10 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> Is your data location writable?
> 
> On Wed, Oct 19, 2011 at 11:09 PM, Jérémie BORDIER  
> [jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com) wrote:
> 
> > Here's all it says:
> > 
> > [2011-10-19 18:20:41,464][INFO][node] [Nova,  
> > Cassandra] {0.18.0-SNAPSHOT}[93794]: initializing ...  
> > [2011-10-19 18:20:41,471][INFO][plugins] [Nova,  
> > Cassandra] loaded , sites   
> > [2011-10-19 18:20:59,645][ERROR][bootstrap]  
> > {0.18.0-SNAPSHOT}: Initialization Failed ...
> > 
> > 1. IOException[Failed to obtain node lock]
> > 
> > Jérémie
> > 
> > On Wed, Oct 19, 2011 at 11:05 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> > 
> > > What failure do tyou get?
> > > 
> > > On Wed, Oct 19, 2011 at 6:21 PM, Jérémie BORDIER  
> > > [jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com)  
> > > wrote:
> > > 
> > > > Ok my bad, it works. The problem was actually that I tried to start  
> > > > master using the same command line / data directory than for my 0.17.7  
> > > > instance, and elasticsearch failed to start (failed to acquire lock),  
> > > > so I started it just with ./elasticsearch -f and the default  
> > > > clustername. Long story short: the TransportClient works, but master  
> > > > doesn't want to start with my current command line:
> > > > 
> > > > bin/elasticsearch -f -Xmx2g -Xms2g  
> > > > -Des.config=/Users/ahfeel/Work/archivezen/es/config/elasticsearch.yml  
> > > > -Des.path.data=/data/archivezen2/es/data  
> > > > -Des.path.work=/tmp/archivezen2  
> > > > -Des.path.logs=/data/archivezen2/es/logs/index
> > > > 
> > > > Jérémie
> > > > 
> > > > On Wed, Oct 19, 2011 at 5:23 PM, Jérémie BORDIER  
> > > > [jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com) wrote:
> > > > 
> > > > > I'll try one more time but I did recheck... More in a few minutes.
> > > > > 
> > > > > Jérémie
> > > > > 
> > > > > On Wed, Oct 19, 2011 at 5:20 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> > > > > 
> > > > > > Are you sure you used the same server and client version? Tests seem  
> > > > > > to  
> > > > > > pass...
> > > > > > 
> > > > > > On Wed, Oct 19, 2011 at 11:29 AM, Jérémie BORDIER  
> > > > > > [jeremie.bordier@gmail.com](mailto:jeremie.bordier@gmail.com) wrote:
> > > > > > 
> > > > > > > Hola,
> > > > > > > 
> > > > > > > It seems that the TransportClient is broken on master:
> > > > > > > 
> > > > > > > Code:  
> > > > > > > client = new TransportClient(settings).addTransportAddress(new  
> > > > > > > InetSocketTransportAddress("localhost", 9300));
> > > > > > > 
> > > > > > > client.admin().indices().prepareCreate(indexName)....execute().actionGet();  
> > > > > > > Result:  
> > > > > > > Exception in thread "main"  
> > > > > > > org.elasticsearch.client.transport.NoNodeAvailableException: No  
> > > > > > > node  
> > > > > > > available  
> > > > > > > at
> > > > > > > 
> > > > > > > org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:170)  
> > > > > > > at
> > > > > > > 
> > > > > > > org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.create(InternalTransportIndicesAdminClient.java:252)  
> > > > > > > at
> > > > > > > 
> > > > > > > org.elasticsearch.client.action.admin.indices.create.CreateIndexRequestBuilder.doExecute(CreateIndexRequestBuilder.java:158)  
> > > > > > > at
> > > > > > > 
> > > > > > > org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:52)  
> > > > > > > at
> > > > > > > 
> > > > > > > org.elasticsearch.client.action.admin.indices.support.BaseIndicesRequestBuilder.execute(BaseIndicesRequestBuilder.java:47)
> > > > > > > 
> > > > > > > Code:  
> > > > > > > Node node = NodeBuilder.nodeBuilder().client(true).node();  
> > > > > > > client = node.client();
> > > > > > > 
> > > > > > > client.admin().indices().prepareCreate(indexName)....execute().actionGet();  
> > > > > > > =\> Works
> > > > > > > 
> > > > > > > Note that the first code used to work perfectly on 0.17.7
> > > > > > > 
> > > > > > > --  
> > > > > > > Jérémie 'ahFeel' BORDIER
> > > > > 
> > > > > --  
> > > > > Jérémie 'ahFeel' BORDIER
> > > > 
> > > > --  
> > > > Jérémie 'ahFeel' BORDIER
> > 
> > --  
> > Jérémie 'ahFeel' BORDIER

--  
Jérémie 'ahFeel' BORDIER

---

<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, 3:51am UTC](https://discuss.elastic.co/t/transportclient-broken-on-master/5640/9 "2017-07-06T03:51:20Z")

</div>


