Upgrade From 0.X To 1.0 Guide
If you need to keep 0.X data during the upgrade, you must select 1 to skip the table building statement (see the code below).
For the installation of Linkis1.0, please refer to [Quick Deployment Linkis1.0]($91d4bc5919fc5830.md)
Do you want to clear Linkis table information in the database?
2: Dangerous! Clear all data and rebuild the tables
other: exit
After the service is installed, the database structure needs to be modified, including table structure changes and new tables and data:
ALTER TABLE linkis_task ADD submit_user varchar(50) DEFAULT NULL COMMENT 'submitUser name';
ALTER TABLE linkis_task ADD `label_json` varchar(200) DEFAULT NULL COMMENT 'label json';
cd db/module
## Add the tables that the enginePlugin service depends on:
source linkis_ecp.sql
## Add a table that the public service-instanceLabel service depends on
source linkis_instance_label.sql
source linkis_manager.sql
This means that **Linkis0.X users' existing engine configuration parameters can no longer be migrated to Linkis1.0** (it is recommended that users reconfigure the engine parameters once).
The execution of the table building statement is as follows:
Because Linkis 1.0 supports multiple versions of the engine, it is necessary to modify the version of the engine when executing the initialization statement, as shown below:
vim linkis_configuration_dml.sql
## Modify the default version of the corresponding engine
SET @SPARK_LABEL="spark-2.4.3";
SET @HIVE_LABEL="hive-1.2.1";
## Execute the initialization statement