Compile And Package

    After obtaining the project code from git, use maven to package the project installation package.

    Please note: The official recommendation is to use Hadoop-2.7.2, Hive-1.2.1, Spark-2.4.3 and Scala-2.11.12 to compile Linkis.

    If you want to use other versions of Hadoop, Hive, and Spark to compile Linkis, you can enter the root directory of the Linkis source code package and manually modify the relevant version information of the pom.xml file, as follows:

    1. <hadoop.version>2.7.2</hadoop.version>
    2. <spark.version>2.4.3</spark.version>
    3. <scala.version>2.11.12</scala.version>
    4. <jdk.compile.version>1.8</jdk.compile.version>
    1. mvn -N install

    (2) Execute the following command in the root directory of the Linkis source code package:

    (3) Obtain the installation package, under the assembly->target directory of the project:

    1. wedatasphere-linkis-x.x.x/assembly/target/wedatasphere-linkis-x.x.x-dist.tar.gz

    2 Compile a single service

    After obtaining the project code from git, use maven to package the project installation package.

    1. cd incubator-linkis-x.x.x
    2. mvn -N install

    (2) Jump to the corresponding module through the command line in the terminal, such as

    (3) Execute the compile command in the pom.xml directory corresponding to the module:

      (4) Obtain the installation package, there will be a compiled package in the ->target directory of the corresponding module:

      1. target/linkis-publicservice.zip