始める前に
Talend Dictionary Service 7.1.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.1.xをインストールしますが、インスタンスを起動しないでください。
Talend Dictionary Serviceのインストールおよび設定手順の詳細については、Talend Dictionary Serviceのインストールと設定インストールガイドを参照してください。
-
Talend Dictionary Service 7.1.xをサービスモードでインストールした場合は、インスタンスを停止し、データベースを削除して、MongoDBを停止します:
-
Talend Dictionary Serviceデータベースユーザーとしてmongoシェルを開き、次のコマンドを実行します。
cd <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シェルを開き、次のコマンドを実行します。
- 前バージョンの<Tomcat>/conf/data-quality.propertiesファイルにカスタム設定を実行した場合は、古い設定ファイルの値をコピーして7.1.xバージョンのファイルを更新します。
- 7.1.xバージョンのMongoDBを起動します。
-
次のコマンドを使用して、Talend Dictionary Serviceの前バージョンのMongoDBに実行したバックアップを7.1.x 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.1.xを以下の順序で起動してください:
- Apache Zookeeper
- Apache Kafka
- Apache Tomcat (Talend Administration Center (TAC)サーバーとTalend Identity and Access Managementサーバー)
- MongoDB
- オプション:
以下のファイルをTalend Data PreparationまたはTalend Data Stewardshipにインポートして、Talend Dictionary Serviceの前バージョンからの機能移行を実行します。
Talend Dictionary Serviceの前バージョン ファイル 説明 6.3.x <install_dir>/database/functionalMigration/6.3/Phone_number.json 複合セマンティックタイプPHONEの作成。これは、セマンティックタイプFR_PHONE、US_PHONE、UK_PHONE、およびDE_PHONEをグループ化します。 <install_dir>/database/functionalMigration/6.3/North_American_state.json 複合セマンティックタイプNA_STATEの作成。これは、セマンティックタイプUS_STATEおよびCA_PROVINCE_TERRITORYをグループ化します。 <install_dir>/database/functionalMigration/6.3/North_American_state_code.json 複合セマンティックタイプNA_STATE_CODEの作成。これは、セマンティックタイプUS_STATE_CODEおよびCA_PROVINCE_TERRITORY_CODEをグループ化します。 <install_dir>/database/functionalMigration/6.3/UK_Phone.json UK_PHONEセマンティックタイプの更新。 6.4.x <install_dir>/database/functionalMigration/6.4/UK_Phone.json UK_PHONEセマンティックタイプの更新。 6.5.xと7.0.xには機能移行手順がありません。
タスクの結果
Talend Dictionary Service 7.1.xを使用する準備ができました。