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

配置和启动 Talend Dictionary Service

步骤

  1. 打开 <Tomcat>/conf/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 构件库桶的 URL。

    例如: s3://talend-app-shared

    tsd.maven.connector.s3Repository.username 输入您的 MinIO 或 S3 构件库的基础路径。此参数为可选配置,可以留空。

    例如: semantic-types-repository

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

    例如: USERNAME123

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

    例如: PASSWORD123

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

    例如: us-east-1

    tsd.maven.connector.s3Repository.bucket-url 输入您的 MinIO 或 S3 构件库的 URL。

    例如: https://minio-company.com

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

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

    字段

    描述

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

    用于连接到数据库的密码。

    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. 转到 dq_dict/database 文件夹并编辑 semantic-dictionary-import.sh 脚本。
  5. 将变量替换为您的 MongoDB 凭据。
  6. 执行该脚本。
  7. 通过按下列顺序启动组件来启动 Talend Dictionary Service
    • Apache ZooKeeper
    • Apache Kafka
    • Apache Tomcat
    • MinIO

本页面有帮助吗?

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