# Transport client not able to fetch data

**URL:** <https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203>\
**Category:** Elasticsearch\
**Created:** [March 19, 2013, 9:10am UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203 "2013-03-19T09:10:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 19, 2013, 9:10am UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/1 "2013-03-19T09:10:28Z")

</div>

Hi All,

i am getting no node found exception in my linux remote server

my xml  
\<elasticsearch:node id="esNode" /\>  
\<elasticsearch:client node="esNode" id="esClient" /\>

this is java code

Client client = new TransportClient()  
.addTransportAddress(new InetSocketTransportAddress("localhost",  
9300))  
.addTransportAddress(new InetSocketTransportAddress("10.0.0.12",  
9300));

SearchResponse response = null;  
response =  
client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
.setTypes("DC\_USER").execute().actionGet();

SearchHit[] results = response.getHits().getHits();  
if(results.length != 0){  
result = new HashMap\<String, Object\>();  
list = new ArrayList();  
}  
int count = 0;

```
  for (SearchHit hit : results) {
    result.put(""+count, hit.getSource()); // the retrieved document
    list.add(hit.getSource());
    count++;
  }

```

[http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)

{  
"cluster\_name" : "Data\_Cluster",  
"status" : "yellow",  
"timed\_out" : false,  
"number\_of\_nodes" : 1,  
"number\_of\_data\_nodes" : 1,  
"active\_primary\_shards" : 87,  
"active\_shards" : 87,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 86  
}

it is getting exception in linux macine.. index not found exception

status of index is success  
[http://10.0.0.12:9200/dc\_user\_idx/\_status?pretty](http://10.0.0.12:9200/dc_user_idx/_status?pretty)

{  
"ok" : true,  
"\_shards" : {  
"total" : 10,  
"successful" : 5,  
"failed" : 0  
},  
"indices" : {  
"dc\_user\_idx" : {  
"index" : {  
"primary\_size" : "306kb",  
"primary\_size\_in\_bytes" : 313373,  
"size" : "306kb",  
"size\_in\_bytes" : 313373  
},  
.....

i have not configured any manual settings  
please help me.. is there any thing missing..

--  
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:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [March 19, 2013, 10:20pm UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/2 "2013-03-19T22:20:44Z")

</div>

You need to specify cluster name when you create transport client. See the  
second example in the Transport Client section on this  
page [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)

On Tuesday, March 19, 2013 5:10:28 AM UTC-4, srikanth gone wrote:

> Hi All,
> 
> i am getting no node found exception in my linux remote server
> 
> my xml  
> \<elasticsearch:node id="esNode" /\>  
> \<elasticsearch:client node="esNode" id="esClient" /\>
> 
> this is java code
> 
> Client client = new TransportClient()  
> .addTransportAddress(new InetSocketTransportAddress("localhost",  
> 9300))  
> .addTransportAddress(new InetSocketTransportAddress("10.0.0.12",  
> 9300));
> 
> SearchResponse response = null;  
> response =  
> client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> .setTypes("DC\_USER").execute().actionGet();
> 
> SearchHit results = response.getHits().getHits();  
> if(results.length != 0){  
> result = new HashMap\<String, Object\>();  
> list = new ArrayList();  
> }  
> int count = 0;
> 
> ```
> for (SearchHit hit : results) {
> result.put(""+count, hit.getSource()); // the retrieved document
> list.add(hit.getSource());
> count++;
> }
> 
> ```
> 
> [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> 
> {  
> "cluster\_name" : "Data\_Cluster",  
> "status" : "yellow",  
> "timed\_out" : false,  
> "number\_of\_nodes" : 1,  
> "number\_of\_data\_nodes" : 1,  
> "active\_primary\_shards" : 87,  
> "active\_shards" : 87,  
> "relocating\_shards" : 0,  
> "initializing\_shards" : 0,  
> "unassigned\_shards" : 86  
> }
> 
> it is getting exception in linux macine.. index not found exception
> 
> status of index is success  
> [http://10.0.0.12:9200/dc\_user\_idx/\_status?pretty](http://10.0.0.12:9200/dc_user_idx/_status?pretty)
> 
> {  
> "ok" : true,  
> "\_shards" : {  
> "total" : 10,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "indices" : {  
> "dc\_user\_idx" : {  
> "index" : {  
> "primary\_size" : "306kb",  
> "primary\_size\_in\_bytes" : 313373,  
> "size" : "306kb",  
> "size\_in\_bytes" : 313373  
> },  
> .....
> 
> i have not configured any manual settings  
> please help me.. is there any thing missing..

--  
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:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 20, 2013, 10:26am UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/3 "2013-03-20T10:26:12Z")

</div>

Hi Igor,

i have used cluster name as "elasticsearch".. and

Settings settings = ImmutableSettings.settingsBuilder()  
// .put("cluster.name", "elasticsearch") // i am using default  
cluster.  
.put("client.transport.sniff", false).build();

Client client = new TransportClient(settings)  
// .addTransportAddress(new InetSocketTransportAddress("192.168.10.2",  
9300))  
.addTransportAddress(new InetSocketTransportAddress("10.0.0.12",  
9300));

is there any chance to fetch data from server to in client machine..

On Wednesday, March 20, 2013 3:50:44 AM UTC+5:30, Igor Motov wrote:

> You need to specify cluster name when you create transport client. See the  
> second example in the Transport Client section on this page  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)
> 
> On Tuesday, March 19, 2013 5:10:28 AM UTC-4, srikanth gone wrote:
> 
> > Hi All,
> > 
> > i am getting no node found exception in my linux remote server
> > 
> > my xml  
> > \<elasticsearch:node id="esNode" /\>  
> > \<elasticsearch:client node="esNode" id="esClient" /\>
> > 
> > this is java code
> > 
> > Client client = new TransportClient()  
> > .addTransportAddress(new InetSocketTransportAddress("localhost",  
> > 9300))  
> > .addTransportAddress(new InetSocketTransportAddress("10.0.0.12",  
> > 9300));
> > 
> > SearchResponse response = null;  
> > response =  
> > client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > .setTypes("DC\_USER").execute().actionGet();
> > 
> > SearchHit results = response.getHits().getHits();  
> > if(results.length != 0){  
> > result = new HashMap\<String, Object\>();  
> > list = new ArrayList();  
> > }  
> > int count = 0;
> > 
> > ```
> > for (SearchHit hit : results) {
> > result.put(""+count, hit.getSource()); // the retrieved document
> > list.add(hit.getSource());
> > count++;
> > }
> > 
> > ```
> > 
> > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > 
> > {  
> > "cluster\_name" : "Data\_Cluster",  
> > "status" : "yellow",  
> > "timed\_out" : false,  
> > "number\_of\_nodes" : 1,  
> > "number\_of\_data\_nodes" : 1,  
> > "active\_primary\_shards" : 87,  
> > "active\_shards" : 87,  
> > "relocating\_shards" : 0,  
> > "initializing\_shards" : 0,  
> > "unassigned\_shards" : 86  
> > }
> > 
> > it is getting exception in linux macine.. index not found exception
> > 
> > status of index is success  
> > [http://10.0.0.12:9200/dc\_user\_idx/\_status?pretty](http://10.0.0.12:9200/dc_user_idx/_status?pretty)
> > 
> > {  
> > "ok" : true,  
> > "\_shards" : {  
> > "total" : 10,  
> > "successful" : 5,  
> > "failed" : 0  
> > },  
> > "indices" : {  
> > "dc\_user\_idx" : {  
> > "index" : {  
> > "primary\_size" : "306kb",  
> > "primary\_size\_in\_bytes" : 313373,  
> > "size" : "306kb",  
> > "size\_in\_bytes" : 313373  
> > },  
> > .....
> > 
> > i have not configured any manual settings  
> > please help me.. is there any thing missing..

--  
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:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [March 20, 2013, 10:32am UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/4 "2013-03-20T10:32:09Z")

</div>

In your example the cluster name is "Data\_Cluster" not "elasticsearch".

On Wednesday, March 20, 2013 6:26:12 AM UTC-4, srikanth gone wrote:

> Hi Igor,
> 
> i have used cluster name as "elasticsearch".. and
> 
> Settings settings = ImmutableSettings.settingsBuilder()  
> // .put("cluster.name", "elasticsearch") // i am using default  
> cluster.  
> .put("client.transport.sniff", false).build();
> 
> Client client = new TransportClient(settings)  
> // .addTransportAddress(new  
> InetSocketTransportAddress("192.168.10.2", 9300))  
> .addTransportAddress(new InetSocketTransportAddress("10.0.0.12",  
> 9300));
> 
> is there any chance to fetch data from server to in client machine..
> 
> On Wednesday, March 20, 2013 3:50:44 AM UTC+5:30, Igor Motov wrote:
> 
> > You need to specify cluster name when you create transport client. See  
> > the second example in the Transport Client section on this page  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)
> > 
> > On Tuesday, March 19, 2013 5:10:28 AM UTC-4, srikanth gone wrote:
> > 
> > > Hi All,
> > > 
> > > i am getting no node found exception in my linux remote server
> > > 
> > > my xml  
> > > \<elasticsearch:node id="esNode" /\>  
> > > \<elasticsearch:client node="esNode" id="esClient" /\>
> > > 
> > > this is java code
> > > 
> > > Client client = new TransportClient()  
> > > .addTransportAddress(new InetSocketTransportAddress("localhost",  
> > > 9300))  
> > > .addTransportAddress(new InetSocketTransportAddress("10.0.0.12",  
> > > 9300));
> > > 
> > > SearchResponse response = null;  
> > > response =  
> > > client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > > .setTypes("DC\_USER").execute().actionGet();
> > > 
> > > SearchHit results = response.getHits().getHits();  
> > > if(results.length != 0){  
> > > result = new HashMap\<String, Object\>();  
> > > list = new ArrayList();  
> > > }  
> > > int count = 0;
> > > 
> > > ```
> > > for (SearchHit hit : results) {
> > > result.put(""+count, hit.getSource()); // the retrieved document
> > > list.add(hit.getSource());
> > > count++;
> > > }
> > > 
> > > ```
> > > 
> > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > 
> > > {  
> > > "cluster\_name" : "Data\_Cluster",  
> > > "status" : "yellow",  
> > > "timed\_out" : false,  
> > > "number\_of\_nodes" : 1,  
> > > "number\_of\_data\_nodes" : 1,  
> > > "active\_primary\_shards" : 87,  
> > > "active\_shards" : 87,  
> > > "relocating\_shards" : 0,  
> > > "initializing\_shards" : 0,  
> > > "unassigned\_shards" : 86  
> > > }
> > > 
> > > it is getting exception in linux macine.. index not found exception
> > > 
> > > status of index is success  
> > > [http://10.0.0.12:9200/dc\_user\_idx/\_status?pretty](http://10.0.0.12:9200/dc_user_idx/_status?pretty)
> > > 
> > > {  
> > > "ok" : true,  
> > > "\_shards" : {  
> > > "total" : 10,  
> > > "successful" : 5,  
> > > "failed" : 0  
> > > },  
> > > "indices" : {  
> > > "dc\_user\_idx" : {  
> > > "index" : {  
> > > "primary\_size" : "306kb",  
> > > "primary\_size\_in\_bytes" : 313373,  
> > > "size" : "306kb",  
> > > "size\_in\_bytes" : 313373  
> > > },  
> > > .....
> > > 
> > > i have not configured any manual settings  
> > > please help me.. is there any thing missing..

--  
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:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 20, 2013, 10:38am UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/5 "2013-03-20T10:38:55Z")

</div>

hi Igor  
actually i have removed that one..  
[http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)

{  
"cluster\_name" : "elasticsearch",  
"status" : "yellow",  
"timed\_out" : false,  
"number\_of\_nodes" : 1,  
"number\_of\_data\_nodes" : 1,  
"active\_primary\_shards" : 96,  
"active\_shards" : 96,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 96  
}

On Wednesday, March 20, 2013 4:02:09 PM UTC+5:30, Igor Motov wrote:

> In your example the cluster name is "Data\_Cluster" not "elasticsearch".
> 
> On Wednesday, March 20, 2013 6:26:12 AM UTC-4, srikanth gone wrote:
> 
> > Hi Igor,
> > 
> > i have used cluster name as "elasticsearch".. and
> > 
> > Settings settings = ImmutableSettings.settingsBuilder()  
> > // .put("cluster.name", "elasticsearch") // i am using  
> > default cluster.  
> > .put("client.transport.sniff", false).build();
> > 
> > Client client = new TransportClient(settings)  
> > // .addTransportAddress(new  
> > InetSocketTransportAddress("192.168.10.2", 9300))  
> > .addTransportAddress(new InetSocketTransportAddress("10.0.0.12",  
> > 9300));
> > 
> > is there any chance to fetch data from server to in client machine..
> > 
> > On Wednesday, March 20, 2013 3:50:44 AM UTC+5:30, Igor Motov wrote:
> > 
> > > You need to specify cluster name when you create transport client. See  
> > > the second example in the Transport Client section on this page  
> > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)
> > > 
> > > On Tuesday, March 19, 2013 5:10:28 AM UTC-4, srikanth gone wrote:
> > > 
> > > > Hi All,
> > > > 
> > > > i am getting no node found exception in my linux remote server
> > > > 
> > > > my xml  
> > > > \<elasticsearch:node id="esNode" /\>  
> > > > \<elasticsearch:client node="esNode" id="esClient" /\>
> > > > 
> > > > this is java code
> > > > 
> > > > Client client = new TransportClient()  
> > > > .addTransportAddress(new InetSocketTransportAddress("localhost",  
> > > > 9300))  
> > > > .addTransportAddress(new InetSocketTransportAddress("10.0.0.12",  
> > > > 9300));
> > > > 
> > > > SearchResponse response = null;  
> > > > response =  
> > > > client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > > > .setTypes("DC\_USER").execute().actionGet();
> > > > 
> > > > SearchHit results = response.getHits().getHits();  
> > > > if(results.length != 0){  
> > > > result = new HashMap\<String, Object\>();  
> > > > list = new ArrayList();  
> > > > }  
> > > > int count = 0;
> > > > 
> > > > ```
> > > > for (SearchHit hit : results) {
> > > > result.put(""+count, hit.getSource()); // the retrieved document
> > > > list.add(hit.getSource());
> > > > count++;
> > > > }
> > > > 
> > > > ```
> > > > 
> > > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > > 
> > > > {  
> > > > "cluster\_name" : "Data\_Cluster",  
> > > > "status" : "yellow",  
> > > > "timed\_out" : false,  
> > > > "number\_of\_nodes" : 1,  
> > > > "number\_of\_data\_nodes" : 1,  
> > > > "active\_primary\_shards" : 87,  
> > > > "active\_shards" : 87,  
> > > > "relocating\_shards" : 0,  
> > > > "initializing\_shards" : 0,  
> > > > "unassigned\_shards" : 86  
> > > > }
> > > > 
> > > > it is getting exception in linux macine.. index not found exception
> > > > 
> > > > status of index is success  
> > > > [http://10.0.0.12:9200/dc\_user\_idx/\_status?pretty](http://10.0.0.12:9200/dc_user_idx/_status?pretty)
> > > > 
> > > > {  
> > > > "ok" : true,  
> > > > "\_shards" : {  
> > > > "total" : 10,  
> > > > "successful" : 5,  
> > > > "failed" : 0  
> > > > },  
> > > > "indices" : {  
> > > > "dc\_user\_idx" : {  
> > > > "index" : {  
> > > > "primary\_size" : "306kb",  
> > > > "primary\_size\_in\_bytes" : 313373,  
> > > > "size" : "306kb",  
> > > > "size\_in\_bytes" : 313373  
> > > > },  
> > > > .....
> > > > 
> > > > i have not configured any manual settings  
> > > > please help me.. is there any thing missing..

--  
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:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 20, 2013, 10:59am UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/6 "2013-03-20T10:59:08Z")

</div>

in my remote server.. elasticserver version 0.20.3

in my local machine. elastic server version is 0.19.8

is there any compatible problem with this..

On Wednesday, March 20, 2013 4:08:55 PM UTC+5:30, srikanth gone wrote:

> hi Igor  
> actually i have removed that one..  
> [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> 
> {  
> "cluster\_name" : "elasticsearch",  
> "status" : "yellow",  
> "timed\_out" : false,  
> "number\_of\_nodes" : 1,  
> "number\_of\_data\_nodes" : 1,  
> "active\_primary\_shards" : 96,  
> "active\_shards" : 96,  
> "relocating\_shards" : 0,  
> "initializing\_shards" : 0,  
> "unassigned\_shards" : 96  
> }
> 
> On Wednesday, March 20, 2013 4:02:09 PM UTC+5:30, Igor Motov wrote:
> 
> > In your example the cluster name is "Data\_Cluster" not "elasticsearch".
> > 
> > On Wednesday, March 20, 2013 6:26:12 AM UTC-4, srikanth gone wrote:
> > 
> > > Hi Igor,
> > > 
> > > i have used cluster name as "elasticsearch".. and
> > > 
> > > Settings settings = ImmutableSettings.settingsBuilder()  
> > > // .put("cluster.name", "elasticsearch") // i am using  
> > > default cluster.  
> > > .put("client.transport.sniff", false).build();
> > > 
> > > Client client = new TransportClient(settings)  
> > > // .addTransportAddress(new  
> > > InetSocketTransportAddress("192.168.10.2", 9300))  
> > > .addTransportAddress(new InetSocketTransportAddress("10.0.0.12",  
> > > 9300));
> > > 
> > > is there any chance to fetch data from server to in client machine..
> > > 
> > > On Wednesday, March 20, 2013 3:50:44 AM UTC+5:30, Igor Motov wrote:
> > > 
> > > > You need to specify cluster name when you create transport client. See  
> > > > the second example in the Transport Client section on this page  
> > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)
> > > > 
> > > > On Tuesday, March 19, 2013 5:10:28 AM UTC-4, srikanth gone wrote:
> > > > 
> > > > > Hi All,
> > > > > 
> > > > > i am getting no node found exception in my linux remote server
> > > > > 
> > > > > my xml  
> > > > > \<elasticsearch:node id="esNode" /\>  
> > > > > \<elasticsearch:client node="esNode" id="esClient" /\>
> > > > > 
> > > > > this is java code
> > > > > 
> > > > > Client client = new TransportClient()  
> > > > > .addTransportAddress(new InetSocketTransportAddress("localhost",  
> > > > > 9300))  
> > > > > .addTransportAddress(new InetSocketTransportAddress("10.0.0.12",  
> > > > > 9300));
> > > > > 
> > > > > SearchResponse response = null;  
> > > > > response =  
> > > > > client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > > > > .setTypes("DC\_USER").execute().actionGet();
> > > > > 
> > > > > SearchHit results = response.getHits().getHits();  
> > > > > if(results.length != 0){  
> > > > > result = new HashMap\<String, Object\>();  
> > > > > list = new ArrayList();  
> > > > > }  
> > > > > int count = 0;
> > > > > 
> > > > > ```
> > > > > for (SearchHit hit : results) {
> > > > > result.put(""+count, hit.getSource()); // the retrieved 
> > > > > 
> > > > > ```
> > > > > 
> > > > > document  
> > > > > list.add(hit.getSource());  
> > > > > count++;  
> > > > > }
> > > > > 
> > > > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > > > 
> > > > > {  
> > > > > "cluster\_name" : "Data\_Cluster",  
> > > > > "status" : "yellow",  
> > > > > "timed\_out" : false,  
> > > > > "number\_of\_nodes" : 1,  
> > > > > "number\_of\_data\_nodes" : 1,  
> > > > > "active\_primary\_shards" : 87,  
> > > > > "active\_shards" : 87,  
> > > > > "relocating\_shards" : 0,  
> > > > > "initializing\_shards" : 0,  
> > > > > "unassigned\_shards" : 86  
> > > > > }
> > > > > 
> > > > > it is getting exception in linux macine.. index not found exception
> > > > > 
> > > > > status of index is success  
> > > > > [http://10.0.0.12:9200/dc\_user\_idx/\_status?pretty](http://10.0.0.12:9200/dc_user_idx/_status?pretty)
> > > > > 
> > > > > {  
> > > > > "ok" : true,  
> > > > > "\_shards" : {  
> > > > > "total" : 10,  
> > > > > "successful" : 5,  
> > > > > "failed" : 0  
> > > > > },  
> > > > > "indices" : {  
> > > > > "dc\_user\_idx" : {  
> > > > > "index" : {  
> > > > > "primary\_size" : "306kb",  
> > > > > "primary\_size\_in\_bytes" : 313373,  
> > > > > "size" : "306kb",  
> > > > > "size\_in\_bytes" : 313373  
> > > > > },  
> > > > > .....
> > > > > 
> > > > > i have not configured any manual settings  
> > > > > please help me.. is there any thing missing..

--  
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:** [March 20, 2013, 11:01am UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/7 "2013-03-20T11:01:16Z")

</div>

YES!

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

Le 20 mars 2013 à 11:59, srikanth gone [srikanthg93@gmail.com](mailto:srikanthg93@gmail.com) a écrit :

in my remote server.. elasticserver version 0.20.3

in my local machine. elastic server version is 0.19.8

is there any compatible problem with this..

On Wednesday, March 20, 2013 4:08:55 PM UTC+5:30, srikanth gone wrote:

> hi Igor  
> actually i have removed that one..  
> [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> 
> {  
> "cluster\_name" : "elasticsearch",  
> "status" : "yellow",  
> "timed\_out" : false,  
> "number\_of\_nodes" : 1,  
> "number\_of\_data\_nodes" : 1,  
> "active\_primary\_shards" : 96,  
> "active\_shards" : 96,  
> "relocating\_shards" : 0,  
> "initializing\_shards" : 0,  
> "unassigned\_shards" : 96  
> }
> 
> On Wednesday, March 20, 2013 4:02:09 PM UTC+5:30, Igor Motov wrote:
> 
> > In your example the cluster name is "Data\_Cluster" not "elasticsearch".
> > 
> > On Wednesday, March 20, 2013 6:26:12 AM UTC-4, srikanth gone wrote:
> > 
> > > Hi Igor,
> > > 
> > > i have used cluster name as "elasticsearch".. and
> > > 
> > > Settings settings = ImmutableSettings.settingsBuilder()  
> > > // .put("cluster.name", "elasticsearch") // i am using default cluster.  
> > > .put("client.transport.sniff", false).build();
> > > 
> > > Client client = new TransportClient(settings)  
> > > // .addTransportAddress(new InetSocketTransportAddress("192.168.10.2", 9300))  
> > > .addTransportAddress(new InetSocketTransportAddress("10.0.0.12", 9300));
> > > 
> > > is there any chance to fetch data from server to in client machine..
> > > 
> > > On Wednesday, March 20, 2013 3:50:44 AM UTC+5:30, Igor Motov wrote:
> > > 
> > > > You need to specify cluster name when you create transport client. See the second example in the Transport Client section on this page [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)
> > > > 
> > > > On Tuesday, March 19, 2013 5:10:28 AM UTC-4, srikanth gone wrote:
> > > > 
> > > > > Hi All,
> > > > > 
> > > > > i am getting no node found exception in my linux remote server
> > > > > 
> > > > > my xml  
> > > > > \<elasticsearch:node id="esNode" /\>  
> > > > > \<elasticsearch:client node="esNode" id="esClient" /\>
> > > > > 
> > > > > this is java code
> > > > > 
> > > > > Client client = new TransportClient()  
> > > > > .addTransportAddress(new InetSocketTransportAddress("localhost", 9300))  
> > > > > .addTransportAddress(new InetSocketTransportAddress("10.0.0.12", 9300));
> > > > > 
> > > > > SearchResponse response = null;  
> > > > > response = client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > > > > .setTypes("DC\_USER").execute().actionGet();
> > > > > 
> > > > > SearchHit results = response.getHits().getHits();  
> > > > > if(results.length != 0){  
> > > > > result = new HashMap\<String, Object\>();  
> > > > > list = new ArrayList();  
> > > > > }  
> > > > > int count = 0;
> > > > > 
> > > > > ```
> > > > > for (SearchHit hit : results) {
> > > > > result.put(""+count, hit.getSource()); // the retrieved document
> > > > > list.add(hit.getSource());
> > > > > count++;
> > > > > }
> > > > > 
> > > > > ```
> > > > > 
> > > > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > > > 
> > > > > {  
> > > > > "cluster\_name" : "Data\_Cluster",  
> > > > > "status" : "yellow",  
> > > > > "timed\_out" : false,  
> > > > > "number\_of\_nodes" : 1,  
> > > > > "number\_of\_data\_nodes" : 1,  
> > > > > "active\_primary\_shards" : 87,  
> > > > > "active\_shards" : 87,  
> > > > > "relocating\_shards" : 0,  
> > > > > "initializing\_shards" : 0,  
> > > > > "unassigned\_shards" : 86  
> > > > > }
> > > > > 
> > > > > it is getting exception in linux macine.. index not found exception
> > > > > 
> > > > > status of index is success  
> > > > > [http://10.0.0.12:9200/dc\_user\_idx/\_status?pretty](http://10.0.0.12:9200/dc_user_idx/_status?pretty)
> > > > > 
> > > > > {  
> > > > > "ok" : true,  
> > > > > "\_shards" : {  
> > > > > "total" : 10,  
> > > > > "successful" : 5,  
> > > > > "failed" : 0  
> > > > > },  
> > > > > "indices" : {  
> > > > > "dc\_user\_idx" : {  
> > > > > "index" : {  
> > > > > "primary\_size" : "306kb",  
> > > > > "primary\_size\_in\_bytes" : 313373,  
> > > > > "size" : "306kb",  
> > > > > "size\_in\_bytes" : 313373  
> > > > > },  
> > > > > .....
> > > > > 
> > > > > i have not configured any manual settings  
> > > > > please help me.. is there any thing missing..  
> > > > > --  
> > > > > 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:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 21, 2013, 9:45am UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/8 "2013-03-21T09:45:21Z")

</div>

Hi David..

i have tried to install Elasticsearch version 0.20.3.. earlier i am having  
version 19.8

now i am not able to create indexes.. i getting exception..

java.io.StreamCorruptedException: invalid internal transport message format

is there any thing missing.?

On Wednesday, March 20, 2013 4:31:16 PM UTC+5:30, David Pilato wrote:

> YES!
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 20 mars 2013 à 11:59, srikanth gone \<[srika...@gmail.com](mailto:srika...@gmail.com) \<javascript:\>\>  
> a écrit :
> 
> in my remote server.. elasticserver version 0.20.3
> 
> in my local machine. elastic server version is 0.19.8
> 
> is there any compatible problem with this..
> 
> On Wednesday, March 20, 2013 4:08:55 PM UTC+5:30, srikanth gone wrote:
> 
> > hi Igor  
> > actually i have removed that one..  
> > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > 
> > {  
> > "cluster\_name" : "elasticsearch",  
> > "status" : "yellow",  
> > "timed\_out" : false,  
> > "number\_of\_nodes" : 1,  
> > "number\_of\_data\_nodes" : 1,  
> > "active\_primary\_shards" : 96,  
> > "active\_shards" : 96,  
> > "relocating\_shards" : 0,  
> > "initializing\_shards" : 0,  
> > "unassigned\_shards" : 96  
> > }
> > 
> > On Wednesday, March 20, 2013 4:02:09 PM UTC+5:30, Igor Motov wrote:
> > 
> > > In your example the cluster name is "Data\_Cluster" not "elasticsearch".
> > > 
> > > On Wednesday, March 20, 2013 6:26:12 AM UTC-4, srikanth gone wrote:
> > > 
> > > > Hi Igor,
> > > > 
> > > > i have used cluster name as "elasticsearch".. and
> > > > 
> > > > Settings settings = ImmutableSettings.settingsBuilder()  
> > > > // .put("cluster.name", "elasticsearch") // i am using  
> > > > default cluster.  
> > > > .put("client.transport.sniff", false).build();
> > > > 
> > > > Client client = new TransportClient(settings)  
> > > > // .addTransportAddress(new  
> > > > InetSocketTransportAddress("192.168.10.2", 9300))  
> > > > .addTransportAddress(new InetSocketTransportAddress("10.0.0.12",  
> > > > 9300));
> > > > 
> > > > is there any chance to fetch data from server to in client machine..
> > > > 
> > > > On Wednesday, March 20, 2013 3:50:44 AM UTC+5:30, Igor Motov wrote:
> > > > 
> > > > > You need to specify cluster name when you create transport client. See  
> > > > > the second example in the Transport Client section on this page  
> > > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)
> > > > > 
> > > > > On Tuesday, March 19, 2013 5:10:28 AM UTC-4, srikanth gone wrote:
> > > > > 
> > > > > > Hi All,
> > > > > > 
> > > > > > i am getting no node found exception in my linux remote server
> > > > > > 
> > > > > > my xml  
> > > > > > \<elasticsearch:node id="esNode" /\>  
> > > > > > \<elasticsearch:client node="esNode" id="esClient" /\>
> > > > > > 
> > > > > > this is java code
> > > > > > 
> > > > > > Client client = new TransportClient()  
> > > > > > .addTransportAddress(new  
> > > > > > InetSocketTransportAddress("localhost", 9300))  
> > > > > > .addTransportAddress(new  
> > > > > > InetSocketTransportAddress("10.0.0.12", 9300));
> > > > > > 
> > > > > > SearchResponse response = null;  
> > > > > > response =  
> > > > > > client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > > > > > .setTypes("DC\_USER").execute().actionGet();
> > > > > > 
> > > > > > SearchHit results = response.getHits().getHits();  
> > > > > > if(results.length != 0){  
> > > > > > result = new HashMap\<String, Object\>();  
> > > > > > list = new ArrayList();  
> > > > > > }  
> > > > > > int count = 0;
> > > > > > 
> > > > > > ```
> > > > > > for (SearchHit hit : results) {
> > > > > > result.put(""+count, hit.getSource()); // the retrieved 
> > > > > > 
> > > > > > ```
> > > > > > 
> > > > > > document  
> > > > > > list.add(hit.getSource());  
> > > > > > count++;  
> > > > > > }
> > > > > > 
> > > > > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > > > > 
> > > > > > {  
> > > > > > "cluster\_name" : "Data\_Cluster",  
> > > > > > "status" : "yellow",  
> > > > > > "timed\_out" : false,  
> > > > > > "number\_of\_nodes" : 1,  
> > > > > > "number\_of\_data\_nodes" : 1,  
> > > > > > "active\_primary\_shards" : 87,  
> > > > > > "active\_shards" : 87,  
> > > > > > "relocating\_shards" : 0,  
> > > > > > "initializing\_shards" : 0,  
> > > > > > "unassigned\_shards" : 86  
> > > > > > }
> > > > > > 
> > > > > > it is getting exception in linux macine.. index not found exception
> > > > > > 
> > > > > > status of index is success  
> > > > > > [http://10.0.0.12:9200/dc\_user\_idx/\_status?pretty](http://10.0.0.12:9200/dc_user_idx/_status?pretty)
> > > > > > 
> > > > > > {  
> > > > > > "ok" : true,  
> > > > > > "\_shards" : {  
> > > > > > "total" : 10,  
> > > > > > "successful" : 5,  
> > > > > > "failed" : 0  
> > > > > > },  
> > > > > > "indices" : {  
> > > > > > "dc\_user\_idx" : {  
> > > > > > "index" : {  
> > > > > > "primary\_size" : "306kb",  
> > > > > > "primary\_size\_in\_bytes" : 313373,  
> > > > > > "size" : "306kb",  
> > > > > > "size\_in\_bytes" : 313373  
> > > > > > },  
> > > > > > .....
> > > > > > 
> > > > > > i have not configured any manual settings  
> > > > > > please help me.. is there any thing missing..
> > > > > > 
> > > > > > --  
> > > > > > 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:** ![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:** [March 21, 2013, 10:11am UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/9 "2013-03-21T10:11:39Z")

</div>

what gives the following command?  
curl 10.0.0.12

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 21 mars 2013 à 10:45, srikanth gone [srikanthg93@gmail.com](mailto:srikanthg93@gmail.com) a écrit :

> Hi David..
> 
> i have tried to install Elasticsearch version 0.20.3.. earlier i am having version 19.8
> 
> now i am not able to create indexes.. i getting exception..
> 
> java.io.StreamCorruptedException: invalid internal transport message format
> 
> is there any thing missing.?
> 
> On Wednesday, March 20, 2013 4:31:16 PM UTC+5:30, David Pilato wrote:  
> YES!
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 20 mars 2013 à 11:59, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> 
> in my remote server.. elasticserver version 0.20.3
> 
> in my local machine. elastic server version is 0.19.8
> 
> is there any compatible problem with this..
> 
> On Wednesday, March 20, 2013 4:08:55 PM UTC+5:30, srikanth gone wrote:  
> hi Igor  
> actually i have removed that one..  
> [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> 
> {  
> "cluster\_name" : "elasticsearch",  
> "status" : "yellow",  
> "timed\_out" : false,  
> "number\_of\_nodes" : 1,  
> "number\_of\_data\_nodes" : 1,  
> "active\_primary\_shards" : 96,  
> "active\_shards" : 96,  
> "relocating\_shards" : 0,  
> "initializing\_shards" : 0,  
> "unassigned\_shards" : 96  
> }
> 
> On Wednesday, March 20, 2013 4:02:09 PM UTC+5:30, Igor Motov wrote:  
> In your example the cluster name is "Data\_Cluster" not "elasticsearch".
> 
> On Wednesday, March 20, 2013 6:26:12 AM UTC-4, srikanth gone wrote:  
> Hi Igor,
> 
> i have used cluster name as "elasticsearch".. and
> 
> Settings settings = ImmutableSettings.settingsBuilder()  
> // .put("cluster.name", "elasticsearch") // i am using default cluster.  
> .put("client.transport.sniff", false).build();
> 
> Client client = new TransportClient(settings)  
> // .addTransportAddress(new InetSocketTransportAddress("192.168.10.2", 9300))  
> .addTransportAddress(new InetSocketTransportAddress("10.0.0.12", 9300));
> 
> is there any chance to fetch data from server to in client machine..
> 
> On Wednesday, March 20, 2013 3:50:44 AM UTC+5:30, Igor Motov wrote:  
> You need to specify cluster name when you create transport client. See the second example in the Transport Client section on this page [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)
> 
> On Tuesday, March 19, 2013 5:10:28 AM UTC-4, srikanth gone wrote:
> 
> Hi All,
> 
> i am getting no node found exception in my linux remote server
> 
> my xml  
> \<elasticsearch:node id="esNode" /\>  
> \<elasticsearch:client node="esNode" id="esClient" /\>
> 
> this is java code
> 
> Client client = new TransportClient()  
> .addTransportAddress(new InetSocketTransportAddress("localhost", 9300))  
> .addTransportAddress(new InetSocketTransportAddress("10.0.0.12", 9300));
> 
> SearchResponse response = null;  
> response = client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> .setTypes("DC\_USER").execute().actionGet();
> 
> SearchHit results = response.getHits().getHits();  
> if(results.length != 0){  
> result = new HashMap\<String, Object\>();  
> list = new ArrayList();  
> }  
> int count = 0;
> 
> ```
> for (SearchHit hit : results) {
> result.put(""+count, hit.getSource()); // the retrieved document
> list.add(hit.getSource());
> count++;
> }
> 
> ```
> 
> [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> 
> {  
> "cluster\_name" : "Data\_Cluster",  
> "status" : "yellow",  
> "timed\_out" : false,  
> "number\_of\_nodes" : 1,  
> "number\_of\_data\_nodes" : 1,  
> "active\_primary\_shards" : 87,  
> "active\_shards" : 87,  
> "relocating\_shards" : 0,  
> "initializing\_shards" : 0,  
> "unassigned\_shards" : 86  
> }
> 
> it is getting exception in linux macine.. index not found exception
> 
> status of index is success  
> [http://10.0.0.12:9200/dc\_user\_idx/\_status?pretty](http://10.0.0.12:9200/dc_user_idx/_status?pretty)
> 
> {  
> "ok" : true,  
> "\_shards" : {  
> "total" : 10,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "indices" : {  
> "dc\_user\_idx" : {  
> "index" : {  
> "primary\_size" : "306kb",  
> "primary\_size\_in\_bytes" : 313373,  
> "size" : "306kb",  
> "size\_in\_bytes" : 313373  
> },  
> .....
> 
> i have not configured any manual settings  
> please help me.. is there any thing missing..
> 
> --  
> 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).  
> 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:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 21, 2013, 10:40am UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/10 "2013-03-21T10:40:30Z")

</div>

HI David..

curl: (7) Failed connect to 10.0.0.12:80; No error

On Thursday, March 21, 2013 3:41:39 PM UTC+5:30, David Pilato wrote:

> what gives the following command?  
> curl 10.0.0.12
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 21 mars 2013 à 10:45, srikanth gone \<[srika...@gmail.com](mailto:srika...@gmail.com) \<javascript:\>\>  
> a écrit :
> 
> Hi David..
> 
> i have tried to install Elasticsearch version 0.20.3.. earlier i am  
> having version 19.8
> 
> now i am not able to create indexes.. i getting exception..
> 
> java.io.StreamCorruptedException: invalid internal transport message format
> 
> is there any thing missing.?
> 
> On Wednesday, March 20, 2013 4:31:16 PM UTC+5:30, David Pilato wrote:
> 
> > YES!
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 20 mars 2013 à 11:59, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > 
> > in my remote server.. elasticserver version 0.20.3
> > 
> > in my local machine. elastic server version is 0.19.8
> > 
> > is there any compatible problem with this..
> > 
> > On Wednesday, March 20, 2013 4:08:55 PM UTC+5:30, srikanth gone wrote:
> > 
> > > hi Igor  
> > > actually i have removed that one..  
> > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > 
> > > {  
> > > "cluster\_name" : "elasticsearch",  
> > > "status" : "yellow",  
> > > "timed\_out" : false,  
> > > "number\_of\_nodes" : 1,  
> > > "number\_of\_data\_nodes" : 1,  
> > > "active\_primary\_shards" : 96,  
> > > "active\_shards" : 96,  
> > > "relocating\_shards" : 0,  
> > > "initializing\_shards" : 0,  
> > > "unassigned\_shards" : 96  
> > > }
> > > 
> > > On Wednesday, March 20, 2013 4:02:09 PM UTC+5:30, Igor Motov wrote:
> > > 
> > > > In your example the cluster name is "Data\_Cluster" not "elasticsearch".
> > > > 
> > > > On Wednesday, March 20, 2013 6:26:12 AM UTC-4, srikanth gone wrote:
> > > > 
> > > > > Hi Igor,
> > > > > 
> > > > > i have used cluster name as "elasticsearch".. and
> > > > > 
> > > > > Settings settings = ImmutableSettings.settingsBuilder()  
> > > > > // .put("cluster.name", "elasticsearch") // i am using  
> > > > > default cluster.  
> > > > > .put("client.transport.sniff", false).build();
> > > > > 
> > > > > Client client = new TransportClient(settings)  
> > > > > // .addTransportAddress(new  
> > > > > InetSocketTransportAddress("192.168.10.2", 9300))  
> > > > > .addTransportAddress(new InetSocketTransportAddress("10.0.0.12",  
> > > > > 9300));
> > > > > 
> > > > > is there any chance to fetch data from server to in client machine..
> > > > > 
> > > > > On Wednesday, March 20, 2013 3:50:44 AM UTC+5:30, Igor Motov wrote:
> > > > > 
> > > > > > You need to specify cluster name when you create transport client.  
> > > > > > See the second example in the Transport Client section on this page  
> > > > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)
> > > > > > 
> > > > > > On Tuesday, March 19, 2013 5:10:28 AM UTC-4, srikanth gone wrote:
> > > > > > 
> > > > > > > Hi All,
> > > > > > > 
> > > > > > > i am getting no node found exception in my linux remote server
> > > > > > > 
> > > > > > > my xml  
> > > > > > > \<elasticsearch:node id="esNode" /\>  
> > > > > > > \<elasticsearch:client node="esNode" id="esClient" /\>
> > > > > > > 
> > > > > > > this is java code
> > > > > > > 
> > > > > > > Client client = new TransportClient()  
> > > > > > > .addTransportAddress(new  
> > > > > > > InetSocketTransportAddress("localhost", 9300))  
> > > > > > > .addTransportAddress(new  
> > > > > > > InetSocketTransportAddress("10.0.0.12", 9300));
> > > > > > > 
> > > > > > > SearchResponse response = null;  
> > > > > > > response =  
> > > > > > > client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > > > > > > .setTypes("DC\_USER").execute().actionGet();
> > > > > > > 
> > > > > > > SearchHit results = response.getHits().getHits();  
> > > > > > > if(results.length != 0){  
> > > > > > > result = new HashMap\<String, Object\>();  
> > > > > > > list = new ArrayList();  
> > > > > > > }  
> > > > > > > int count = 0;
> > > > > > > 
> > > > > > > ```
> > > > > > > for (SearchHit hit : results) {
> > > > > > > result.put(""+count, hit.getSource()); // the retrieved 
> > > > > > > 
> > > > > > > ```
> > > > > > > 
> > > > > > > document  
> > > > > > > list.add(hit.getSource());  
> > > > > > > count++;  
> > > > > > > }
> > > > > > > 
> > > > > > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > > > > > 
> > > > > > > {  
> > > > > > > "cluster\_name" : "Data\_Cluster",  
> > > > > > > "status" : "yellow",  
> > > > > > > "timed\_out" : false,  
> > > > > > > "number\_of\_nodes" : 1,  
> > > > > > > "number\_of\_data\_nodes" : 1,  
> > > > > > > "active\_primary\_shards" : 87,  
> > > > > > > "active\_shards" : 87,  
> > > > > > > "relocating\_shards" : 0,  
> > > > > > > "initializing\_shards" : 0,  
> > > > > > > "unassigned\_shards" : 86  
> > > > > > > }
> > > > > > > 
> > > > > > > it is getting exception in linux macine.. index not found exception
> > > > > > > 
> > > > > > > status of index is success  
> > > > > > > [http://10.0.0.12:9200/dc\_user\_idx/\_status?pretty](http://10.0.0.12:9200/dc_user_idx/_status?pretty)
> > > > > > > 
> > > > > > > {  
> > > > > > > "ok" : true,  
> > > > > > > "\_shards" : {  
> > > > > > > "total" : 10,  
> > > > > > > "successful" : 5,  
> > > > > > > "failed" : 0  
> > > > > > > },  
> > > > > > > "indices" : {  
> > > > > > > "dc\_user\_idx" : {  
> > > > > > > "index" : {  
> > > > > > > "primary\_size" : "306kb",  
> > > > > > > "primary\_size\_in\_bytes" : 313373,  
> > > > > > > "size" : "306kb",  
> > > > > > > "size\_in\_bytes" : 313373  
> > > > > > > },  
> > > > > > > .....
> > > > > > > 
> > > > > > > i have not configured any manual settings  
> > > > > > > please help me.. is there any thing missing..
> > 
> > --  
> > 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).  
> > 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:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 21, 2013, 11:55am UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/11 "2013-03-21T11:55:24Z")

</div>

David..

i ll explain you briefly  
earlier actually in my local system having application with Elasticsearch  
0.19.8.. it is working fine..

in my remote server there is application with elastic server 0.20.3 if i  
search text it is working fine...

my intention is to access remote elastic server as well as local elastic  
server from my local machine..

so there is compatability problem (you suggested earlier ).. so i have  
changed Elasticsearch version 0.20.3 and added mongo river (1.6.1)..

now i am able to create indexes.. in my local system.. is there any  
additional configuration required.

i am running bat file to create indexes.. after run the bat file.. i am  
not able to any index in elasticserver data folder

localhost:9200

{  
"ok" : true,  
"status" : 200,  
"name" : "Nebulo",  
"version" : {  
"number" : "0.20.3",  
"snapshot\_build" : false  
},  
"tagline" : "You Know, for Search"  
}

[http://localhost:9200/\_cluster/health?pretty=true](http://localhost:9200/_cluster/health?pretty=true)  
{  
"cluster\_name" : "elasticsearch",  
"status" : "yellow",  
"timed\_out" : false,  
"number\_of\_nodes" : 1,  
"number\_of\_data\_nodes" : 1,  
"active\_primary\_shards" : 1,  
"active\_shards" : 1,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 1  
}

[http://localhost:9200/\_status?pretty=true](http://localhost:9200/_status?pretty=true)

{  
"ok" : true,  
"\_shards" : {  
"total" : 2,  
"successful" : 1,  
"failed" : 0  
},  
"indices" : {  
"\_river" : {  
"index" : {  
"primary\_size" : "77.2kb",  
"primary\_size\_in\_bytes" : 79129,  
"size" : "77.2kb",  
"size\_in\_bytes" : 79129  
},  
"translog" : {  
"operations" : 0  
},  
"docs" : {  
"num\_docs" : 36,  
"max\_doc" : 207,  
"deleted\_docs" : 171  
},  
"merges" : {  
"current" : 0,  
"current\_docs" : 0,  
"current\_size" : "0b",  
"current\_size\_in\_bytes" : 0,  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0,  
"total\_docs" : 0,  
"total\_size" : "0b",  
"total\_size\_in\_bytes" : 0  
},  
"refresh" : {  
"total" : 2,  
"total\_time" : "59ms",  
"total\_time\_in\_millis" : 59  
},  
"flush" : {  
"total" : 2,  
"total\_time" : "230ms",  
"total\_time\_in\_millis" : 230  
},  
"shards" : {  
"0" : [ {  
"routing" : {  
"state" : "STARTED",  
"primary" : true,  
"node" : "8KMMNVGfTvm7hOMv-gk5Pw",  
"relocating\_node" : null,  
"shard" : 0,  
"index" : "\_river"  
},  
"state" : "STARTED",  
"index" : {  
"size" : "77.2kb",  
"size\_in\_bytes" : 79129  
},  
"translog" : {  
"id" : 1363859753797,  
"operations" : 0  
},  
"docs" : {  
"num\_docs" : 36,  
"max\_doc" : 207,  
"deleted\_docs" : 171  
},  
"merges" : {  
"current" : 0,  
"current\_docs" : 0,  
"current\_size" : "0b",  
"current\_size\_in\_bytes" : 0,  
"total" : 0,  
"total\_time" : "0s",  
"total\_time\_in\_millis" : 0,  
"total\_docs" : 0,  
"total\_size" : "0b",  
"total\_size\_in\_bytes" : 0  
},  
"refresh" : {  
"total" : 2,  
"total\_time" : "59ms",  
"total\_time\_in\_millis" : 59  
},  
"flush" : {  
"total" : 2,  
"total\_time" : "230ms",  
"total\_time\_in\_millis" : 230  
}  
} ]  
}  
}  
}  
}

please help me..

On Thursday, March 21, 2013 4:10:30 PM UTC+5:30, srikanth gone wrote:

> HI David..
> 
> curl: (7) Failed connect to 10.0.0.12:80; No error
> 
> On Thursday, March 21, 2013 3:41:39 PM UTC+5:30, David Pilato wrote:
> 
> > what gives the following command?  
> > curl 10.0.0.12
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 21 mars 2013 à 10:45, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > 
> > Hi David..
> > 
> > i have tried to install Elasticsearch version 0.20.3.. earlier i am  
> > having version 19.8
> > 
> > now i am not able to create indexes.. i getting exception..
> > 
> > java.io.StreamCorruptedException: invalid internal transport message  
> > format
> > 
> > is there any thing missing.?
> > 
> > On Wednesday, March 20, 2013 4:31:16 PM UTC+5:30, David Pilato wrote:
> > 
> > > YES!
> > > 
> > > --  
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 20 mars 2013 à 11:59, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > > 
> > > in my remote server.. elasticserver version 0.20.3
> > > 
> > > in my local machine. elastic server version is 0.19.8
> > > 
> > > is there any compatible problem with this..
> > > 
> > > On Wednesday, March 20, 2013 4:08:55 PM UTC+5:30, srikanth gone wrote:
> > > 
> > > > hi Igor  
> > > > actually i have removed that one..  
> > > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > > 
> > > > {  
> > > > "cluster\_name" : "elasticsearch",  
> > > > "status" : "yellow",  
> > > > "timed\_out" : false,  
> > > > "number\_of\_nodes" : 1,  
> > > > "number\_of\_data\_nodes" : 1,  
> > > > "active\_primary\_shards" : 96,  
> > > > "active\_shards" : 96,  
> > > > "relocating\_shards" : 0,  
> > > > "initializing\_shards" : 0,  
> > > > "unassigned\_shards" : 96  
> > > > }
> > > > 
> > > > On Wednesday, March 20, 2013 4:02:09 PM UTC+5:30, Igor Motov wrote:
> > > > 
> > > > > In your example the cluster name is "Data\_Cluster" not  
> > > > > "elasticsearch".
> > > > > 
> > > > > On Wednesday, March 20, 2013 6:26:12 AM UTC-4, srikanth gone wrote:
> > > > > 
> > > > > > Hi Igor,
> > > > > > 
> > > > > > i have used cluster name as "elasticsearch".. and
> > > > > > 
> > > > > > Settings settings = ImmutableSettings.settingsBuilder()  
> > > > > > // .put("cluster.name", "elasticsearch") // i am using  
> > > > > > default cluster.  
> > > > > > .put("client.transport.sniff", false).build();
> > > > > > 
> > > > > > Client client = new TransportClient(settings)  
> > > > > > // .addTransportAddress(new  
> > > > > > InetSocketTransportAddress("192.168.10.2", 9300))  
> > > > > > .addTransportAddress(new  
> > > > > > InetSocketTransportAddress("10.0.0.12", 9300));
> > > > > > 
> > > > > > is there any chance to fetch data from server to in client machine..
> > > > > > 
> > > > > > On Wednesday, March 20, 2013 3:50:44 AM UTC+5:30, Igor Motov wrote:
> > > > > > 
> > > > > > > You need to specify cluster name when you create transport client.  
> > > > > > > See the second example in the Transport Client section on this page  
> > > > > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)
> > > > > > > 
> > > > > > > On Tuesday, March 19, 2013 5:10:28 AM UTC-4, srikanth gone wrote:
> > > > > > > 
> > > > > > > > Hi All,
> > > > > > > > 
> > > > > > > > i am getting no node found exception in my linux remote server
> > > > > > > > 
> > > > > > > > my xml  
> > > > > > > > \<elasticsearch:node id="esNode" /\>  
> > > > > > > > \<elasticsearch:client node="esNode" id="esClient" /\>
> > > > > > > > 
> > > > > > > > this is java code
> > > > > > > > 
> > > > > > > > Client client = new TransportClient()  
> > > > > > > > .addTransportAddress(new  
> > > > > > > > InetSocketTransportAddress("localhost", 9300))  
> > > > > > > > .addTransportAddress(new  
> > > > > > > > InetSocketTransportAddress("10.0.0.12", 9300));
> > > > > > > > 
> > > > > > > > SearchResponse response = null;  
> > > > > > > > response =  
> > > > > > > > client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > > > > > > > .setTypes("DC\_USER").execute().actionGet();
> > > > > > > > 
> > > > > > > > SearchHit results = response.getHits().getHits();  
> > > > > > > > if(results.length != 0){  
> > > > > > > > result = new HashMap\<String, Object\>();  
> > > > > > > > list = new ArrayList();  
> > > > > > > > }  
> > > > > > > > int count = 0;
> > > > > > > > 
> > > > > > > > ```
> > > > > > > > for (SearchHit hit : results) {
> > > > > > > > result.put(""+count, hit.getSource()); // the retrieved 
> > > > > > > > 
> > > > > > > > ```
> > > > > > > > 
> > > > > > > > document  
> > > > > > > > list.add(hit.getSource());  
> > > > > > > > count++;  
> > > > > > > > }
> > > > > > > > 
> > > > > > > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > > > > > > 
> > > > > > > > {  
> > > > > > > > "cluster\_name" : "Data\_Cluster",  
> > > > > > > > "status" : "yellow",  
> > > > > > > > "timed\_out" : false,  
> > > > > > > > "number\_of\_nodes" : 1,  
> > > > > > > > "number\_of\_data\_nodes" : 1,  
> > > > > > > > "active\_primary\_shards" : 87,  
> > > > > > > > "active\_shards" : 87,  
> > > > > > > > "relocating\_shards" : 0,  
> > > > > > > > "initializing\_shards" : 0,  
> > > > > > > > "unassigned\_shards" : 86  
> > > > > > > > }
> > > > > > > > 
> > > > > > > > it is getting exception in linux macine.. index not found exception
> > > > > > > > 
> > > > > > > > status of index is success  
> > > > > > > > [http://10.0.0.12:9200/dc\_user\_idx/\_status?pretty](http://10.0.0.12:9200/dc_user_idx/_status?pretty)
> > > > > > > > 
> > > > > > > > {  
> > > > > > > > "ok" : true,  
> > > > > > > > "\_shards" : {  
> > > > > > > > "total" : 10,  
> > > > > > > > "successful" : 5,  
> > > > > > > > "failed" : 0  
> > > > > > > > },  
> > > > > > > > "indices" : {  
> > > > > > > > "dc\_user\_idx" : {  
> > > > > > > > "index" : {  
> > > > > > > > "primary\_size" : "306kb",  
> > > > > > > > "primary\_size\_in\_bytes" : 313373,  
> > > > > > > > "size" : "306kb",  
> > > > > > > > "size\_in\_bytes" : 313373  
> > > > > > > > },  
> > > > > > > > .....
> > > > > > > > 
> > > > > > > > i have not configured any manual settings  
> > > > > > > > please help me.. is there any thing missing..
> > > 
> > > --  
> > > 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).  
> > > 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).  
> > 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:** [March 21, 2013, 2:36pm UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/12 "2013-03-21T14:36:39Z")

</div>

Sorry. I meant:  
curl 10.0.0.12:9200

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 21 mars 2013 à 11:40, srikanth gone [srikanthg93@gmail.com](mailto:srikanthg93@gmail.com) a écrit :

> HI David..
> 
> curl: (7) Failed connect to 10.0.0.12:80; No error
> 
> On Thursday, March 21, 2013 3:41:39 PM UTC+5:30, David Pilato wrote:  
> what gives the following command?  
> curl 10.0.0.12
> 
> --  
> David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> @dadoonet | @elasticsearchfr | @scrutmydocs
> 
> Le 21 mars 2013 à 10:45, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> 
> > Hi David..
> > 
> > i have tried to install Elasticsearch version 0.20.3.. earlier i am having version 19.8
> > 
> > now i am not able to create indexes.. i getting exception..
> > 
> > java.io.StreamCorruptedException: invalid internal transport message format
> > 
> > is there any thing missing.?
> > 
> > On Wednesday, March 20, 2013 4:31:16 PM UTC+5:30, David Pilato wrote:  
> > YES!
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 20 mars 2013 à 11:59, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > 
> > in my remote server.. elasticserver version 0.20.3
> > 
> > in my local machine. elastic server version is 0.19.8
> > 
> > is there any compatible problem with this..
> > 
> > On Wednesday, March 20, 2013 4:08:55 PM UTC+5:30, srikanth gone wrote:  
> > hi Igor  
> > actually i have removed that one..  
> > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > 
> > {  
> > "cluster\_name" : "elasticsearch",  
> > "status" : "yellow",  
> > "timed\_out" : false,  
> > "number\_of\_nodes" : 1,  
> > "number\_of\_data\_nodes" : 1,  
> > "active\_primary\_shards" : 96,  
> > "active\_shards" : 96,  
> > "relocating\_shards" : 0,  
> > "initializing\_shards" : 0,  
> > "unassigned\_shards" : 96  
> > }
> > 
> > On Wednesday, March 20, 2013 4:02:09 PM UTC+5:30, Igor Motov wrote:  
> > In your example the cluster name is "Data\_Cluster" not "elasticsearch".
> > 
> > On Wednesday, March 20, 2013 6:26:12 AM UTC-4, srikanth gone wrote:  
> > Hi Igor,
> > 
> > i have used cluster name as "elasticsearch".. and
> > 
> > Settings settings = ImmutableSettings.settingsBuilder()  
> > // .put("cluster.name", "elasticsearch") // i am using default cluster.  
> > .put("client.transport.sniff", false).build();
> > 
> > Client client = new TransportClient(settings)  
> > // .addTransportAddress(new InetSocketTransportAddress("192.168.10.2", 9300))  
> > .addTransportAddress(new InetSocketTransportAddress("10.0.0.12", 9300));
> > 
> > is there any chance to fetch data from server to in client machine..
> > 
> > On Wednesday, March 20, 2013 3:50:44 AM UTC+5:30, Igor Motov wrote:  
> > You need to specify cluster name when you create transport client. See the second example in the Transport Client section on this page [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)
> > 
> > On Tuesday, March 19, 2013 5:10:28 AM UTC-4, srikanth gone wrote:
> > 
> > Hi All,
> > 
> > i am getting no node found exception in my linux remote server
> > 
> > my xml  
> > \<elasticsearch:node id="esNode" /\>  
> > \<elasticsearch:client node="esNode" id="esClient" /\>
> > 
> > this is java code
> > 
> > Client client = new TransportClient()  
> > .addTransportAddress(new InetSocketTransportAddress("localhost", 9300))  
> > .addTransportAddress(new InetSocketTransportAddress("10.0.0.12", 9300));
> > 
> > SearchResponse response = null;  
> > response = client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > .setTypes("DC\_USER").execute().actionGet();
> > 
> > SearchHit results = response.getHits().getHits();  
> > if(results.length != 0){  
> > result = new HashMap\<String, Object\>();  
> > list = new ArrayList();  
> > }  
> > int count = 0;
> > 
> > ```
> > for (SearchHit hit : results) {
> > result.put(""+count, hit.getSource()); // the retrieved document
> > list.add(hit.getSource());
> > count++;
> > }
> > 
> > ```
> > 
> > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > 
> > {  
> > "cluster\_name" : "Data\_Cluster",  
> > "status" : "yellow",  
> > "timed\_out" : false,  
> > "number\_of\_nodes" : 1,  
> > "number\_of\_data\_nodes" : 1,  
> > "active\_primary\_shards" : 87,  
> > "active\_shards" : 87,  
> > "relocating\_shards" : 0,  
> > "initializing\_shards" : 0,  
> > "unassigned\_shards" : 86  
> > }
> > 
> > it is getting exception in linux macine.. index not found exception
> > 
> > status of index is success  
> > [http://10.0.0.12:9200/dc\_user\_idx/\_status?pretty](http://10.0.0.12:9200/dc_user_idx/_status?pretty)
> > 
> > {  
> > "ok" : true,  
> > "\_shards" : {  
> > "total" : 10,  
> > "successful" : 5,  
> > "failed" : 0  
> > },  
> > "indices" : {  
> > "dc\_user\_idx" : {  
> > "index" : {  
> > "primary\_size" : "306kb",  
> > "primary\_size\_in\_bytes" : 313373,  
> > "size" : "306kb",  
> > "size\_in\_bytes" : 313373  
> > },  
> > .....
> > 
> > i have not configured any manual settings  
> > please help me.. is there any thing missing..
> > 
> > --  
> > 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).  
> > 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).  
> > 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:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 21, 2013, 2:41pm UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/13 "2013-03-21T14:41:55Z")

</div>

curl 10.0.0.12:9200  
output:  
{  
"ok" : true,  
"status" : 200,  
"name" : "van Lunt, Cornelius",  
"version" : {  
"number" : "0.20.3",  
"snapshot\_build" : false  
},  
"tagline" : "You Know, for Search"  
}

On Thursday, March 21, 2013 8:06:39 PM UTC+5:30, David Pilato wrote:

> Sorry. I meant:  
> curl 10.0.0.12:9200
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 21 mars 2013 à 11:40, srikanth gone \<[srika...@gmail.com](mailto:srika...@gmail.com) \<javascript:\>\>  
> a écrit :
> 
> HI David..
> 
> curl: (7) Failed connect to 10.0.0.12:80; No error
> 
> On Thursday, March 21, 2013 3:41:39 PM UTC+5:30, David Pilato wrote:
> 
> > what gives the following command?  
> > curl 10.0.0.12
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > \*  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 21 mars 2013 à 10:45, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > 
> > Hi David..
> > 
> > i have tried to install Elasticsearch version 0.20.3.. earlier i am  
> > having version 19.8
> > 
> > now i am not able to create indexes.. i getting exception..
> > 
> > java.io.StreamCorruptedException: invalid internal transport message  
> > format
> > 
> > is there any thing missing.?
> > 
> > On Wednesday, March 20, 2013 4:31:16 PM UTC+5:30, David Pilato wrote:
> > 
> > > YES!
> > > 
> > > --  
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 20 mars 2013 à 11:59, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > > 
> > > in my remote server.. elasticserver version 0.20.3
> > > 
> > > in my local machine. elastic server version is 0.19.8
> > > 
> > > is there any compatible problem with this..
> > > 
> > > On Wednesday, March 20, 2013 4:08:55 PM UTC+5:30, srikanth gone wrote:
> > > 
> > > > hi Igor  
> > > > actually i have removed that one..  
> > > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > > 
> > > > {  
> > > > "cluster\_name" : "elasticsearch",  
> > > > "status" : "yellow",  
> > > > "timed\_out" : false,  
> > > > "number\_of\_nodes" : 1,  
> > > > "number\_of\_data\_nodes" : 1,  
> > > > "active\_primary\_shards" : 96,  
> > > > "active\_shards" : 96,  
> > > > "relocating\_shards" : 0,  
> > > > "initializing\_shards" : 0,  
> > > > "unassigned\_shards" : 96  
> > > > }
> > > > 
> > > > On Wednesday, March 20, 2013 4:02:09 PM UTC+5:30, Igor Motov wrote:
> > > > 
> > > > > In your example the cluster name is "Data\_Cluster" not  
> > > > > "elasticsearch".
> > > > > 
> > > > > On Wednesday, March 20, 2013 6:26:12 AM UTC-4, srikanth gone wrote:
> > > > > 
> > > > > > Hi Igor,
> > > > > > 
> > > > > > i have used cluster name as "elasticsearch".. and
> > > > > > 
> > > > > > Settings settings = ImmutableSettings.settingsBuilder()  
> > > > > > // .put("cluster.name", "elasticsearch") // i am using  
> > > > > > default cluster.  
> > > > > > .put("client.transport.sniff", false).build();
> > > > > > 
> > > > > > Client client = new TransportClient(settings)  
> > > > > > // .addTransportAddress(new  
> > > > > > InetSocketTransportAddress("192.168.10.2", 9300))  
> > > > > > .addTransportAddress(new  
> > > > > > InetSocketTransportAddress("10.0.0.12", 9300));
> > > > > > 
> > > > > > is there any chance to fetch data from server to in client machine..
> > > > > > 
> > > > > > On Wednesday, March 20, 2013 3:50:44 AM UTC+5:30, Igor Motov wrote:
> > > > > > 
> > > > > > > You need to specify cluster name when you create transport client.  
> > > > > > > See the second example in the Transport Client section on this page  
> > > > > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)
> > > > > > > 
> > > > > > > On Tuesday, March 19, 2013 5:10:28 AM UTC-4, srikanth gone wrote:
> > > > > > > 
> > > > > > > > Hi All,
> > > > > > > > 
> > > > > > > > i am getting no node found exception in my linux remote server
> > > > > > > > 
> > > > > > > > my xml  
> > > > > > > > \<elasticsearch:node id="esNode" /\>  
> > > > > > > > \<elasticsearch:client node="esNode" id="esClient" /\>
> > > > > > > > 
> > > > > > > > this is java code
> > > > > > > > 
> > > > > > > > Client client = new TransportClient()  
> > > > > > > > .addTransportAddress(new  
> > > > > > > > InetSocketTransportAddress("localhost", 9300))  
> > > > > > > > .addTransportAddress(new  
> > > > > > > > InetSocketTransportAddress("10.0.0.12", 9300));
> > > > > > > > 
> > > > > > > > SearchResponse response = null;  
> > > > > > > > response =  
> > > > > > > > client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > > > > > > > .setTypes("DC\_USER").execute().actionGet();
> > > > > > > > 
> > > > > > > > SearchHit results = response.getHits().getHits();  
> > > > > > > > if(results.length != 0){  
> > > > > > > > result = new HashMap\<String, Object\>();  
> > > > > > > > list = new ArrayList();  
> > > > > > > > }  
> > > > > > > > int count = 0;
> > > > > > > > 
> > > > > > > > ```
> > > > > > > > for (SearchHit hit : results) {
> > > > > > > > result.put(""+count, hit.getSource()); // the retrieved 
> > > > > > > > 
> > > > > > > > ```
> > > > > > > > 
> > > > > > > > document  
> > > > > > > > list.add(hit.getSource());  
> > > > > > > > count++;  
> > > > > > > > }
> > > > > > > > 
> > > > > > > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > > > > > > 
> > > > > > > > {  
> > > > > > > > "cluster\_name" : "Data\_Cluster",  
> > > > > > > > "status" : "yellow",  
> > > > > > > > "timed\_out" : false,  
> > > > > > > > "number\_of\_nodes" : 1,  
> > > > > > > > "number\_of\_data\_nodes" : 1,  
> > > > > > > > "active\_primary\_shards" : 87,  
> > > > > > > > "active\_shards" : 87,  
> > > > > > > > "relocating\_shards" : 0,  
> > > > > > > > "initializing\_shards" : 0,  
> > > > > > > > "unassigned\_shards" : 86  
> > > > > > > > }
> > > > > > > > 
> > > > > > > > it is getting exception in linux macine.. index not found exception
> > > > > > > > 
> > > > > > > > status of index is success  
> > > > > > > > [http://10.0.0.12:9200/dc\_user\_idx/\_status?pretty](http://10.0.0.12:9200/dc_user_idx/_status?pretty)
> > > > > > > > 
> > > > > > > > {  
> > > > > > > > "ok" : true,  
> > > > > > > > "\_shards" : {  
> > > > > > > > "total" : 10,  
> > > > > > > > "successful" : 5,  
> > > > > > > > "failed" : 0  
> > > > > > > > },  
> > > > > > > > "indices" : {  
> > > > > > > > "dc\_user\_idx" : {  
> > > > > > > > "index" : {  
> > > > > > > > "primary\_size" : "306kb",  
> > > > > > > > "primary\_size\_in\_bytes" : 313373,  
> > > > > > > > "size" : "306kb",  
> > > > > > > > "size\_in\_bytes" : 313373  
> > > > > > > > },  
> > > > > > > > .....
> > > > > > > > 
> > > > > > > > i have not configured any manual settings  
> > > > > > > > please help me.. is there any thing missing..
> > > 
> > > --  
> > > 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).  
> > > 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).  
> > 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:** ![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:** [March 21, 2013, 2:49pm UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/14 "2013-03-21T14:49:22Z")

</div>

So you have a Node running on 10.0.0.12? With elasticsearch cluster name?  
You have also a Node running locally on localhost? With elasticsearch cluster name?

You create a bean with Spring:  
\<elasticsearch:node id="esNode" /\>  
\<elasticsearch:client node="esNode" id="esClient" /\>

Then you are trying to create yourself a TransportClient? Why? Why not just @autowired Client client?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 21 mars 2013 à 15:41, srikanth gone [srikanthg93@gmail.com](mailto:srikanthg93@gmail.com) a écrit :

> curl 10.0.0.12:9200  
> output:  
> {  
> "ok" : true,  
> "status" : 200,  
> "name" : "van Lunt, Cornelius",  
> "version" : {  
> "number" : "0.20.3",  
> "snapshot\_build" : false  
> },  
> "tagline" : "You Know, for Search"  
> }
> 
> On Thursday, March 21, 2013 8:06:39 PM UTC+5:30, David Pilato wrote:  
> Sorry. I meant:  
> curl 10.0.0.12:9200
> 
> --  
> David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> @dadoonet | @elasticsearchfr | @scrutmydocs
> 
> Le 21 mars 2013 à 11:40, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> 
> > HI David..
> > 
> > curl: (7) Failed connect to 10.0.0.12:80; No error
> > 
> > On Thursday, March 21, 2013 3:41:39 PM UTC+5:30, David Pilato wrote:  
> > what gives the following command?  
> > curl 10.0.0.12
> > 
> > --  
> > David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> > @dadoonet | @elasticsearchfr | @scrutmydocs
> > 
> > Le 21 mars 2013 à 10:45, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > 
> > > Hi David..
> > > 
> > > i have tried to install Elasticsearch version 0.20.3.. earlier i am having version 19.8
> > > 
> > > now i am not able to create indexes.. i getting exception..
> > > 
> > > java.io.StreamCorruptedException: invalid internal transport message format
> > > 
> > > is there any thing missing.?
> > > 
> > > On Wednesday, March 20, 2013 4:31:16 PM UTC+5:30, David Pilato wrote:  
> > > YES!
> > > 
> > > --  
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 20 mars 2013 à 11:59, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > > 
> > > in my remote server.. elasticserver version 0.20.3
> > > 
> > > in my local machine. elastic server version is 0.19.8
> > > 
> > > is there any compatible problem with this..
> > > 
> > > On Wednesday, March 20, 2013 4:08:55 PM UTC+5:30, srikanth gone wrote:  
> > > hi Igor  
> > > actually i have removed that one..  
> > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > 
> > > {  
> > > "cluster\_name" : "elasticsearch",  
> > > "status" : "yellow",  
> > > "timed\_out" : false,  
> > > "number\_of\_nodes" : 1,  
> > > "number\_of\_data\_nodes" : 1,  
> > > "active\_primary\_shards" : 96,  
> > > "active\_shards" : 96,  
> > > "relocating\_shards" : 0,  
> > > "initializing\_shards" : 0,  
> > > "unassigned\_shards" : 96  
> > > }
> > > 
> > > On Wednesday, March 20, 2013 4:02:09 PM UTC+5:30, Igor Motov wrote:  
> > > In your example the cluster name is "Data\_Cluster" not "elasticsearch".
> > > 
> > > On Wednesday, March 20, 2013 6:26:12 AM UTC-4, srikanth gone wrote:  
> > > Hi Igor,
> > > 
> > > i have used cluster name as "elasticsearch".. and
> > > 
> > > Settings settings = ImmutableSettings.settingsBuilder()  
> > > // .put("cluster.name", "elasticsearch") // i am using default cluster.  
> > > .put("client.transport.sniff", false).build();
> > > 
> > > Client client = new TransportClient(settings)  
> > > // .addTransportAddress(new InetSocketTransportAddress("192.168.10.2", 9300))  
> > > .addTransportAddress(new InetSocketTransportAddress("10.0.0.12", 9300));
> > > 
> > > is there any chance to fetch data from server to in client machine..
> > > 
> > > On Wednesday, March 20, 2013 3:50:44 AM UTC+5:30, Igor Motov wrote:  
> > > You need to specify cluster name when you create transport client. See the second example in the Transport Client section on this page [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)
> > > 
> > > On Tuesday, March 19, 2013 5:10:28 AM UTC-4, srikanth gone wrote:
> > > 
> > > Hi All,
> > > 
> > > i am getting no node found exception in my linux remote server
> > > 
> > > my xml  
> > > \<elasticsearch:node id="esNode" /\>  
> > > \<elasticsearch:client node="esNode" id="esClient" /\>
> > > 
> > > this is java code
> > > 
> > > Client client = new TransportClient()  
> > > .addTransportAddress(new InetSocketTransportAddress("localhost", 9300))  
> > > .addTransportAddress(new InetSocketTransportAddress("10.0.0.12", 9300));
> > > 
> > > SearchResponse response = null;  
> > > response = client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > > .setTypes("DC\_USER").execute().actionGet();
> > > 
> > > SearchHit results = response.getHits().getHits();  
> > > if(results.length != 0){  
> > > result = new HashMap\<String, Object\>();  
> > > list = new ArrayList();  
> > > }  
> > > int count = 0;
> > > 
> > > ```
> > > for (SearchHit hit : results) {
> > > result.put(""+count, hit.getSource()); // the retrieved document
> > > list.add(hit.getSource());
> > > count++;
> > > }
> > > 
> > > ```
> > > 
> > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > 
> > > {  
> > > "cluster\_name" : "Data\_Cluster",  
> > > "status" : "yellow",  
> > > "timed\_out" : false,  
> > > "number\_of\_nodes" : 1,  
> > > "number\_of\_data\_nodes" : 1,  
> > > "active\_primary\_shards" : 87,  
> > > "active\_shards" : 87,  
> > > "relocating\_shards" : 0,  
> > > "initializing\_shards" : 0,  
> > > "unassigned\_shards" : 86  
> > > }
> > > 
> > > it is getting exception in linux macine.. index not found exception
> > > 
> > > status of index is success  
> > > [http://10.0.0.12:9200/dc\_user\_idx/\_status?pretty](http://10.0.0.12:9200/dc_user_idx/_status?pretty)
> > > 
> > > {  
> > > "ok" : true,  
> > > "\_shards" : {  
> > > "total" : 10,  
> > > "successful" : 5,  
> > > "failed" : 0  
> > > },  
> > > "indices" : {  
> > > "dc\_user\_idx" : {  
> > > "index" : {  
> > > "primary\_size" : "306kb",  
> > > "primary\_size\_in\_bytes" : 313373,  
> > > "size" : "306kb",  
> > > "size\_in\_bytes" : 313373  
> > > },  
> > > .....
> > > 
> > > i have not configured any manual settings  
> > > please help me.. is there any thing missing..
> > > 
> > > --  
> > > 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).  
> > > 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).  
> > > 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).  
> > 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:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 21, 2013, 3:56pm UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/15 "2013-03-21T15:56:58Z")

</div>

in 10.0.0.12 cluster name is Elasticsearch,  
in localhost also cluster name is elasticsearch

i did same like above mentioned..

but i am getting exception  
org.elasticsearch.indices.IndexMissingException: [dc\_role\_idx] missing

in java file ..

@Autowired  
Client client;  
SearchResponse response = null;

response =  
client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setFrom(0).setSize(25).setIndices("dc\_user\_idx")  
.setTypes("DC\_USER").execute().actionGet();

SearchHit results = response.getHits().getHits();  
if(results.length != 0){  
result = new HashMap\<String, Object\>();  
list = new ArrayList();  
}  
int count = 0;  
for (SearchHit hit : results) {  
result.put(""+count, hit.getSource()); // the retrieved document  
list.add(hit.getSource());  
count++;  
}

when i am running bat file datacollection.bat

D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_user\_river/\_meta](http://localhost:9200/_river/dc_user_river/_meta)" -d  
@mongodb-dc-user-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_user\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_demo\_river/\_meta](http://localhost:9200/_river/dc_demo_river/_meta)" -d  
@mongodb-dc-demo-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_demo\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_topic\_river/\_meta](http://localhost:9200/_river/dc_topic_river/_meta)" -d  
@mongodb-dc-topic-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_topic\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_provider\_river/\_meta](http://localhost:9200/_river/dc_provider_river/_meta)" -d  
@mongodb-dc-provider-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_provider\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_practice\_river/\_meta](http://localhost:9200/_river/dc_practice_river/_meta)" -d  
@mongodb-dc-practice-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_practice\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_patient\_topic\_river/\_meta](http://localhost:9200/_river/dc_patient_topic_river/_meta)" -d  
@mongodb-dc-patient-topic-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_patient\_topic\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_patient\_river/\_meta](http://localhost:9200/_river/dc_patient_river/_meta)" -d  
@mongodb-dc-patient-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_patient\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_demo\_jursidiction\_river/\_meta](http://localhost:9200/_river/dc_demo_jursidiction_river/_meta)" -d  
@mongodb-dc-demo-jursidiction-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_demo\_jursidiction\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_demo\_rule\_metadata\_river/\_meta](http://localhost:9200/_river/dc_demo_rule_metadata_river/_meta)" -d  
@mongodb-dc-rule-metadata-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_demo\_rule\_metadata\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_role\_river/\_meta](http://localhost:9200/_river/dc_role_river/_meta)" -d  
@mongodb-dc-role-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_role\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_demo\_rule\_river/\_meta](http://localhost:9200/_river/dc_demo_rule_river/_meta)" -d  
@mongodb-dc-demo-rule-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_demo\_rule\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_lookup\_data\_river/\_meta](http://localhost:9200/_river/dc_lookup_data_river/_meta)" -d  
@mongodb-dc-lookup-data-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_lookup\_data\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_practice\_topics\_river/\_meta](http://localhost:9200/_river/dc_practice_topics_river/_meta)" -d  
@mongodb-dc-practice-topic-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_practice\_topics\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_lookup\_var\_river/\_meta](http://localhost:9200/_river/dc_lookup_var_river/_meta)" -d  
@mongodb-dc-lookup-var-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_lookup\_var\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_permission\_river/\_meta](http://localhost:9200/_river/dc_permission_river/_meta)" -d  
@mongodb-dc-permission-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_permission\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_permission\_group\_river/\_meta](http://localhost:9200/_river/dc_permission_group_river/_meta)" -d  
@mongodb-dc-permission-group-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_permission\_group\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_user\_approval\_audit\_river/\_meta](http://localhost:9200/_river/dc_user_approval_audit_river/_meta)" -d  
@mongodb-dc-user-approval-audit-river.json

{"ok":true,"\_index":"\_river","\_type":"dc\_user\_approval\_audit\_river","\_id":"\_meta","\_version":3}  
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT  
"[http://localhost:9200/\_river/dc\_demo\_state\_river/\_meta](http://localhost:9200/_river/dc_demo_state_river/_meta)" -d  
@mongodb-dc-demo-state-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_demo\_state\_river","\_id":"\_meta","\_version":3}D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl  
-XPUT [http://localhost:9200/dc\_](http://localhost:9200/dc_)  
role\_idx/

but in elasticsearch/data folder i am not able to see any indexes in  
data folder

On Thursday, March 21, 2013 8:19:22 PM UTC+5:30, David Pilato wrote:

> So you have a Node running on 10.0.0.12? With elasticsearch cluster name?  
> You have also a Node running locally on localhost? With elasticsearch  
> cluster name?
> 
> You create a bean with Spring:  
> \<elasticsearch:node id="esNode" /\>  
> \<elasticsearch:client node="esNode" id="esClient" /\>
> 
> Then you are trying to create yourself a TransportClient? Why? Why not  
> just @autowired Client client?
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 21 mars 2013 à 15:41, srikanth gone \<[srika...@gmail.com](mailto:srika...@gmail.com) \<javascript:\>\>  
> a écrit :
> 
> curl 10.0.0.12:9200  
> output:  
> {  
> "ok" : true,  
> "status" : 200,  
> "name" : "van Lunt, Cornelius",  
> "version" : {  
> "number" : "0.20.3",  
> "snapshot\_build" : false  
> },  
> "tagline" : "You Know, for Search"  
> }
> 
> On Thursday, March 21, 2013 8:06:39 PM UTC+5:30, David Pilato wrote:
> 
> > Sorry. I meant:  
> > curl 10.0.0.12:9200
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > \*  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 21 mars 2013 à 11:40, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > 
> > HI David..
> > 
> > curl: (7) Failed connect to 10.0.0.12:80 [http://10.0.0.12/](http://10.0.0.12/); No error
> > 
> > On Thursday, March 21, 2013 3:41:39 PM UTC+5:30, David Pilato wrote:
> > 
> > > what gives the following command?  
> > > curl 10.0.0.12
> > > 
> > > --  
> > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > \*  
> > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > 
> > > Le 21 mars 2013 à 10:45, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > > 
> > > Hi David..
> > > 
> > > i have tried to install Elasticsearch version 0.20.3.. earlier i am  
> > > having version 19.8
> > > 
> > > now i am not able to create indexes.. i getting exception..
> > > 
> > > java.io.StreamCorruptedException: invalid internal transport message  
> > > format
> > > 
> > > is there any thing missing.?
> > > 
> > > On Wednesday, March 20, 2013 4:31:16 PM UTC+5:30, David Pilato wrote:
> > > 
> > > > YES!
> > > > 
> > > > --  
> > > > David 😉  
> > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > 
> > > > Le 20 mars 2013 à 11:59, srikanth gone [srika...@gmail.com](mailto:srika...@gmail.com) a écrit :
> > > > 
> > > > in my remote server.. elasticserver version 0.20.3
> > > > 
> > > > in my local machine. elastic server version is 0.19.8
> > > > 
> > > > is there any compatible problem with this..
> > > > 
> > > > On Wednesday, March 20, 2013 4:08:55 PM UTC+5:30, srikanth gone wrote:
> > > > 
> > > > > hi Igor  
> > > > > actually i have removed that one..  
> > > > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > > > 
> > > > > {  
> > > > > "cluster\_name" : "elasticsearch",  
> > > > > "status" : "yellow",  
> > > > > "timed\_out" : false,  
> > > > > "number\_of\_nodes" : 1,  
> > > > > "number\_of\_data\_nodes" : 1,  
> > > > > "active\_primary\_shards" : 96,  
> > > > > "active\_shards" : 96,  
> > > > > "relocating\_shards" : 0,  
> > > > > "initializing\_shards" : 0,  
> > > > > "unassigned\_shards" : 96  
> > > > > }
> > > > > 
> > > > > On Wednesday, March 20, 2013 4:02:09 PM UTC+5:30, Igor Motov wrote:
> > > > > 
> > > > > > In your example the cluster name is "Data\_Cluster" not  
> > > > > > "elasticsearch".
> > > > > > 
> > > > > > On Wednesday, March 20, 2013 6:26:12 AM UTC-4, srikanth gone wrote:
> > > > > > 
> > > > > > > Hi Igor,
> > > > > > > 
> > > > > > > i have used cluster name as "elasticsearch".. and
> > > > > > > 
> > > > > > > Settings settings = ImmutableSettings.settingsBuilder()  
> > > > > > > // .put("cluster.name", "elasticsearch") // i am using  
> > > > > > > default cluster.  
> > > > > > > .put("client.transport.sniff", false).build();
> > > > > > > 
> > > > > > > Client client = new TransportClient(settings)  
> > > > > > > // .addTransportAddress(new  
> > > > > > > InetSocketTransportAddress("192.168.10.2", 9300))  
> > > > > > > .addTransportAddress(new  
> > > > > > > InetSocketTransportAddress("10.0.0.12", 9300));
> > > > > > > 
> > > > > > > is there any chance to fetch data from server to in client machine..
> > > > > > > 
> > > > > > > On Wednesday, March 20, 2013 3:50:44 AM UTC+5:30, Igor Motov wrote:
> > > > > > > 
> > > > > > > > You need to specify cluster name when you create transport client.  
> > > > > > > > See the second example in the Transport Client section on this page  
> > > > > > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/client.html)
> > > > > > > > 
> > > > > > > > On Tuesday, March 19, 2013 5:10:28 AM UTC-4, srikanth gone wrote:
> > > > > > > > 
> > > > > > > > > Hi All,
> > > > > > > > > 
> > > > > > > > > i am getting no node found exception in my linux remote server
> > > > > > > > > 
> > > > > > > > > my xml  
> > > > > > > > > \<elasticsearch:node id="esNode" /\>  
> > > > > > > > > \<elasticsearch:client node="esNode" id="esClient" /\>
> > > > > > > > > 
> > > > > > > > > this is java code
> > > > > > > > > 
> > > > > > > > > Client client = new TransportClient()  
> > > > > > > > > .addTransportAddress(new  
> > > > > > > > > InetSocketTransportAddress("localhost", 9300))  
> > > > > > > > > .addTransportAddress(new  
> > > > > > > > > InetSocketTransportAddress("10.0.0.12", 9300));
> > > > > > > > > 
> > > > > > > > > SearchResponse response = null;  
> > > > > > > > > response =  
> > > > > > > > > client.prepareSearch().setQuery(QueryBuilders.queryString("_"+searchText+"_").field("userName").field("firstName").field("displayName").field("lastName").field("email").field("phoneNumber").field("alternativeContact").field("office").field("practice").field("role").field("additionalFields").field("createdBy").field("modifiedBy")).setIndices("dc\_user\_idx")  
> > > > > > > > > .setTypes("DC\_USER").execute().actionGet();
> > > > > > > > > 
> > > > > > > > > SearchHit results = response.getHits().getHits();  
> > > > > > > > > if(results.length != 0){  
> > > > > > > > > result = new HashMap\<String, Object\>();  
> > > > > > > > > list = new ArrayList();  
> > > > > > > > > }  
> > > > > > > > > int count = 0;
> > > > > > > > > 
> > > > > > > > > ```
> > > > > > > > > for (SearchHit hit : results) {
> > > > > > > > > result.put(""+count, hit.getSource()); // the retrieved 
> > > > > > > > > 
> > > > > > > > > ```
> > > > > > > > > 
> > > > > > > > > document  
> > > > > > > > > list.add(hit.getSource());  
> > > > > > > > > count++;  
> > > > > > > > > }
> > > > > > > > > 
> > > > > > > > > [http://10.0.0.12:9200/\_cluster/health?pretty=true](http://10.0.0.12:9200/_cluster/health?pretty=true)
> > > > > > > > > 
> > > > > > > > > {  
> > > > > > > > > "cluster\_name" : "Data\_Cluster",  
> > > > > > > > > "status" : "yellow",  
> > > > > > > > > "timed\_out" : false,  
> > > > > > > > > "number\_of\_nodes" : 1,  
> > > > > > > > > "number\_of\_data\_nodes" : 1,  
> > > > > > > > > "active\_primary\_shards" : 87,  
> > > > > > > > > "active\_shards" : 87,  
> > > > > > > > > "relocating\_shards" : 0,  
> > > > > > > > > "initializing\_shards" : 0,  
> > > > > > > > > "unassigned\_shards" : 86  
> > > > > > > > > }
> > > > > > > > > 
> > > > > > > > > it is getting exception in linux macine.. index not found  
> > > > > > > > > exception
> > > > > > > > > 
> > > > > > > > > status of index is success  
> > > > > > > > > [http://10.0.0.12:9200/dc\_user\_idx/\_status?pretty](http://10.0.0.12:9200/dc_user_idx/_status?pretty)
> > > > > > > > > 
> > > > > > > > > {  
> > > > > > > > > "ok" : true,  
> > > > > > > > > "\_shards" : {  
> > > > > > > > > "total" : 10,  
> > > > > > > > > "successful" : 5,  
> > > > > > > > > "failed" : 0  
> > > > > > > > > },  
> > > > > > > > > "indices" : {  
> > > > > > > > > "dc\_user\_idx" : {  
> > > > > > > > > "index" : {  
> > > > > > > > > "primary\_size" : "306kb",  
> > > > > > > > > "primary\_size\_in\_bytes" : 313373,  
> > > > > > > > > "size" : "306kb",  
> > > > > > > > > "size\_in\_bytes" : 313373  
> > > > > > > > > },  
> > > > > > > > > .....
> > > > > > > > > 
> > > > > > > > > i have not configured any manual settings  
> > > > > > > > > please help me.. is there any thing missing..
> > > > 
> > > > --  
> > > > 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).  
> > > > 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).  
> > > 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).  
> > 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:** ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)\
**Post date:** [March 21, 2013, 9:49pm UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/16 "2013-03-21T21:49:36Z")

</div>

You are querying for index named dc\_role\_idx but your bat file is putting  
the documents into the index named \_river.

Query:

.setIndices("dc\_user\_idx")

But data:

D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT "  
[http://localhost:9200/\_river/dc\_user\_river/\_meta](http://localhost:9200/_river/dc_user_river/_meta)" -d  
@mongodb-dc-user-river.json  
{"ok":true,"\_index":"\_river","\_type":"dc\_user\_river","\_id":"\_meta","\_version":3}

--  
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:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 22, 2013, 8:46am UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/17 "2013-03-22T08:46:32Z")

</div>

sorry, i have done mistake to add plugin.. in Elasticsearch folder..  
now it is creating indexes..  
actually i have given index name like this in mongodb-dc-user-river.json...  
{  
"type": "mongodb",  
"mongodb": {  
"db": "data-collection",  
"collection": "DC\_USER"  
},  
"index": {  
"name": "dc\_user\_idx",  
"type": "DC\_USER"  
}  
}

if i am running browser

[http://localhost:9200/dc\_user\_idx/\_search?q=a\*&pretty](http://localhost:9200/dc_user_idx/_search?q=a*&pretty)

output:

{  
"took" : 31,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 5,  
"successful" : 5,  
"failed" : 0  
},  
"hits" : {  
"total" : 1,  
"max\_score" : 1.0,  
"hits" : [ {  
"\_index" : "dc\_user\_idx",  
"\_type" : "DC\_USER",  
"\_id" : "727fa49f-7991-4f74-98b3-5d5a1204546c",  
"\_score" : 1.0, "\_source" : {"\_id":"727fa49f-7991-4f74-98b3-5d5a1204546c","\_class":"com.newwave.dc.user.model.User","userName":"admin","password":"admin","firstName":"Super","lastName":"User","role":[{"role":"{ "$ref" : "DC\_ROLE", "$id" : "b8f32bfc-8286-49c8-82df-924bc2b552e3" }"},{"role":"{ "$ref" : "DC\_ROLE", "$id" : "7de87296-bc5a-4d10-bd42-b2d16f0c8056" }"}],"createdBy":"System","createdOn":"2013-03-21T14:58:48.000Z"}  
} ]  
}  
}

from java

but still i am getting same error..  
org.elasticsearch.indices.IndexMissingException: [dc\_role\_idx] missing

On Friday, March 22, 2013 3:19:36 AM UTC+5:30, InquiringMind wrote:

> You are querying for index named dc\_role\_idx but your bat file is putting  
> the documents into the index named \_river.
> 
> Query:
> 
> .setIndices("dc\_user\_idx")
> 
> But data:
> 
> D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT "  
> [http://localhost:9200/\_river/dc\_user\_river/\_meta](http://localhost:9200/_river/dc_user_river/_meta)" -d  
> @mongodb-dc-user-river.json
> 
> {"ok":true,"\_index":"\_river","\_type":"dc\_user\_river","\_id":"\_meta","\_version":3}

--  
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:** [March 22, 2013, 8:50am UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/18 "2013-03-22T08:50:55Z")

</div>

Why do you think you have an dc\_role\_idx index?  
How did you create it?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 22 mars 2013 à 09:46, srikanth gone [srikanthg93@gmail.com](mailto:srikanthg93@gmail.com) a écrit :

> sorry, i have done mistake to add plugin.. in Elasticsearch folder..  
> now it is creating indexes..  
> actually i have given index name like this in mongodb-dc-user-river.json...  
> {  
> "type": "mongodb",  
> "mongodb": {  
> "db": "data-collection",  
> "collection": "DC\_USER"  
> },  
> "index": {  
> "name": "dc\_user\_idx",  
> "type": "DC\_USER"  
> }  
> }
> 
> if i am running browser
> 
> [http://localhost:9200/dc\_user\_idx/\_search?q=a\*&pretty](http://localhost:9200/dc_user_idx/_search?q=a*&pretty)
> 
> output:  
> {  
> "took" : 31,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 1,  
> "max\_score" : 1.0,  
> "hits" : [ {  
> "\_index" : "dc\_user\_idx",  
> "\_type" : "DC\_USER",  
> "\_id" : "727fa49f-7991-4f74-98b3-5d5a1204546c",  
> "\_score" : 1.0, "\_source" : {"\_id":"727fa49f-7991-4f74-98b3-5d5a1204546c","\_class":"com.newwave.dc.user.model.User","userName":"admin","password":"admin","firstName":"Super","lastName":"User","role":[{"role":"{ "$ref" : "DC\_ROLE", "$id" : "b8f32bfc-8286-49c8-82df-924bc2b552e3" }"},{"role":"{ "$ref" : "DC\_ROLE", "$id" : "7de87296-bc5a-4d10-bd42-b2d16f0c8056" }"}],"createdBy":"System","createdOn":"2013-03-21T14:58:48.000Z"}  
> } ]  
> }  
> }
> 
> from java
> 
> but still i am getting same error..  
> org.elasticsearch.indices.IndexMissingException: [dc\_role\_idx] missing
> 
> On Friday, March 22, 2013 3:19:36 AM UTC+5:30, InquiringMind wrote:  
> You are querying for index named dc\_role\_idx but your bat file is putting the documents into the index named \_river.
> 
> Query:
> 
> .setIndices("dc\_user\_idx")
> 
> But data:
> 
> D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT "[http://localhost:9200/\_river/dc\_user\_river/\_meta](http://localhost:9200/_river/dc_user_river/_meta)" -d @mongodb-dc-user-river.json  
> {"ok":true,"\_index":"\_river","\_type":"dc\_user\_river","\_id":"\_meta","\_version":3}
> 
> --  
> 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:** ![Srikanth\_gone](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Srikanth\_gone](https://discuss.elastic.co/u/Srikanth_gone)\
**Post date:** [March 22, 2013, 8:58am UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/19 "2013-03-22T08:58:05Z")

</div>

using bat file..

curl -XPUT "[http://localhost:9200/\_river/dc\_user\_river/\_meta](http://localhost:9200/_river/dc_user_river/_meta)" -d  
@mongodb-dc-user-river.json

in mongodb-dc-user-river.json file  
{  
"type": "mongodb",  
"mongodb": {  
"db": "data-collection",  
"collection": "DC\_USER"  
},  
"index": {  
"name": "dc\_user\_idx",  
"type": "DC\_USER"  
}  
}

On Friday, March 22, 2013 2:20:55 PM UTC+5:30, David Pilato wrote:

> Why do you think you have an dc\_role\_idx index?  
> How did you create it?
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 22 mars 2013 à 09:46, srikanth gone \<[srika...@gmail.com](mailto:srika...@gmail.com) \<javascript:\>\>  
> a écrit :
> 
> sorry, i have done mistake to add plugin.. in Elasticsearch folder..  
> now it is creating indexes..  
> actually i have given index name like this in mongodb-dc-user-river.json...  
> {  
> "type": "mongodb",  
> "mongodb": {  
> "db": "data-collection",  
> "collection": "DC\_USER"  
> },  
> "index": {  
> "name": "dc\_user\_idx",  
> "type": "DC\_USER"  
> }  
> }
> 
> if i am running browser
> 
> [http://localhost:9200/dc\_user\_idx/\_search?q=a\*&pretty](http://localhost:9200/dc_user_idx/_search?q=a*&pretty)
> 
> output:
> 
> {  
> "took" : 31,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 1,  
> "max\_score" : 1.0,  
> "hits" : [ {  
> "\_index" : "dc\_user\_idx",  
> "\_type" : "DC\_USER",  
> "\_id" : "727fa49f-7991-4f74-98b3-5d5a1204546c",  
> "\_score" : 1.0, "\_source" : {"\_id":"727fa49f-7991-4f74-98b3-5d5a1204546c","\_class":"com.newwave.dc.user.model.User","userName":"admin","password":"admin","firstName":"Super","lastName":"User","role":[{"role":"{ "$ref" : "DC\_ROLE", "$id" : "b8f32bfc-8286-49c8-82df-924bc2b552e3" }"},{"role":"{ "$ref" : "DC\_ROLE", "$id" : "7de87296-bc5a-4d10-bd42-b2d16f0c8056" }"}],"createdBy":"System","createdOn":"2013-03-21T14:58:48.000Z"}  
> } ]  
> }  
> }
> 
> from java
> 
> but still i am getting same error..  
> org.elasticsearch.indices.IndexMissingException: [dc\_role\_idx] missing
> 
> On Friday, March 22, 2013 3:19:36 AM UTC+5:30, InquiringMind wrote:
> 
> > You are querying for index named dc\_role\_idx but your bat file is putting  
> > the documents into the index named \_river.
> > 
> > Query:
> > 
> > .setIndices("dc\_user\_idx")
> > 
> > But data:
> > 
> > D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32\>curl -XPUT "  
> > [http://localhost:9200/\_river/dc\_user\_river/\_meta](http://localhost:9200/_river/dc_user_river/_meta)" -d  
> > @mongodb-dc-user-river.json
> > 
> > {"ok":true,"\_index":"\_river","\_type":"dc\_user\_river","\_id":"\_meta","\_version":3}
> 
> --  
> 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:** ![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:** [March 22, 2013, 9:20am UTC](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203/20 "2013-03-22T09:20:13Z")

</div>

Why do you think you have an dc\_role\_idx index?  
How did you create it?

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

Le 22 mars 2013 à 09:58, srikanth gone [srikanthg93@gmail.com](mailto:srikanthg93@gmail.com) a écrit :

> Why do you think you have an dc\_role\_idx index?  
> How did you create it?

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

[Next page](https://discuss.elastic.co/t/transport-client-not-able-to-fetch-data/11203.md?page=2)
