How to connect to Amazon Elasticsearch Service with Spring Data ElasticsearchTemplate?
up vote
1
down vote
favorite
I have my Elasticsearch cluster running on Amazon Elasticsearch Service.
I was trying to find the solution how to connect my java application to that Elasticsearch cluster but I could not find any other answers than via RestClient
.
So my question is - Is there any way how can I create spring data ElasticSearchTemplate
which will communicate with Elasticsearch running on my AWS ?
spring amazon-web-services elasticsearch spring-data
add a comment |
up vote
1
down vote
favorite
I have my Elasticsearch cluster running on Amazon Elasticsearch Service.
I was trying to find the solution how to connect my java application to that Elasticsearch cluster but I could not find any other answers than via RestClient
.
So my question is - Is there any way how can I create spring data ElasticSearchTemplate
which will communicate with Elasticsearch running on my AWS ?
spring amazon-web-services elasticsearch spring-data
Did you install Elasticsearch in EC2 instances yourself, or are you trying to communicate with Amazon Elasticsearch Service?
– Chin Huang
Nov 8 at 20:52
@ChinHuang I am trying to communicate with Amazon Elasticsearch Service.
– Druudik
Nov 9 at 6:37
But I would prefer the option where I can use ElasticSearchTemplate if there is any.
– Druudik
Nov 9 at 6:49
1
Amazon Elasticsearch Service allows communication only by the Elasticsearch REST API. Spring Data Elasticsearch 3.2 will introduce ElasticsearchRestTemplate using the Java High Level REST client. Because this version isn't released at the time I write this comment, our application directly uses the Java High Level REST client.
– Chin Huang
Nov 9 at 19:02
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have my Elasticsearch cluster running on Amazon Elasticsearch Service.
I was trying to find the solution how to connect my java application to that Elasticsearch cluster but I could not find any other answers than via RestClient
.
So my question is - Is there any way how can I create spring data ElasticSearchTemplate
which will communicate with Elasticsearch running on my AWS ?
spring amazon-web-services elasticsearch spring-data
I have my Elasticsearch cluster running on Amazon Elasticsearch Service.
I was trying to find the solution how to connect my java application to that Elasticsearch cluster but I could not find any other answers than via RestClient
.
So my question is - Is there any way how can I create spring data ElasticSearchTemplate
which will communicate with Elasticsearch running on my AWS ?
spring amazon-web-services elasticsearch spring-data
spring amazon-web-services elasticsearch spring-data
edited Nov 9 at 19:10
Chin Huang
7,93433238
7,93433238
asked Nov 8 at 20:17
Druudik
299
299
Did you install Elasticsearch in EC2 instances yourself, or are you trying to communicate with Amazon Elasticsearch Service?
– Chin Huang
Nov 8 at 20:52
@ChinHuang I am trying to communicate with Amazon Elasticsearch Service.
– Druudik
Nov 9 at 6:37
But I would prefer the option where I can use ElasticSearchTemplate if there is any.
– Druudik
Nov 9 at 6:49
1
Amazon Elasticsearch Service allows communication only by the Elasticsearch REST API. Spring Data Elasticsearch 3.2 will introduce ElasticsearchRestTemplate using the Java High Level REST client. Because this version isn't released at the time I write this comment, our application directly uses the Java High Level REST client.
– Chin Huang
Nov 9 at 19:02
add a comment |
Did you install Elasticsearch in EC2 instances yourself, or are you trying to communicate with Amazon Elasticsearch Service?
– Chin Huang
Nov 8 at 20:52
@ChinHuang I am trying to communicate with Amazon Elasticsearch Service.
– Druudik
Nov 9 at 6:37
But I would prefer the option where I can use ElasticSearchTemplate if there is any.
– Druudik
Nov 9 at 6:49
1
Amazon Elasticsearch Service allows communication only by the Elasticsearch REST API. Spring Data Elasticsearch 3.2 will introduce ElasticsearchRestTemplate using the Java High Level REST client. Because this version isn't released at the time I write this comment, our application directly uses the Java High Level REST client.
– Chin Huang
Nov 9 at 19:02
Did you install Elasticsearch in EC2 instances yourself, or are you trying to communicate with Amazon Elasticsearch Service?
– Chin Huang
Nov 8 at 20:52
Did you install Elasticsearch in EC2 instances yourself, or are you trying to communicate with Amazon Elasticsearch Service?
– Chin Huang
Nov 8 at 20:52
@ChinHuang I am trying to communicate with Amazon Elasticsearch Service.
– Druudik
Nov 9 at 6:37
@ChinHuang I am trying to communicate with Amazon Elasticsearch Service.
– Druudik
Nov 9 at 6:37
But I would prefer the option where I can use ElasticSearchTemplate if there is any.
– Druudik
Nov 9 at 6:49
But I would prefer the option where I can use ElasticSearchTemplate if there is any.
– Druudik
Nov 9 at 6:49
1
1
Amazon Elasticsearch Service allows communication only by the Elasticsearch REST API. Spring Data Elasticsearch 3.2 will introduce ElasticsearchRestTemplate using the Java High Level REST client. Because this version isn't released at the time I write this comment, our application directly uses the Java High Level REST client.
– Chin Huang
Nov 9 at 19:02
Amazon Elasticsearch Service allows communication only by the Elasticsearch REST API. Spring Data Elasticsearch 3.2 will introduce ElasticsearchRestTemplate using the Java High Level REST client. Because this version isn't released at the time I write this comment, our application directly uses the Java High Level REST client.
– Chin Huang
Nov 9 at 19:02
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Yes there definitely is. You would likely need a VPN connection or you could make ElasticSearch publicly available, but that isn't advisable.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Yes there definitely is. You would likely need a VPN connection or you could make ElasticSearch publicly available, but that isn't advisable.
add a comment |
up vote
0
down vote
Yes there definitely is. You would likely need a VPN connection or you could make ElasticSearch publicly available, but that isn't advisable.
add a comment |
up vote
0
down vote
up vote
0
down vote
Yes there definitely is. You would likely need a VPN connection or you could make ElasticSearch publicly available, but that isn't advisable.
Yes there definitely is. You would likely need a VPN connection or you could make ElasticSearch publicly available, but that isn't advisable.
answered Nov 8 at 21:13
Josh Dayberry
333
333
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53215495%2fhow-to-connect-to-amazon-elasticsearch-service-with-spring-data-elasticsearchtem%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you install Elasticsearch in EC2 instances yourself, or are you trying to communicate with Amazon Elasticsearch Service?
– Chin Huang
Nov 8 at 20:52
@ChinHuang I am trying to communicate with Amazon Elasticsearch Service.
– Druudik
Nov 9 at 6:37
But I would prefer the option where I can use ElasticSearchTemplate if there is any.
– Druudik
Nov 9 at 6:49
1
Amazon Elasticsearch Service allows communication only by the Elasticsearch REST API. Spring Data Elasticsearch 3.2 will introduce ElasticsearchRestTemplate using the Java High Level REST client. Because this version isn't released at the time I write this comment, our application directly uses the Java High Level REST client.
– Chin Huang
Nov 9 at 19:02