hello
i am new to elastic search. i read thru java api on your site but
cudnt understand completely how to create client by establishing
connection to the server. elastic search server is hosted at a
particular IP address and i need to connect to it thru java code. so
can you please guide me as to which kind of client i should create
and how?
hello
i am new to Elasticsearch. i read thru java api on your site but
cudnt understand completely how to create client by establishing
connection to the server. Elasticsearch server is hosted at a
particular IP address and i need to connect to it thru java code. so
can you please guide me as to which kind of client i should create
and how?
hello
i am new to Elasticsearch. i read thru java api on your site but
cudnt understand completely how to create client by establishing
connection to the server. Elasticsearch server is hosted at a
particular IP address and i need to connect to it thru java code. so
can you please guide me as to which kind of client i should create
and how?
The server client way will automatically discover all the other nodes in the
cluster. If you don't want that, and want to use direct connection, then you
can use the TransportClient also explained on the page.
hello
i am new to Elasticsearch. i read thru java api on your site but
cudnt understand completely how to create client by establishing
connection to the server. Elasticsearch server is hosted at a
particular IP address and i need to connect to it thru java code. so
can you please guide me as to which kind of client i should create
and how?
thnk u for guiding me, i had one more question regarding server
client, i want the client to talk to my server at a particular ip for
example 10.0.0.56. so how to make tat happen? which property to set?
hello
i am new to Elasticsearch. i read thru java api on your site but
cudnt understand completely how to create client by establishing
connection to the server. Elasticsearch server is hosted at a
particular IP address and i need to connect to it thru java code. so
can you please guide me as to which kind of client i should create
and how?
The server client way will automatically discover all the other nodes in
the cluster. If you don't want that, and want to use direct connection, then
you can use the TransportClient also explained on the page.
hello
i am new to Elasticsearch. i read thru java api on your site but
cudnt understand completely how to create client by establishing
connection to the server. Elasticsearch server is hosted at a
particular IP address and i need to connect to it thru java code. so
can you please guide me as to which kind of client i should create
and how?
The server client way will automatically discover all the other nodes in
the cluster. If you don't want that, and want to use direct connection, then
you can use the TransportClient also explained on the page.
hello
i am new to Elasticsearch. i read thru java api on your site but
cudnt understand completely how to create client by establishing
connection to the server. Elasticsearch server is hosted at a
particular IP address and i need to connect to it thru java code. so
can you please guide me as to which kind of client i should create
and how?
The server client way will automatically discover all the other nodes in
the cluster. If you don't want that, and want to use direct connection, then
you can use the TransportClient also explained on the page.
hello
i am new to Elasticsearch. i read thru java api on your site but
cudnt understand completely how to create client by establishing
connection to the server. Elasticsearch server is hosted at a
particular IP address and i need to connect to it thru java code. so
can you please guide me as to which kind of client i should create
and how?
I really don't understand what the problem is, its working fine for me. The
example is what is posted on the doc. If you can provide me with a stack
trace when things gets stuck on your end, then I can help further.
The server client way will automatically discover all the other nodes
in
the cluster. If you don't want that, and want to use direct
connection, then
you can use the TransportClient also explained on the page.
hello
i am new to Elasticsearch. i read thru java api on your site but
cudnt understand completely how to create client by establishing
connection to the server. Elasticsearch server is hosted at a
particular IP address and i need to connect to it thru java code.
so
can you please guide me as to which kind of client i should create
and how?
Is your server running on the same network?
I just don't see how I can point the API to a specific cluster.
We have a test server on our local network and one in the Amazon
cloud.
So I want to set parameters according to staging versus production.
I really don't understand what the problem is, its working fine for me. The
example is what is posted on the doc. If you can provide me with a stack
trace when things gets stuck on your end, then I can help further.
The server client way will automatically discover all the other nodes
in
the cluster. If you don't want that, and want to use direct
connection, then
you can use the TransportClient also explained on the page.
hello
i am new to Elasticsearch. i read thru java api on your site but
cudnt understand completely how to create client by establishing
connection to the server. Elasticsearch server is hosted at a
particular IP address and i need to connect to it thru java code.
so
can you please guide me as to which kind of client i should create
and how?
Is your server running on the same network?
I just don't see how I can point the API to a specific cluster.
Default configuration uses IP multicast discovery, so you don't need
to set anything special (unless you want to specify the multicast
group).
However, you'll have hard times trying to use multicast discovery on
EC2 (or any other cloud provider), so I suggest you to switch to
seed-based TCP discovery.
Discovery module configuration is explained at: http://www.elasticsearch.com/docs/elasticsearch/modules/discovery/jgroups/
Is your server running on the same network?
I just don't see how I can point the API to a specific cluster.
Default configuration uses IP multicast discovery, so you don't need
to set anything special (unless you want to specify the multicast
group).
However, you'll have hard times trying to use multicast discovery on
EC2 (or any other cloud provider), so I suggest you to switch to
seed-based TCP discovery.
Discovery module configuration is explained at:http://www.elasticsearch.com/docs/elasticsearch/modules/discovery/jgr...
We cannot get this to work at all. Is there a different port for this
method of connecting? The example uses 9800 here while everything
else uses 9200. I know 9200 works on the server and is accessible
from our development machines but it doesn't work with the
TransportClient.
Is your server running on the same network?
I just don't see how I can point the API to a specific cluster.
Default configuration uses IP multicast discovery, so you don't need
to set anything special (unless you want to specify the multicast
group).
However, you'll have hard times trying to use multicast discovery on
EC2 (or any other cloud provider), so I suggest you to switch to
seed-based TCP discovery.
Discovery module configuration is explained at:http://www.elasticsearch.com/docs/elasticsearch/modules/discovery/jgr...
9200 is the HTTP port, when you use the TransportClient, you would want to
connect to the transport port (printed in the logs when the server starts
up). By default, the port is 9300 (if you start another server on the same
machine, then it will use the next available port). So, when you use the
TransportClient, you need to use 9300.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.