Elasticsearch Cluster : Unable to detect documents of another elasticsearch

Hi folks,
I am creating elasticsearch cluster on machine A and machine B. Machine A
(master node) having 4 documents and machine b(slave node) having 3
documents.
But When I run the elasticsearch, only Machine A (master node) documents
are visible and these documents are also copied into the Machine B(slave
node).
Here i am attaching my both master and slave elasticsearch.yml file.
kindly piont me where i am doing wrong.
Regrads
Mohit Kumar Yadav
(MCA/BBA)
Assocaite Software Developer
Next Gen Invent Corporation, Noida
Email Id : mohit.kumar@ngiventures.com,mohit.kumar.ngi@gmail.com

--
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,
if you only have two machines there is no need to configure one as a master
and the other one as data holder only. In fact that would cause the cluster
to stop working at all if your master node crashes or is not reachable.
Every cluster needs to have a master node, which is the one that makes
cluster-wide decisions, for instance regarding shard allocation.
That doesn't mean that you can only index data sending documents to the
master node. You can send documents to whichever node in your cluster,
which holds the cluster state and will know where the document is supposed
to be stored (which shards). But if you have a single master eligible node
and that one crashes, the cluster will be down.
When you set master:false in your configuration file you prevent that node
from becoming a master, effectively saying that it won't be master eligible.

That said, how do you know that the first node has 4 documents and the
second one 3? How many indices do you have? How many shards?
And what query do you execute to get those documents back?

On Friday, August 23, 2013 3:46:28 PM UTC+2, Mohit Kumar Yadav wrote:

Hi folks,
I am creating elasticsearch cluster on machine A and machine B. Machine A
(master node) having 4 documents and machine b(slave node) having 3
documents.
But When I run the elasticsearch, only Machine A (master node) documents
are visible and these documents are also copied into the Machine B(slave
node).
Here i am attaching my both master and slave elasticsearch.yml file.
kindly piont me where i am doing wrong.
Regrads
Mohit Kumar Yadav
(MCA/BBA)
Assocaite Software Developer
Next Gen Invent Corporation, Noida
Email Id : mohit...@ngiventures.com <javascript:>,
mohit.kumar.ngi@gmail.com <javascript:>

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