始める前に
手順
- 前バージョンのTalend Data Stewardshipのインスタンスを停止しますが、MongoDBの実行は続けます。
-
次のコマンドを実行してMongoDBをバックアップします。
Linuxの場合:
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>
<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 documentationを参照してください。MongoDBのバックアップ後にインスタンスを停止します。 -
MongoDB 4.xをインストールして起動します。
Talend Data Stewardship 8.0はMongoDBバージョン4.xと3.6をサポートしています。
-
データベースを削除します。
-
Talend Data Stewardshipデータベースユーザーとしてmongoシェルを開き、次のコマンドを実行します。
Linuxの場合:
Windowsの場合:cd <install_dir>/mongodb/bin ./mongo tds -u tds-user -p duser --port 27017
<install_dir>\mongodb\bin>mongo tds -u tds-user -p duser --port 27017
-
Talend Data Stewardshipデータベースに切り替え:
use tds
-
データベースを削除:
db.runCommand( { dropDatabase: 1 } )
-
mongo shellを終了:
exit
-
Talend Data Stewardshipデータベースユーザーとしてmongoシェルを開き、次のコマンドを実行します。
-
次のコマンドを実行して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ファイルをカスタマイズした時に、古い設定ファイルから新しいファイルに値をコピーできます。 -
Talend Data Stewardship 8.0をインストールし、外部MongoDBオプションを選択します。前のインスタンスと同じ設定を指定し、Talend Administration Centerにリンクさせます。
Talend Data Stewardship 8.0をサービスモードでインストールした場合は、MongoDBのインスタンスを停止します。
- Talend Data Stewardship 8.0のインストールから<install_dir>/tds/apache-tomcat/dataフォルダーを削除します。
- Talend Data Stewardship 8.0を起動します。
タスクの結果
これで、Talend Data Stewardship 8.0を使う準備ができました。