Note: The Elasticsearch transport client is officially deprecated in 7.0.0
and we highly recommend for users to move to the high level Java REST client.
Elasticsearch version | Branch |
---|---|
6.x | master |
5.x | 5.x |
2.x | 2.x |
1.x | 1.x |
To run the example use mvn exec:java
:
$ mvn compile exec:java -Dhost=YOUR_CLUSTER_ID.REGION.aws.found.io -Dxpack.security.user='username:password'
Replace YOUR_CLUSTER_ID
with your cluster id and REGION
with the region the cluster is started in.
By default, if IPv4 and IPv6 are both enabled then it is undetermined which will be used. The system properties -Dip4=true|false
and -Dip6=true|false
can be used to turn them on/off explicitly. If they are enabled then the network/host should support routing to the Cloud endpoint, e.g. this is not the case within Docker containers by default).