リモートのElasticsearchクラスターから再インデックス化 - 7.3

Talend移行&アップグレードガイド

Version
7.3
Language
日本語
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Activity Monitoring Console
Talend Administration Center
Talend Artifact Repository
Talend CommandLine
Talend Data Preparation
Talend Data Stewardship
Talend ESB
Talend Identity and Access Management
Talend JobServer
Talend Log Server
Talend MDM Server
Talend MDM Web UI
Talend Runtime
Talend SAP RFC Server
Talend Studio
Content
インストールとアップグレード
Last publication date
2023-05-22
LogstashとTalend ESBのインデックスを再インデックス化する必要があります。

手順

  1. 以下のコマンドを実行し、既存のインデックスをすべて表示します。
    curl -XGET 'oldhost9200/_cat/indices'
    oldhostを7.2.xで使用されているElasticsearchクラスターのIPアドレスまたはホスト名に置き換えます。
  2. 7.2.xで使用されているインデックスから7.3.xで使用されているインデックスにドキュメントをプルするように、リモートクラスターからのLogstashインデックスを再インデックス化します。
    curl -XPOST 'localhost:9200/_reindex?pretty' -H 'Content-Type: application/json' -d'
    {
      "source": {
        "remote": {
          "host": "http://oldhost:9200"
        },
        "index": "logstash-YYYY.MM.dd"
      },
      "dest": {
        "index": "logstash-YYYY.MM.dd"
      }
    }
    '
  3. 6.5.xで使用されているインデックスから7.3.xで使用されているインデックスにドキュメントをプルするように、リモートクラスターからのTalend ESBインデックスを再インデックス化します。
    curl -XPOST 'localhost:9200/_reindex?pretty' -H 'Content-Type: application/json' -d'
    {
      "source": {
        "remote": {
          "host": "http://oldhost:9200"
        },
        "index": "talendesb-YYYY.MM.dd"
      },
      "dest": {
        "index": "talendesb-YYYY.MM.dd"
      }
    }
    '
    注:

    logstash-YYYY.MM.ddtalendesb-YYYY.MM.ddインデックスをすべて1つずつ移行するか、移行するインデックスのみを選択してください。

    対象製品:

    Big Data Platform

    インデックス名にlogstash-*を指定すると、以下のようなエラーが返されます:

    対象製品:

    Data Fabric

    Data Management Platform

    Data Services Platform

    MDM Platform

    Real-Time Big Data Platform

    インデックス名にlogstash-*またはtalendesb-*を指定すると、以下のようなエラーが返されます:

    "failures" : [
    {
    "index" : "logstash-*",
    "type" : "xxxxxxxx",
    "id" : "xxxxxxxxxxxxxx",
    "cause" : {
    "type" : "invalid_index_name_exception",
    "reason" : "Invalid index name [logstash-*], must not contain the following characters [ , \", *, \\, <, |, ,, >, /, ?]",
    "index_uuid" : "_na_",
    "index" : "logstash-*"
    },
    "status" : 400
    },
    {
    "index" : "logstash-*",
    "type" : "xxxxxx",
    "id" : "xxxxxxxxxxxxxxx",
    "cause" : {
    "type" : "invalid_index_name_exception",
    "reason" : "Invalid index name [logstash-*], must not contain the following characters [ , \", *, \\, <, |, ,, >, /, ?]",
    "index_uuid" : "_na_",
    "index" : "logstash-*"
    },
    "status" : 400
    }
    ]