TransportClient broken on master?

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

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

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

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 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 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

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 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 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 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

What failure do tyou get?

On Wed, Oct 19, 2011 at 6:21 PM, Jérémie BORDIER
jeremie.bordier@gmail.comwrote:

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 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 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 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

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 wrote:

What failure do tyou get?

On Wed, Oct 19, 2011 at 6:21 PM, Jérémie BORDIER 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 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 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 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

Is your data location writable?

On Wed, Oct 19, 2011 at 11:09 PM, Jérémie BORDIER <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 wrote:

What failure do tyou get?

On Wed, Oct 19, 2011 at 6:21 PM, Jérémie BORDIER <
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 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 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 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

It is.

Jérémie

On Wed, Oct 19, 2011 at 11:10 PM, Shay Banon 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 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 wrote:

What failure do tyou get?

On Wed, Oct 19, 2011 at 6:21 PM, Jérémie BORDIER
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 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 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 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