Compile And Package

1 Fully compile Linkis

Compilation environment requirements: JDK8 or above is required for compilation, and both Oracle/Sun and OpenJDK are supported.

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. cd incubator-linkis-x.x.x
  2. vim pom.xml
  1. <properties>
  2. <hadoop.version>2.7.2</hadoop.version>
  3. <hive.version>1.2.1</hive.version>
  4. <spark.version>2.4.3</spark.version>
  5. <scala.version>2.11.12</scala.version>
  6. <jdk.compile.version>1.8</jdk.compile.version>
  7. </properties>

(1) If you are using it locally for the first time, you must first execute the following command in the root directory of the Linkis source code package:

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

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

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

(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) If you are using it locally for the first time, you must first execute the following command in the root directory of the Linkis source code 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

  1. cd publicService

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

  1. mvn clean install

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

  1. target/linkis-publicservice.zip