【问题标题】:PGSync with aws elasticsearch: index not foundPGSync 与 aws elasticsearch:未找到索引
【发布时间】:2021-05-27 09:29:19
【问题描述】:

我正在尝试使用 PGSync 将我的 Postgres 数据库与 Aws Elasticsearch 同步 我已经定义了一个简单的模式:

    [
  {
    "database": "tenancyportal",
    "index": "properties",
    "nodes": [
      {
        "table": "properties",
        "schema": "public",
        "columns": ["id", "address"]
      }
    ]
  }
]

但是当我尝试使用引导数据库时

bootstrap --config schema.json

我收到以下错误:

elasticsearch.exceptions.NotFoundError: NotFoundError(404, 'index_not_found_exception', '没有这样的索引 [:9200]', :9200, index_or_alias)

在下面的屏幕截图中,您将能够看到 elasticsearch 的 GET URL 完全错误,我无法理解是什么配置导致它如此形成。

【问题讨论】:

    标签: postgresql amazon-web-services elasticsearch aws-elasticsearch


    【解决方案1】:

    您的 AWS Elasticsearch URL 似乎构造不正确。这在 PGSync 的最近更新中得到了解决。你能拉出最新的master 分支再试一次吗?

    【讨论】:

    • 我无法使用 pgsync 中的 2.1.9 连接 aws elasticsearch。它正在抛出 401(未经授权的错误)Undecodable raw error response from server: Expecting value: line 1 column 1 (char 0)Elasticsearch.exceptions.AuthenticationException: AuthenticationException(401, 'Unauthorized')
    猜你喜欢
    • 2021-09-08
    • 2021-10-31
    • 2023-01-30
    • 1970-01-01
    • 2020-12-29
    • 1970-01-01
    • 1970-01-01
    • 2017-01-25
    • 2015-07-02
    相关资源
    最近更新 更多