- About MDB
- Installation
- Upgrade
- Concepts
- User Interface
- Source Requirements
- Target Database Requirements
- Target Kafka Requirements
- Usage Restriction
- Frequently Exceptions
- Release Note
MDB Upgrade
Upgrade Procedure
Download Software
Download the MDB software package of the latest version. To obtain the software package, contact the sales personnel.
Upload and Decompress the Software Package
Upload the MDB software package to the server and decompress it.
tar -zxvf mdb_v1.0.1.RELEASE_linux_x86_64.tar.gz
Preparing for the upgrade
Example: Old version MDB installation directory: /u01/mdb_v1.0.0.RELEASE_linux_x86_64
Switch to the old version MDB software package directory and stop MDB service.
cd /u01/mdb_v1.0.0.RELEASE_linux_x86_64
./mdb stop
Switch to the decompressed MDB software package directory and copy the file from Old version MDB.
cd mdb_v1.0.1.RELEASE_linux_x86_64
# copy config.json、license.json to mdb_v1.0.1.RELEASE_linux_x86_64 directory
cp -f /u01/mdb_v1.0.0.RELEASE_linux_x86_64/config.json ./
cp -f /u01/mdb_v1.0.0.RELEASE_linux_x86_64/license.json ./
# move mtk、sca 到 mdb_v1.0.1.RELEASE_linux_x86_64 directory
mv /u01/mdb_v1.0.0.RELEASE_linux_x86_64/mtk/* ./mtk
mv /u01/mdb_v1.0.0.RELEASE_linux_x86_64/sca/* ./sca
Upgrade MDB
Check and make sure that you have switched to the MDB software package directory.
pwd # Make sure that you have switched to the mdb_v1.0.1.RELEASE_linux_x86_64 directory.
Upgrade MDB.
./mdb upgrade
The output is as follows:
2024-04-30 16:37:46 ======BEGIN TO UPGRADE MDB======
2024-04-30 16:37:46 1.CHECK MDB FILE
2024-04-30 16:37:46 2.CHECK MDB ENVIRONMENT
2024-04-30 16:37:46 JAVA_VERSION: 11.0
2024-04-30 16:37:46 EXIST RESIDUAL DIRS ! PATH: /data/mdb_test/mdb_data/kafka-logs ,/data/mdb_test/mdb_data/zookeeper
2024-04-30 16:37:46 3.UNZIP KAFKA
2024-04-30 16:37:48 4.INSTALL MDB SERVER
2024-04-30 16:37:49 5.INSTALL MDB DATA WORKER
2024-04-30 16:37:50 6.INSTALL MDB CONNECTOR LOG
2024-04-30 16:37:50 7.INSTALL MVD SERVER
2024-04-30 16:37:51
======END UPGRADE MDB RESULT======
+------------+-----------+-------------+---------------+--------------------+
| File_Check | Env_Check | MDB_Install | KAFKA_INSTALL | MVD_Server_Install |
+------------+-----------+-------------+---------------+--------------------+
| Success | Success | Success | Success | Success |
+------------+-----------+-------------+---------------+--------------------+
Start MDB
Start MDB.
./mdb start
The output is as follows:
2024-04-30 16:21:09 start zookeeper success
2024-04-30 16:21:09 start kafka success
2024-04-30 16:21:09 start connector success
2024-04-30 16:21:09 start mdb-server success
2024-04-30 16:21:09 start connectorlog success
2024-04-30 16:21:09 [MVD_SERVER] start mvd-server success
2024-04-30 16:21:09 After MDB is started, the the ports occupied by programs are as follows:
+-------+-----------+-----------+------------+------------+
| KAFKA | ZOOKEEPER | CONNECTOR | MDB_SERVER | MVD_SERVER |
+-------+-----------+-----------+------------+------------+
| 9092 | 2181 | 8083 | 55437 | 9876 |
+-------+-----------+-----------+------------+------------+
2024-04-30 16:21:10 MDB program service status
+--------+-----------+-----------+------------+------------+
| KAFKA | ZOOKEEPER | CONNECTOR | MDB_SERVER | MVD_SERVER |
+--------+-----------+-----------+------------+------------+
| online | online | online | online | online |
+--------+-----------+-----------+------------+------------+
Login to MDB
After MDB is started, access the client browser (Google Chrome is recommended) to check whether the original user can login normally.
http://localhost:55437/mdb/index.html
After a successful login, restart the suspended service in the channel list.