# Problem using the transport client

**URL:** <https://discuss.elastic.co/t/problem-using-the-transport-client/4387>\
**Category:** Elasticsearch\
**Created:** [May 12, 2011, 12:28am UTC](https://discuss.elastic.co/t/problem-using-the-transport-client/4387 "2011-05-12T00:28:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Warner\_Onstine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warner_onstine/32/1086_2.png) [@Warner\_Onstine](https://discuss.elastic.co/u/Warner_Onstine)\
**Post date:** [May 12, 2011, 12:28am UTC](https://discuss.elastic.co/t/problem-using-the-transport-client/4387/1 "2011-05-12T00:28:54Z")

</div>

Hi all, I'm trying to get elasticsearch running on my Ubuntu box and  
am apparently doing something wrong, or have misconfigured something.

When I try and connect I'm getting this error below:

I'm trying to use the  
2011-05-11 17:21:47,508 [main] ERROR mapping.CouchMappingConfigurator

- Unexpected error creating index [mosaic].  
org.elasticsearch.client.transport.NoNodeAvailableException: No node available  
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:138)  
at org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.create(InternalTransportIndicesAdminClient.java:187)  
at org.elasticsearch.client.action.admin.indices.create.CreateIndexRequestBuilder.doExecute(CreateIndexRequestBuilder.java:150)  
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)

I'm able to use the same config I have on my local (OS X) box with no  
problems. Everything indexes and searches there no problem. When I  
push up my application to my server I see this error when I start up  
my application.

I can also access the web application through 9200 ok. I have  
successfully done this:  
curl -XPUT '[http://127.0.0.1:9200/\_river/mosaic/\_meta](http://127.0.0.1:9200/_river/mosaic/_meta)' -d '{  
"type" : "couchdb",  
"couchdb" : {  
"host" : "127.0.0.1",  
"port" : 5984,  
"db" : "mosaic",  
"filter" : null  
}  
}'

and watching the logs it does create this index for me. I can then do this:  
curl [http://localhost:9200/mosaic/\_status](http://localhost:9200/mosaic/_status) and see this:  
{  
"ok" : true,  
"\_shards" : {  
"total" : 10,  
"successful" : 5,  
"failed" : 0  
},  
"indices" : {  
"mosaic" : {  
"index" : {  
"primary\_size" : "518.2kb",  
"primary\_size\_in\_bytes" : 530646,  
"size" : "518.2kb",  
"size\_in\_bytes" : 530646  
},  
"translog" : {  
"operations" : 416  
},  
"docs" : {  
"num\_docs" : 208,  
"max\_doc" : 416,  
"deleted\_docs" : 208  
},  
"merges" : {  
"current" : 0,  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0  
},  
"refresh" : {  
"total" : 22,  
"total\_time" : "2.2s",  
"total\_time\_in\_millis" : 2200  
},  
"shards" : {  
"0" : [ {  
"routing" : {  
"state" : "STARTED",  
"primary" : true,  
"node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
"relocating\_node" : null,  
"shard" : 0,  
"index" : "mosaic"  
},  
"state" : "STARTED",  
"index" : {  
"size" : "97.9kb",  
"size\_in\_bytes" : 100304  
},  
"translog" : {  
"id" : 1305159436237,  
"operations" : 86  
},  
"docs" : {  
"num\_docs" : 43,  
"max\_doc" : 86,  
"deleted\_docs" : 43  
},  
"merges" : {  
"current" : 0,  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0  
},  
"refresh" : {  
"total" : 4,  
"total\_time" : "322ms",  
"total\_time\_in\_millis" : 322  
}  
} ],  
"1" : [ {  
"routing" : {  
"state" : "STARTED",  
"primary" : true,  
"node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
"relocating\_node" : null,  
"shard" : 1,  
"index" : "mosaic"  
},  
"state" : "STARTED",  
"index" : {  
"size" : "82.3kb",  
"size\_in\_bytes" : 84300  
},  
"translog" : {  
"id" : 1305159436272,  
"operations" : 62  
},  
"docs" : {  
"num\_docs" : 31,  
"max\_doc" : 62,  
"deleted\_docs" : 31  
},  
"merges" : {  
"current" : 0,  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0  
},  
"refresh" : {  
"total" : 4,  
"total\_time" : "337ms",  
"total\_time\_in\_millis" : 337  
}  
} ],  
"2" : [ {  
"routing" : {  
"state" : "STARTED",  
"primary" : true,  
"node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
"relocating\_node" : null,  
"shard" : 2,  
"index" : "mosaic"  
},  
"state" : "STARTED",  
"index" : {  
"size" : "123.8kb",  
"size\_in\_bytes" : 126778  
},  
"translog" : {  
"id" : 1305159436303,  
"operations" : 106  
},  
"docs" : {  
"num\_docs" : 53,  
"max\_doc" : 106,  
"deleted\_docs" : 53  
},  
"merges" : {  
"current" : 0,  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0  
},  
"refresh" : {  
"total" : 5,  
"total\_time" : "577ms",  
"total\_time\_in\_millis" : 577  
}  
} ],  
"3" : [ {  
"routing" : {  
"state" : "STARTED",  
"primary" : true,  
"node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
"relocating\_node" : null,  
"shard" : 3,  
"index" : "mosaic"  
},  
"state" : "STARTED",  
"index" : {  
"size" : "121.3kb",  
"size\_in\_bytes" : 124226  
},  
"translog" : {  
"id" : 1305159436335,  
"operations" : 96  
},  
"docs" : {  
"num\_docs" : 48,  
"max\_doc" : 96,  
"deleted\_docs" : 48  
},  
"merges" : {  
"current" : 0,  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0  
},  
"refresh" : {  
"total" : 5,  
"total\_time" : "544ms",  
"total\_time\_in\_millis" : 544  
}  
} ],  
"4" : [ {  
"routing" : {  
"state" : "STARTED",  
"primary" : true,  
"node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
"relocating\_node" : null,  
"shard" : 4,  
"index" : "mosaic"  
},  
"state" : "STARTED",  
"index" : {  
"size" : "92.8kb",  
"size\_in\_bytes" : 95038  
},  
"translog" : {  
"id" : 1305159436395,  
"operations" : 66  
},  
"docs" : {  
"num\_docs" : 33,  
"max\_doc" : 66,  
"deleted\_docs" : 33  
},  
"merges" : {  
"current" : 0,  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0  
},  
"refresh" : {  
"total" : 4,  
"total\_time" : "420ms",  
"total\_time\_in\_millis" : 420  
}  
} ]  
}  
}  
}  
}

Any help in resolving this is greatly appreciated as I would really  
like to get this deployed soon :-).

-warner

---

<div class="post-metadata">

**Author:** ![Warner\_Onstine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warner_onstine/32/1086_2.png) [@Warner\_Onstine](https://discuss.elastic.co/u/Warner_Onstine)\
**Post date:** [May 12, 2011, 4:23am UTC](https://discuss.elastic.co/t/problem-using-the-transport-client/4387/2 "2011-05-12T04:23:41Z")

</div>

Found my solution here:  
[http://elasticsearch-users.115913.n3.nabble.com/Newbie-question-for-TransportClient-td705234.html](http://elasticsearch-users.115913.n3.nabble.com/Newbie-question-for-TransportClient-td705234.html)

commenting out the cluster name fixed my issue.

-warner

On Wed, May 11, 2011 at 5:28 PM, Warner Onstine [warnero@gmail.com](mailto:warnero@gmail.com) wrote:

> Hi all, I'm trying to get elasticsearch running on my Ubuntu box and  
> am apparently doing something wrong, or have misconfigured something.
> 
> When I try and connect I'm getting this error below:
> 
> I'm trying to use the  
> 2011-05-11 17:21:47,508 [main] ERROR mapping.CouchMappingConfigurator
> 
> - Unexpected error creating index [mosaic].  
> org.elasticsearch.client.transport.NoNodeAvailableException: No node available  
> at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:138)  
> at org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.create(InternalTransportIndicesAdminClient.java:187)  
> at org.elasticsearch.client.action.admin.indices.create.CreateIndexRequestBuilder.doExecute(CreateIndexRequestBuilder.java:150)  
> 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)
> 
> I'm able to use the same config I have on my local (OS X) box with no  
> problems. Everything indexes and searches there no problem. When I  
> push up my application to my server I see this error when I start up  
> my application.
> 
> I can also access the web application through 9200 ok. I have  
> successfully done this:  
> curl -XPUT '[http://127.0.0.1:9200/\_river/mosaic/\_meta](http://127.0.0.1:9200/_river/mosaic/_meta)' -d '{  
> "type" : "couchdb",  
> "couchdb" : {  
> "host" : "127.0.0.1",  
> "port" : 5984,  
> "db" : "mosaic",  
> "filter" : null  
> }  
> }'
> 
> and watching the logs it does create this index for me. I can then do this:  
> curl [http://localhost:9200/mosaic/\_status](http://localhost:9200/mosaic/_status) and see this:  
> {  
> "ok" : true,  
> "\_shards" : {  
> "total" : 10,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "indices" : {  
> "mosaic" : {  
> "index" : {  
> "primary\_size" : "518.2kb",  
> "primary\_size\_in\_bytes" : 530646,  
> "size" : "518.2kb",  
> "size\_in\_bytes" : 530646  
> },  
> "translog" : {  
> "operations" : 416  
> },  
> "docs" : {  
> "num\_docs" : 208,  
> "max\_doc" : 416,  
> "deleted\_docs" : 208  
> },  
> "merges" : {  
> "current" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> },  
> "refresh" : {  
> "total" : 22,  
> "total\_time" : "2.2s",  
> "total\_time\_in\_millis" : 2200  
> },  
> "shards" : {  
> "0" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
> "relocating\_node" : null,  
> "shard" : 0,  
> "index" : "mosaic"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "97.9kb",  
> "size\_in\_bytes" : 100304  
> },  
> "translog" : {  
> "id" : 1305159436237,  
> "operations" : 86  
> },  
> "docs" : {  
> "num\_docs" : 43,  
> "max\_doc" : 86,  
> "deleted\_docs" : 43  
> },  
> "merges" : {  
> "current" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> },  
> "refresh" : {  
> "total" : 4,  
> "total\_time" : "322ms",  
> "total\_time\_in\_millis" : 322  
> }  
> } ],  
> "1" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
> "relocating\_node" : null,  
> "shard" : 1,  
> "index" : "mosaic"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "82.3kb",  
> "size\_in\_bytes" : 84300  
> },  
> "translog" : {  
> "id" : 1305159436272,  
> "operations" : 62  
> },  
> "docs" : {  
> "num\_docs" : 31,  
> "max\_doc" : 62,  
> "deleted\_docs" : 31  
> },  
> "merges" : {  
> "current" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> },  
> "refresh" : {  
> "total" : 4,  
> "total\_time" : "337ms",  
> "total\_time\_in\_millis" : 337  
> }  
> } ],  
> "2" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
> "relocating\_node" : null,  
> "shard" : 2,  
> "index" : "mosaic"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "123.8kb",  
> "size\_in\_bytes" : 126778  
> },  
> "translog" : {  
> "id" : 1305159436303,  
> "operations" : 106  
> },  
> "docs" : {  
> "num\_docs" : 53,  
> "max\_doc" : 106,  
> "deleted\_docs" : 53  
> },  
> "merges" : {  
> "current" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> },  
> "refresh" : {  
> "total" : 5,  
> "total\_time" : "577ms",  
> "total\_time\_in\_millis" : 577  
> }  
> } ],  
> "3" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
> "relocating\_node" : null,  
> "shard" : 3,  
> "index" : "mosaic"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "121.3kb",  
> "size\_in\_bytes" : 124226  
> },  
> "translog" : {  
> "id" : 1305159436335,  
> "operations" : 96  
> },  
> "docs" : {  
> "num\_docs" : 48,  
> "max\_doc" : 96,  
> "deleted\_docs" : 48  
> },  
> "merges" : {  
> "current" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> },  
> "refresh" : {  
> "total" : 5,  
> "total\_time" : "544ms",  
> "total\_time\_in\_millis" : 544  
> }  
> } ],  
> "4" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
> "relocating\_node" : null,  
> "shard" : 4,  
> "index" : "mosaic"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "92.8kb",  
> "size\_in\_bytes" : 95038  
> },  
> "translog" : {  
> "id" : 1305159436395,  
> "operations" : 66  
> },  
> "docs" : {  
> "num\_docs" : 33,  
> "max\_doc" : 66,  
> "deleted\_docs" : 33  
> },  
> "merges" : {  
> "current" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> },  
> "refresh" : {  
> "total" : 4,  
> "total\_time" : "420ms",  
> "total\_time\_in\_millis" : 420  
> }  
> } ]  
> }  
> }  
> }  
> }
> 
> Any help in resolving this is greatly appreciated as I would really  
> like to get this deployed soon :-).
> 
> -warner

---

<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:** [May 12, 2011, 6:06am UTC](https://discuss.elastic.co/t/problem-using-the-transport-client/4387/3 "2011-05-12T06:06:01Z")

</div>

You can also set the cluster name when you construct the TransportClient.  
On Thursday, May 12, 2011 at 7:23 AM, Warner Onstine wrote:

> Found my solution here:  
> [http://elasticsearch-users.115913.n3.nabble.com/Newbie-question-for-TransportClient-td705234.html](http://elasticsearch-users.115913.n3.nabble.com/Newbie-question-for-TransportClient-td705234.html)
> 
> commenting out the cluster name fixed my issue.
> 
> -warner
> 
> On Wed, May 11, 2011 at 5:28 PM, Warner Onstine [warnero@gmail.com](mailto:warnero@gmail.com) wrote:
> 
> > Hi all, I'm trying to get elasticsearch running on my Ubuntu box and  
> > am apparently doing something wrong, or have misconfigured something.
> > 
> > When I try and connect I'm getting this error below:
> > 
> > I'm trying to use the  
> > 2011-05-11 17:21:47,508 [main] ERROR mapping.CouchMappingConfigurator
> > 
> > - Unexpected error creating index [mosaic].  
> > org.elasticsearch.client.transport.NoNodeAvailableException: No node available  
> > at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:138)  
> > at org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.create(InternalTransportIndicesAdminClient.java:187)  
> > at org.elasticsearch.client.action.admin.indices.create.CreateIndexRequestBuilder.doExecute(CreateIndexRequestBuilder.java:150)  
> > 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)
> > 
> > I'm able to use the same config I have on my local (OS X) box with no  
> > problems. Everything indexes and searches there no problem. When I  
> > push up my application to my server I see this error when I start up  
> > my application.
> > 
> > I can also access the web application through 9200 ok. I have  
> > successfully done this:  
> > curl -XPUT '[http://127.0.0.1:9200/\_river/mosaic/\_meta](http://127.0.0.1:9200/_river/mosaic/_meta)' -d '{  
> > "type" : "couchdb",  
> > "couchdb" : {  
> > "host" : "127.0.0.1",  
> > "port" : 5984,  
> > "db" : "mosaic",  
> > "filter" : null  
> > }  
> > }'
> > 
> > and watching the logs it does create this index for me. I can then do this:  
> > curl [http://localhost:9200/mosaic/\_status](http://localhost:9200/mosaic/_status) and see this:  
> > {  
> > "ok" : true,  
> > "\_shards" : {  
> > "total" : 10,  
> > "successful" : 5,  
> > "failed" : 0  
> > },  
> > "indices" : {  
> > "mosaic" : {  
> > "index" : {  
> > "primary\_size" : "518.2kb",  
> > "primary\_size\_in\_bytes" : 530646,  
> > "size" : "518.2kb",  
> > "size\_in\_bytes" : 530646  
> > },  
> > "translog" : {  
> > "operations" : 416  
> > },  
> > "docs" : {  
> > "num\_docs" : 208,  
> > "max\_doc" : 416,  
> > "deleted\_docs" : 208  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > },  
> > "refresh" : {  
> > "total" : 22,  
> > "total\_time" : "2.2s",  
> > "total\_time\_in\_millis" : 2200  
> > },  
> > "shards" : {  
> > "0" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
> > "relocating\_node" : null,  
> > "shard" : 0,  
> > "index" : "mosaic"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "97.9kb",  
> > "size\_in\_bytes" : 100304  
> > },  
> > "translog" : {  
> > "id" : 1305159436237,  
> > "operations" : 86  
> > },  
> > "docs" : {  
> > "num\_docs" : 43,  
> > "max\_doc" : 86,  
> > "deleted\_docs" : 43  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > },  
> > "refresh" : {  
> > "total" : 4,  
> > "total\_time" : "322ms",  
> > "total\_time\_in\_millis" : 322  
> > }  
> > } ],  
> > "1" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
> > "relocating\_node" : null,  
> > "shard" : 1,  
> > "index" : "mosaic"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "82.3kb",  
> > "size\_in\_bytes" : 84300  
> > },  
> > "translog" : {  
> > "id" : 1305159436272,  
> > "operations" : 62  
> > },  
> > "docs" : {  
> > "num\_docs" : 31,  
> > "max\_doc" : 62,  
> > "deleted\_docs" : 31  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > },  
> > "refresh" : {  
> > "total" : 4,  
> > "total\_time" : "337ms",  
> > "total\_time\_in\_millis" : 337  
> > }  
> > } ],  
> > "2" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
> > "relocating\_node" : null,  
> > "shard" : 2,  
> > "index" : "mosaic"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "123.8kb",  
> > "size\_in\_bytes" : 126778  
> > },  
> > "translog" : {  
> > "id" : 1305159436303,  
> > "operations" : 106  
> > },  
> > "docs" : {  
> > "num\_docs" : 53,  
> > "max\_doc" : 106,  
> > "deleted\_docs" : 53  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > },  
> > "refresh" : {  
> > "total" : 5,  
> > "total\_time" : "577ms",  
> > "total\_time\_in\_millis" : 577  
> > }  
> > } ],  
> > "3" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
> > "relocating\_node" : null,  
> > "shard" : 3,  
> > "index" : "mosaic"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "121.3kb",  
> > "size\_in\_bytes" : 124226  
> > },  
> > "translog" : {  
> > "id" : 1305159436335,  
> > "operations" : 96  
> > },  
> > "docs" : {  
> > "num\_docs" : 48,  
> > "max\_doc" : 96,  
> > "deleted\_docs" : 48  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > },  
> > "refresh" : {  
> > "total" : 5,  
> > "total\_time" : "544ms",  
> > "total\_time\_in\_millis" : 544  
> > }  
> > } ],  
> > "4" : [ {  
> > "routing" : {  
> > "state" : "STARTED",  
> > "primary" : true,  
> > "node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
> > "relocating\_node" : null,  
> > "shard" : 4,  
> > "index" : "mosaic"  
> > },  
> > "state" : "STARTED",  
> > "index" : {  
> > "size" : "92.8kb",  
> > "size\_in\_bytes" : 95038  
> > },  
> > "translog" : {  
> > "id" : 1305159436395,  
> > "operations" : 66  
> > },  
> > "docs" : {  
> > "num\_docs" : 33,  
> > "max\_doc" : 66,  
> > "deleted\_docs" : 33  
> > },  
> > "merges" : {  
> > "current" : 0,  
> > "total" : 0,  
> > "total\_time" : "0s",  
> > "total\_time\_in\_millis" : 0  
> > },  
> > "refresh" : {  
> > "total" : 4,  
> > "total\_time" : "420ms",  
> > "total\_time\_in\_millis" : 420  
> > }  
> > } ]  
> > }  
> > }  
> > }  
> > }
> > 
> > Any help in resolving this is greatly appreciated as I would really  
> > like to get this deployed soon :-).
> > 
> > -warner

---

<div class="post-metadata">

**Author:** ![Warner\_Onstine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warner_onstine/32/1086_2.png) [@Warner\_Onstine](https://discuss.elastic.co/u/Warner_Onstine)\
**Post date:** [May 12, 2011, 12:59pm UTC](https://discuss.elastic.co/t/problem-using-the-transport-client/4387/4 "2011-05-12T12:59:00Z")

</div>

Yeah, I'm using a plugin for grails/couchdb that is in beta and that  
wasn't available yet. I have filed an issue with the author of the  
plugin, but I'm just glad it's all working now :-). Love  
Elasticsearch, so freakin' easy to get rolling with this!

-warner

On Wed, May 11, 2011 at 11:06 PM, Shay Banon  
[shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com) wrote:

> You can also set the cluster name when you construct the TransportClient.
> 
> On Thursday, May 12, 2011 at 7:23 AM, Warner Onstine wrote:
> 
> Found my solution here:  
> [http://elasticsearch-users.115913.n3.nabble.com/Newbie-question-for-TransportClient-td705234.html](http://elasticsearch-users.115913.n3.nabble.com/Newbie-question-for-TransportClient-td705234.html)
> 
> commenting out the cluster name fixed my issue.
> 
> -warner
> 
> On Wed, May 11, 2011 at 5:28 PM, Warner Onstine [warnero@gmail.com](mailto:warnero@gmail.com) wrote:
> 
> Hi all, I'm trying to get elasticsearch running on my Ubuntu box and  
> am apparently doing something wrong, or have misconfigured something.
> 
> When I try and connect I'm getting this error below:
> 
> I'm trying to use the  
> 2011-05-11 17:21:47,508 [main] ERROR mapping.CouchMappingConfigurator
> 
> - Unexpected error creating index [mosaic].  
> org.elasticsearch.client.transport.NoNodeAvailableException: No node  
> available  
> at  
> org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:138)  
> at  
> org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.create(InternalTransportIndicesAdminClient.java:187)  
> at  
> org.elasticsearch.client.action.admin.indices.create.CreateIndexRequestBuilder.doExecute(CreateIndexRequestBuilder.java:150)  
> 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)
> 
> I'm able to use the same config I have on my local (OS X) box with no  
> problems. Everything indexes and searches there no problem. When I  
> push up my application to my server I see this error when I start up  
> my application.
> 
> I can also access the web application through 9200 ok. I have  
> successfully done this:  
> curl -XPUT '[http://127.0.0.1:9200/\_river/mosaic/\_meta](http://127.0.0.1:9200/_river/mosaic/_meta)' -d '{  
> "type" : "couchdb",  
> "couchdb" : {  
> "host" : "127.0.0.1",  
> "port" : 5984,  
> "db" : "mosaic",  
> "filter" : null  
> }  
> }'
> 
> and watching the logs it does create this index for me. I can then do this:  
> curl [http://localhost:9200/mosaic/\_status](http://localhost:9200/mosaic/_status) and see this:  
> {  
> "ok" : true,  
> "\_shards" : {  
> "total" : 10,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "indices" : {  
> "mosaic" : {  
> "index" : {  
> "primary\_size" : "518.2kb",  
> "primary\_size\_in\_bytes" : 530646,  
> "size" : "518.2kb",  
> "size\_in\_bytes" : 530646  
> },  
> "translog" : {  
> "operations" : 416  
> },  
> "docs" : {  
> "num\_docs" : 208,  
> "max\_doc" : 416,  
> "deleted\_docs" : 208  
> },  
> "merges" : {  
> "current" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> },  
> "refresh" : {  
> "total" : 22,  
> "total\_time" : "2.2s",  
> "total\_time\_in\_millis" : 2200  
> },  
> "shards" : {  
> "0" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
> "relocating\_node" : null,  
> "shard" : 0,  
> "index" : "mosaic"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "97.9kb",  
> "size\_in\_bytes" : 100304  
> },  
> "translog" : {  
> "id" : 1305159436237,  
> "operations" : 86  
> },  
> "docs" : {  
> "num\_docs" : 43,  
> "max\_doc" : 86,  
> "deleted\_docs" : 43  
> },  
> "merges" : {  
> "current" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> },  
> "refresh" : {  
> "total" : 4,  
> "total\_time" : "322ms",  
> "total\_time\_in\_millis" : 322  
> }  
> } ],  
> "1" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
> "relocating\_node" : null,  
> "shard" : 1,  
> "index" : "mosaic"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "82.3kb",  
> "size\_in\_bytes" : 84300  
> },  
> "translog" : {  
> "id" : 1305159436272,  
> "operations" : 62  
> },  
> "docs" : {  
> "num\_docs" : 31,  
> "max\_doc" : 62,  
> "deleted\_docs" : 31  
> },  
> "merges" : {  
> "current" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> },  
> "refresh" : {  
> "total" : 4,  
> "total\_time" : "337ms",  
> "total\_time\_in\_millis" : 337  
> }  
> } ],  
> "2" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
> "relocating\_node" : null,  
> "shard" : 2,  
> "index" : "mosaic"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "123.8kb",  
> "size\_in\_bytes" : 126778  
> },  
> "translog" : {  
> "id" : 1305159436303,  
> "operations" : 106  
> },  
> "docs" : {  
> "num\_docs" : 53,  
> "max\_doc" : 106,  
> "deleted\_docs" : 53  
> },  
> "merges" : {  
> "current" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> },  
> "refresh" : {  
> "total" : 5,  
> "total\_time" : "577ms",  
> "total\_time\_in\_millis" : 577  
> }  
> } ],  
> "3" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
> "relocating\_node" : null,  
> "shard" : 3,  
> "index" : "mosaic"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "121.3kb",  
> "size\_in\_bytes" : 124226  
> },  
> "translog" : {  
> "id" : 1305159436335,  
> "operations" : 96  
> },  
> "docs" : {  
> "num\_docs" : 48,  
> "max\_doc" : 96,  
> "deleted\_docs" : 48  
> },  
> "merges" : {  
> "current" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> },  
> "refresh" : {  
> "total" : 5,  
> "total\_time" : "544ms",  
> "total\_time\_in\_millis" : 544  
> }  
> } ],  
> "4" : [ {  
> "routing" : {  
> "state" : "STARTED",  
> "primary" : true,  
> "node" : "ZLjpcPJfQWKGE0HU3oBG\_A",  
> "relocating\_node" : null,  
> "shard" : 4,  
> "index" : "mosaic"  
> },  
> "state" : "STARTED",  
> "index" : {  
> "size" : "92.8kb",  
> "size\_in\_bytes" : 95038  
> },  
> "translog" : {  
> "id" : 1305159436395,  
> "operations" : 66  
> },  
> "docs" : {  
> "num\_docs" : 33,  
> "max\_doc" : 66,  
> "deleted\_docs" : 33  
> },  
> "merges" : {  
> "current" : 0,  
> "total" : 0,  
> "total\_time" : "0s",  
> "total\_time\_in\_millis" : 0  
> },  
> "refresh" : {  
> "total" : 4,  
> "total\_time" : "420ms",  
> "total\_time\_in\_millis" : 420  
> }  
> } ]  
> }  
> }  
> }  
> }
> 
> Any help in resolving this is greatly appreciated as I would really  
> like to get this deployed soon :-).
> 
> -warner

---

<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, 4:06am UTC](https://discuss.elastic.co/t/problem-using-the-transport-client/4387/5 "2017-07-06T04:06:23Z")

</div>


