跳到主要内容 跳到补充内容

迁移到使用外部 MongoDB 的 Talend Data Stewardship 7.3.x

开始之前

如果您已安装和使用 Talend Dictionary Service 来创建自定义语义类型或更新预定义语义类型,您必须在迁移 Talend Data Stewardship 之前迁移 Talend Dictionary Service。请参阅迁移到 Talend Dictionary Service 7.3.x (仅提供英文版本)

下载 Talend Data Stewardship 7.3.x。

升级 Talend Administration Center。有关更多信息,请参阅升级 Talend Administration Center (仅提供英文版本)

步骤

  1. 停止以前版本的 Talend Data Stewardship 实例,但让 MongoDB 保持运行。
  2. 通过运行以下命令对 MongoDB 执行备份。
    Linux 系统:
    <mongo_path>/bin
    ./mongodump -h <source_mongodb_host>:<source_mongo_port> -u <mongo_tds_username> -p <mongo_tds_password> -d <mongo_tds_database> -o <backup_location>
    Windows 系统:
    <mongo_path>/bin>mongodump -h <source_mongodb_host>:<source_mongo_port> -u <mongo_tds_username> -p <mongo_tds_password> -d <mongo_tds_database> -o <backup_location>
    有关更多信息,请参阅 MongoDB 文档 (仅提供英文版本)
    备份 MongoDB 后,则停止实例。
  3. 安装并启动 MongoDB 4.x。
    Talend Data Stewardship 7.3 支持 MongoDB 版本 4.x 和 3.6。
  4. 删除数据库:
    1. Talend Data Stewardship 数据库用户身份打开一个 mongo shell 并执行以下命令。
      Linux 系统:
      cd <install_dir>/mongodb/bin
      ./mongo tds -u tds-user -p duser --port 27017
      Windows 系统:
      <install_dir>\mongodb\bin>mongo tds -u tds-user -p duser --port 27017
    2. 切换到 Talend Data Stewardship 数据库:use tds
    3. 删除数据库:db.runCommand( { dropDatabase: 1 } )
    4. 退出 mongo shell:exit
  5. 通过运行以下命令恢复 MongoDB 备份。
    Linux 系统:
    <mongo_path>/bin
    ./mongorestore -h <mongo_host>:<mongo_port> -u <mongo_tds_username> -p <mongo_tds_password> -d <mongo_tds_database> <backup_location>
    Windows 系统:
    <mongo_path>/bin>mongorestore -h <mongo_host>:<mongo_port> -u <mongo_tds_username> -p <mongo_tds_password> -d <mongo_tds_database> <backup_location>
    对于以前版本的 Talend Data Stewardship,如果已自定义 <Data_Stewardship_Path>/conf/data-stewardship.properties 文件,可以从旧的配置文件复制值到新文件。
  6. 安装 Talend Data Stewardship 7.3 并选择外部 MongoDB 选项。确保使用与之前实例相同的设置来配置该选项,并将其连接到您的 Talend Administration Center
    如果您以服务模式安装 Talend Data Stewardship 7.3,则停止 MongoDB 的实例。
  7. Talend Data Stewardship 7.3 安装中删除 <install_dir>/tds/apache-tomcat/data 文件夹。
  8. 启动 Talend Data Stewardship 7.3.
  9. 使用 Talend Dictionary Service API 重新发布语义类型,以将索引迁移至 Lucene 8。
    有关更多信息,请参阅

结果

您现已可以使用 Talend Data Stewardship 7.3。

本页面有帮助吗?

如果您发现此页面或其内容有任何问题 – 打字错误、遗漏步骤或技术错误 – 请告诉我们如何改进!