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

配置和启动 Talend Dictionary Service

步骤

  1. 打开 dq_dict/config/data-quality.properties 文件并编辑以下 Talend Dictionary Service 属性:

    字段

    操作

    oidc.url 输入 Talend Identity and Access Management 的 URL,例如 http://localhost:9080/oidc
    scim.url 输入 Talend Identity and Access Management SCIM 的 URL,例如 http://localhost:9080/scim
    oidc.semanticservice.id 输入 Talend Identity and Access Management OIDC 客户端标识符。
    oidc.semanticservice.secret 输入 Talend Identity and Access Management OIDC 密码。
    spring.cloud.stream.kafka.binder.brokers 输入对应于您的 Kafka 代理的主机。
    spring.cloud.stream.kafka.binder.defaultBrokerPort 输入对应于您的 Kafka 代理的端口。
    spring.cloud.stream.kafka.binder.zkNodes 输入对应于您的 ZooKeeper 节点的主机。
    spring.cloud.stream.kafka.binder.defaultZkPort 输入对应于您的 ZooKeeper 节点的端口。
    tsd.maven.connector.s3Repository.base-path 输入您的 MinIO 或 S3 构件库的基础路径。此参数为可选配置,可以留空。

    例如: semantic-types-repository

    tsd.maven.connector.s3Repository.username 输入您的 MinIO 或 S3 构件库的名称。

    例如: USERNAME123

    tsd.maven.connector.s3Repository.password 输入您的 MinIO 或 S3 构件库的密码。

    例如: PASSWORD123

    tsd.maven.connector.s3Repository.s3.region 输入您的 MinIO 或 S3 构件库的区域。

    例如: us-east-1

    tsd.maven.connector.s3Repository.s3.endpoint 输入您的 MinIO 或 S3 构件库的 URL。例如:http://127.0.0.1:9000
    tsd.maven.connector.s3Repository.bucket-url 输入您的 MinIO 或 S3 构件库桶的 URL。

    例如:s3://default-bucket

    在属性文件中输入的所有密码在您启动 Talend Dictionary Service 实例时加密。

  2. 将以下字段更新为您的 MongoDB 设置:

    字段

    描述

    spring.data.mongodb.host MongoDB 实例的主机名。例如:localhost
    spring.data.mongodb.port MongoDB 实例的端口号。例如:27017
    spring.data.mongodb.username 用于连接到该数据库的用户名。例如:dqdict-user
    spring.data.mongodb.password

    用于连接到数据库的密码。例如:duser

    spring.data.mongodb.database Talend Dictionary Service 连接的数据库的名称,默认为 dqdict。
    spring.data.mongodb.uri 要连接 MongoDB 实例的 URI

    如果您使用 URI 连接到 MongoDB 实例,必须注释掉以下参数:dq.mongo.hostdq.mongo.portdq.mongo.usernamedq.mongo.passworddq.mongo.database.name

    信息注释重要: 仅当安装了 Talend 提供的 TPS-4354 补丁时,此配置参数才可用。更多信息,请与您的管理员确认。
    spring.data.mongodb.ssl 默认值为false,如果您需要使用 SSL 协议及 MongoDB,请将其设为 true
    spring.data.mongodb.ssl.trust-store 信任库位置。
    spring.data.mongodb.ssl.trust-store-password 信任库密码。

    启动后密码被加密。

  3. 启动 MongoDB。
  4. 找到文件 semantic-dictionary-import.bat
  5. 使用编辑器打开此文件并更新占位符:
    • %%%MONGO_HOST%%%:MongoDB 的主机。例如 127.0.0.1
    • %%%MONGO_PORT%%%:MongoDB 的端口。例如 27017
    • %%%MONGO_DBNAME%%%:MongoDB 的数据库名称。例如,使用 dqdict 作为默认设置。
    • %%%MONGO_USER%%%Talend Dictionary Service 数据库的用户名。例如,使用 dqdict-user 作为默认设置。
    • %%%MONGO_PWD%%%Talend Dictionary Service 数据库的密码。例如,使用 duser 作为默认设置。
  6. 可选: 在该脚本中,mongorestore 实用程序是从 PATH 调用的。建议指定它的确切路径。
  7. 保存更改。
  8. 通过运行以下命令使此文件可执行:
    chmod +x semantic-dictionary-import.bat
  9. 通过按下列顺序启动组件来启动 Talend Dictionary Service
    1. Apache ZooKeeper
    2. Apache Kafka
    3. MinIO
    4. start.bat 文件

本页面有帮助吗?

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