适用产品...
Big Data Platform
Data Fabric
Data Management Platform
Data Services Platform
MDM Platform
Real-Time Big Data Platform
开始之前
您已下载 Talend Dictionary Service 7.3.x。
步骤
- 停止以前版本的 Talend Dictionary Service 实例,但让 MongoDB 保持运行。
-
使用以下命令,备份用于以前版本的 Talend Dictionary Service 的 MongoDB 实例:
mongodump -h <source_mongodb_host>:<source_mongo_port> -d <source_database> -u <source_mongodb_user> -p <source_mongodb_password> -o <dump_output>
嵌入式 MongoDB 属性的默认值如下:属性 值 mongodb.host
localhost
mongodb.port
27017
mongodb.database
dqdict
mongodb.user
dqdict-user
mongodb.password
duser
示例
mongodump -h localhost:27017 -d dqdict -u dqdict-user -p duser -o dump\
- 停止 MongoDB 实例。
-
使用嵌入式 MongoDB 安装 Talend Dictionary Service 7.3.x 并且不启动该实例。
有关 Talend Dictionary Service 安装和配置程序的更多信息,请参阅《Talend 安装指南》。
-
如果您以服务模式安装 Talend Dictionary Service 7.3.x,则停止该实例,删除数据库并停止 MongoDB:
-
以 Talend Dictionary Service 数据库用户身份打开一个 mongo shell 并执行以下命令。
Linux 系统:
Windows 系统:cd <install_dir>/mongodb/bin ./mongo dqdict -u dqdict-user -p duser --port 27017
<install_dir>\mongodb\bin>mongo dqdict -u dqdict-user -p duser --port 27017
-
切换至 Talend Dictionary Service 数据库:
use dqdict
-
删除数据库:
db.runCommand( { dropDatabase: 1 } )
-
退出 mongo shell:
exit
- 停止 MongoDB。
-
以 Talend Dictionary Service 数据库用户身份打开一个 mongo shell 并执行以下命令。
- 如果已对以前版本的 <Tomcat>/conf/data-quality.properties 文件执行任何自定义配置,请通过从旧的配置文件复制值来更新 7.3.x 版本的该文件。
- 启动 7.3.x 版本的 MongoDB。
-
在 7.3.x MongoDB 实例上,使用以下命令恢复在以前版本的 Talend Dictionary Service 上 MongoDB 上执行的备份:
mongorestore -h <source_mongodb_host>:<source_mongo_port> -d <source_database> -u <source_mongodb_user> -p <source_mongodb_password> dump\
示例
mongorestore -h localhost:27017 -d dqdict -u dqdict-user -p duser dump\
-
通过按顺序启动下列组件来启动 Talend Dictionary Service 7.3.x:
- Apache Zookeeper
- Apache Kafka
- Apache Tomcat (Talend Administration Center 服务器和 Talend Identity and Access Management 服务器)
- MongoDB
结果
您现已可以使用 Talend Dictionary Service 7.3.x。