【问题标题】:How to remotely connect to AWS Elasticsearch?如何远程连接到 AWS Elasticsearch?
【发布时间】:2019-12-24 09:23:34
【问题描述】:

我必须将 AWS Elasticsearch 与 Alexa 连接起来。根据一个文件,我必须把

client = new ElasticSearchClient("your.elastic.url", 9300, "your.cluster.name");

我的 AWS 托管的 ES 集群的弹性 URL 和 9300 是什么?

【问题讨论】:

  • AWS ES 不提供通过 TCP 连接的可能性。见this。您只能通过 HTTP 连接。

标签: amazon-web-services elasticsearch alexa alexa-skill


【解决方案1】:

正如评论中提到的,AWS ES 不提供通过 TCP 连接的可能性。

TCP 传输

该服务在端口 80 上支持 HTTP,但不支持 TCP 运输。

developerguide aes-supported-resources

但是你可以试试这个how-to-use-java-high-level-rest-client-with-spring-boot-to-talk-to-aws-elasticsearch

另一件事,它完全取决于底层库 https://github.com/unterstein/elastic-alexa 你可以尝试使用 https 而没有端口。

根据您的问题,您可以在此处获取 AWS ES 集群详细信息和端点。

ES -> 仪表板 -> 选择域

在顶部,您可以在端点中看到集群名称和下方。

【讨论】:

  • 非常感谢。肯定会通过您发送的链接。一个问题,9300是针对普通ES的,AWS ES中的等价物是什么?
  • AWS 使用 https 其平均值为 443。查看屏幕截图。
猜你喜欢
  • 2016-01-29
  • 2019-03-21
  • 2018-02-08
  • 2022-08-31
  • 2019-04-04
  • 2021-02-01
  • 2017-09-06
  • 2017-01-18
  • 2021-04-25
相关资源
最近更新 更多