Installation Of A Single Service

1 Obtain the installation package and install it

  1. By getting the installation package of the corresponding module in our release installation package:
  1. ## 1. Unzip the installation package
  2. tar -xvzf wedatasphere-linkis-0.11.0-dist.tar.gz
  3. cd wedatasphere-linkis-0.11.0-dist
  4. ## 2. Select the corresponding service installation package and go to the corresponding installation directory: $SERVER_HOME
  5. cp wedatasphere-linkis-0.11.0-dist/share/linkis/linkis-publicservice/linkis-publicservice.zip $SERVER_HOME
  6. ## 3. Copy the installation package to the corresponding installation directory. For example: publicservice needs to copy linkis-publicservice.zip
  7. ## Decompress the corresponding service
  8. unzip $SERVERNAME.zip
  9. ## 4. The module package is a public package, except for gateway and Eureka, everything else needs to be copied.
  10. cp ${workDir}/share/linkis/module/module.zip $SERVER_HOME
  11. ## 5. Unzip the module package
  12. cd $SERVER_HOME/;unzip module.zip> /dev/null;
  13. ## 6. Copy the corresponding installation package
  14. cp module/lib/* $SERVER_HOME/$SERVERNAME/lib/

2 Modify configuration

  1. After the package is ready, it is to modify the configuration, the configuration mainly modify application.yml and linkis.properties, the configuration is under the conf directory

2.1 Modify application.yml

  1. server:
  2. port: $SERVER_PORT #corresponding service port
  3. eureka:
  4. client:
  5. serviceUrl:
  6. defaultZone: $EUREKA_URL #corresponding EUREKA address

2.2 Modify linkis.properties

The linkis.properties modification of each service is different, now all services are listed below and explained:

  • GateWay:
  1. wds.linkis.ldap.proxy.url=$LDAP_URL #LDAP address, login required
  2. wds.linkis.ldap.proxy.baseDN=$LDAP_BASEDN
  3. wds.linkis.gateway.admin.user=$deployUser #Deployment user, as the administrator user
  • PublicService:
  1. ##Database connection information
  2. wds.linkis.server.mybatis.datasource.url=jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DB}?characterEncoding=UTF-8
  3. wds.linkis.server.mybatis.datasource.username=$MYSQL_USER
  4. wds.linkis.server.mybatis.datasource.password=$MYSQL_PASSWORD
  5. wds.linkis.workspace.filesystem.localuserrootpath=$WORKSPACE_USER_ROOT_PATH ##Workspace directory
  6. wds.linkis.workspace.filesystem.hdfsuserrootpath.prefix=$HDFS_USER_ROOT_PATH ##HDFS user root directory
  • Linkis-Database
  1. ##Database connection information
  2. wds.linkis.server.mybatis.datasource.url=jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DB}?characterEncoding=UTF-8
  3. wds.linkis.server.mybatis.datasource.username=$MYSQL_USER
  4. wds.linkis.server.mybatis.datasource.password=$MYSQL_PASSWORD
  • ResourceManager
  1. ##Database connection information
  2. wds.linkis.server.mybatis.datasource.url=jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DB}?characterEncoding=UTF-8
  3. wds.linkis.server.mybatis.datasource.username=$MYSQL_USER
  4. wds.linkis.server.mybatis.datasource.password=$MYSQL_PASSWORD
  • Entrance:
  1. wds.linkis.entrance.config.logPath=$WORKSPACE_USER_ROOT_PATH
  2. wds.linkis.resultSet.store.path=$HDFS_USER_ROOT_PATH
  • EngineManager:
  1. ##User switching script
  2. wds.linkis.enginemanager.sudo.script=$SERVER_HOME/$SERVERNAME/bin/rootScript.sh
  • Additional parameters added by SparkEngineManager
  1. ## Configure engine jar
  2. wds.linkis.enginemanager.core.jar=$SERVER_HOME/$SERVERNAME/lib/linkis-ujes-spark-engine-version.jar
  3. ##Configure main jar
  4. wds.linkis.spark.driver.conf.mainjar=$SERVER_HOME/$SERVERNAME/conf:$SERVER_HOME/$SERVERNAME/lib/*