Version upgrades above 1.0.3

  • If you are installing and using Linkis for the first time, or reinstalling Linkis, you don’t need to pay attention to the Linkis upgrade guide.
  • If components of other platforms (DataSphereStudio/Qualitis/Visualis, etc.) are involved, please confirm the compatibility between versions before upgrading, and it is best to use the recommended version.
  • It is recommended to control the version through the soft chain. You can switch the version by modifying the target address of the soft chain. For example:
  • The upgrade process mainly requires attention to the adjustment of the database table structure and the adjustment of some configuration parameters
  • In addition to the upgrade of the back-end services, the management console resources of linkis also need to be upgraded together
  • The main changes of each version can be found in the overview information of the version https://linkis.apache.org/zh-CN/docs/x.x.x/release and the version [release-note]( .org/zh-CN/download/main): https://linkis.apache.org/zh-CN/download/main
  • The database changes/configuration parameter changes of each version are based on the previous version

Press Deployment guide document (the installation of the management console in the document can be skipped) to install the new version.

When installing the service, if the historical data is retained, please retain the historical data, if you do not need to retain the data, just reinstall it directly

Find the corresponding version db/upgrade/x.x.x-schema/ sql change file

If it is executed across multiple versions, please execute them in the order of versions, If some versions do not have x.x.x_schema (after the linkis>=1.1.0 version, as long as the adjustment of the database table is involved, there will be a corresponding version of the schema file), it means that there is no change in the data table in this version

notice

Execute upgrade1.1.1 under DDL upgrade script in schema, such as if it is executed to linkis cg rm resource action Record related error, please check whether the statement creating the table is missing engine=innodb default charset=utf8; If it is missing, please add it before execution

  1. ├── linkis_ddl.sql # The current version of the full ddl database definition language table building statement
  2. ├── linkis_dml.sql # The current version of the full dml data manipulation language data additions and changes
  3. └── upgrade
  4. └── mysql
  5. ├── linkis_ddl.sql
  6. └── linkis_dml.sql
  7. ├── 1.1.1_schema
  8. └── mysql
  9. ├── linkis_ddl.sql
  10. └── linkis_dml.sql
  11. └── 1.1.3_schema
  12. └── mysql
  13. └── linkis_ddl.sql
  1. #If it is executed across multiple versions, please execute in order of versions, execute ddl first and then execute ddl
  2. #For example, currently upgrade from linkis-1.0.3 to linkis-1.1.2
  3. source upgrade/1.1.0_schema/mysql/linkis_ddl.sql
  4. source upgrade/1.1.0_schema/mysql/linkis_dml.sql
  5. source upgrade/1.1.1_schema/mysql/linkis_ddl.sql

Authentication for interface calls yes 1.1.1 Version adjustment Migrate the original TOKEN configuration from ${LINKIS_HOME}/conf/token.properties to the database table linkis_mg_gateway_auth_token, For the TOKEN originally configured in token.properties, you need to manually migrate the table

4.2 UDF Adjustment

1.1.1 supports the functions of UDF multi-version control and UDF storage to BML, the table structure stored by UDF functions has been adjusted, and the historical data of UDF needs to be migrated separately

In version 1.1.1, the key of the session field was adjusted from bdp-user-ticket-id-> to linkis_user_session_ticket_id_v1, If it is an upgrade to Linkis. At the same time, DSS or other projects are deployed, but in their service lib package, the linkis-module-x.x.x.jar package of Linkis that they depend on is <1.1.1, you need to modify the file located in ${LINKIS_HOME}/conf/linkis.properties

4.4 Adjustment of default queue

1.1.1 Begin to adjust the default cluster name of yarn queue wds.linkis.rm.cluster sit is adjusted to default, if you have been using sit, please modify the table data Cluster name in linkis_cg_rm_external_resource_provider

If there is a third-party appconn plugin installed in ${LINKIS_HOME_OLD}/lib/linkis-engineconn-plugins in the previous version of Linkis, you need to copy it to the new version, It is best to link to the appconn path through a soft chain like:

  1. #Check if the old version has a third-party appconn installed
  2. cd ${LINKIS_HOME_OLD}/lib/linkis-engineconn-plugins/
  3. ll
  4. appconn -> /appcom/Install/LinkisInstall/appconn
  5. #The new version is consistent
  6. cd ${LINKIS_HOME}/lib/linkis-engineconn-plugins/
  7. #soft chain
  8. ln -snf /appcom/Install/LinkisInstall/appconn appconn

If dss is installed in the original version, you need to copy the dss-gateway-support-x.x.x.jar in the original package to the ./lib/linkis-spring-cloud-services/linkis-mg-gateway/ directory of linkis like:

5.1 Download the front-end installation package and unzip it

Upload it to the server where the management console is located, and decompress it

The nginx configuration file is by default in /etc/nginx/conf.d/* nginx log files are in /var/log/nginx/access.log and /var/log/nginx/error.log

Scenario 1: If it is integrated into the DSS project, modify the address of the linkis management console resource in the DSS project to point to The nginx configuration file for dss is by default in /etc/nginx/conf.d/dss.conf

  1. #Example
  2. server {
  3. ......
  4. location dss/linkis {
  5. alias /appcom/Install/linkis-web-newversion/dist; # static file directory
  6. index index.html index.html;
  7. }
  8. .....
  9. }

Scenario 2: If linkis is deployed independently Modify the configuration of Nginx, the static resource address points to the new version of the linkis console Linkis’ nginx configuration file is by default in /etc/nginx/conf.d/dss.conf

  1. #Example
  2. server {
  3. ......
  4. location dss/linkis {
  5. alias /appcom/Install/linkis-web-newversion/dist; # static file directory
  6. index index.html index.html;
  7. }
  8. ......
  9. }

Reload nginx configuration

5.3 Notes