Upgrade From 0.X To 1.0 Guide

    1. 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).
    2. For the installation of Linkis1.0, please refer to [Quick Deployment Linkis1.0]($91d4bc5919fc5830.md)
    1. Do you want to clear Linkis table information in the database?
    2. 2: Dangerous! Clear all data and rebuild the tables
    3. other: exit
    1. After the service is installed, the database structure needs to be modified, including table structure changes and new tables and data:
    1. ALTER TABLE linkis_task ADD submit_user varchar(50) DEFAULT NULL COMMENT 'submitUser name';
    2. ALTER TABLE linkis_task ADD `label_json` varchar(200) DEFAULT NULL COMMENT 'label json';
    1. cd db/module
    2. ## Add the tables that the enginePlugin service depends on:
    3. source linkis_ecp.sql
    4. ## Add a table that the public service-instanceLabel service depends on
    5. source linkis_instance_label.sql
    6. source linkis_manager.sql
    1. 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).
    2. The execution of the table building statement is as follows:
    1. 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:
    1. vim linkis_configuration_dml.sql
    2. ## Modify the default version of the corresponding engine
    3. SET @SPARK_LABEL="spark-2.4.3";
    4. SET @HIVE_LABEL="hive-1.2.1";
    5. ## Execute the initialization statement