Transport client not able to fetch data

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

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

{
"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.
For more options, visit https://groups.google.com/groups/opt_out.

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

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

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

{
"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.
For more options, visit https://groups.google.com/groups/opt_out.

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

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

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

{
"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.
For more options, visit https://groups.google.com/groups/opt_out.

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

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

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

{
"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.
For more options, visit https://groups.google.com/groups/opt_out.

hi Igor
actually i have removed that one..
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

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

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

{
"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.
For more options, visit https://groups.google.com/groups/opt_out.

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

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

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

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

{
"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.
For more options, visit https://groups.google.com/groups/opt_out.

YES!

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

Le 20 mars 2013 à 11:59, srikanth gone 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

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

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

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

{
"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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 20 mars 2013 à 11:59, srikanth gone <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

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

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

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

{
"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 <javascript:>.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

what gives the following command?
curl 10.0.0.12

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 21 mars 2013 à 10:45, srikanth gone 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 20 mars 2013 à 11:59, srikanth gone 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

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

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

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

{
"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.
For more options, visit 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr
| @scrutmydocs https://twitter.com/scrutmydocs

Le 21 mars 2013 à 10:45, srikanth gone <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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 20 mars 2013 à 11:59, srikanth gone 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

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

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

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

{
"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.
For more options, visit 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 <javascript:>.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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

{
"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
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr
| @scrutmydocs https://twitter.com/scrutmydocs

Le 21 mars 2013 à 10:45, srikanth gone 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 20 mars 2013 à 11:59, srikanth gone 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

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

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

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

{
"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.
For more options, visit 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

Sorry. I meant:
curl 10.0.0.12:9200

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 21 mars 2013 à 11:40, srikanth gone 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
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 21 mars 2013 à 10:45, srikanth gone 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 20 mars 2013 à 11:59, srikanth gone 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

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

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

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

{
"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.
For more options, visit 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.
For more options, visit 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr
| @scrutmydocs https://twitter.com/scrutmydocs

Le 21 mars 2013 à 11:40, srikanth gone <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.comhttp://elasticsearch.com/
*
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr
| @scrutmydocs https://twitter.com/scrutmydocs

Le 21 mars 2013 à 10:45, srikanth gone 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 20 mars 2013 à 11:59, srikanth gone 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

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

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

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

{
"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.
For more options, visit 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.
For more options, visit 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 <javascript:>.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 21 mars 2013 à 15:41, srikanth gone 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
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 21 mars 2013 à 11:40, srikanth gone 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
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 21 mars 2013 à 10:45, srikanth gone 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 20 mars 2013 à 11:59, srikanth gone 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

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

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

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

{
"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.
For more options, visit 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.
For more options, visit 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.
For more options, visit 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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" -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" -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" -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" -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" -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" -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" -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" -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" -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" -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" -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" -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" -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" -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" -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" -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" -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" -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_
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
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr
| @scrutmydocs https://twitter.com/scrutmydocs

Le 21 mars 2013 à 15:41, srikanth gone <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.comhttp://elasticsearch.com/
*
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr
| @scrutmydocs https://twitter.com/scrutmydocs

Le 21 mars 2013 à 11:40, srikanth gone srika...@gmail.com a écrit :

HI David..

curl: (7) Failed connect to 10.0.0.12:80 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.comhttp://elasticsearch.com/
*
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr
| @scrutmydocs https://twitter.com/scrutmydocs

Le 21 mars 2013 à 10:45, srikanth gone 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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 20 mars 2013 à 11:59, srikanth gone 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

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

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

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

{
"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.
For more options, visit 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.
For more options, visit 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.
For more options, visit 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 <javascript:>.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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" -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.
For more options, visit https://groups.google.com/groups/opt_out.

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

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" -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.
For more options, visit https://groups.google.com/groups/opt_out.

Why do you think you have an dc_role_idx index?
How did you create it?

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 22 mars 2013 à 09:46, srikanth gone 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

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" -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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

using bat file..

curl -XPUT "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
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr
| @scrutmydocs https://twitter.com/scrutmydocs

Le 22 mars 2013 à 09:46, srikanth gone <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

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" -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 <javascript:>.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

Why do you think you have an dc_role_idx index?
How did you create it?

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

Le 22 mars 2013 à 09:58, srikanth gone 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.
For more options, visit https://groups.google.com/groups/opt_out.