Skip to content

Commit

Permalink
Refine maven Spark related dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses-you committed Nov 6, 2023
1 parent ba045c7 commit a4ac931
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 145 deletions.
2 changes: 1 addition & 1 deletion backends-clickhouse/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-hive-thriftserver_${scala.binary.version}</artifactId>
<artifactId>spark-hive_${scala.binary.version}</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
6 changes: 0 additions & 6 deletions backends-velox/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,9 @@
<artifactId>spark-catalyst_${scala.binary.version}</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-hive-thriftserver_${scala.binary.version}</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-hive_${scala.binary.version}</artifactId>
<version>${spark.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
7 changes: 0 additions & 7 deletions gluten-celeborn/clickhouse/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,6 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-hive-thriftserver_${scala.binary.version}</artifactId>
<version>${spark.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.hive.hcatalog</groupId>
<artifactId>hive-hcatalog-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gluten-celeborn/package/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<artifactId>gluten-celeborn-package</artifactId>
<packaging>jar</packaging>
<name>Gluten Celeborn Common</name>
<name>Gluten Celeborn Package</name>

<profiles>
<profile>
Expand Down
2 changes: 1 addition & 1 deletion gluten-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-hive-thriftserver_${scala.binary.version}</artifactId>
<artifactId>spark-hive_${scala.binary.version}</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
32 changes: 1 addition & 31 deletions gluten-ut/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-hive-thriftserver_${scala.binary.version}</artifactId>
<artifactId>spark-hive_${scala.binary.version}</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -174,35 +174,5 @@
</plugin>
</plugins>
</pluginManagement>

</build>

<profiles>
<profile>
<id>spark-3.2</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
</properties>
<modules>
<module>spark32</module>
<module>common</module>
</modules>
</profile>
<profile>
<id>spark-3.3</id>
<modules>
<module>spark33</module>
<module>common</module>
</modules>
</profile>
<profile>
<id>spark-3.4</id>
<modules>
<module>spark34</module>
<module>common</module>
</modules>
</profile>
</profiles>
</project>
2 changes: 1 addition & 1 deletion package/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-hive-thriftserver_${scala.binary.version}</artifactId>
<artifactId>spark-hive_${scala.binary.version}</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
73 changes: 27 additions & 46 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,36 +30,30 @@
</licenses>

<modules>
<module>shims</module>
<module>gluten-core</module>
<module>gluten-ui</module>
<module>package</module>
<module>shims</module>
<module>shims/common</module>
<module>shims/${spark.shim.version}</module>
<module>substrait/substrait-spark</module>
<module>gluten-ui</module>
</modules>

<properties>
<caffeine.version.java8>2.9.3</caffeine.version.java8>
<spark32.version>3.2.2</spark32.version>
<spark32.scala>2.12.15</spark32.scala>
<spark32bundle.version>3.2</spark32bundle.version>
<spark33.version>3.3.1</spark33.version>
<spark34.version>3.4.1</spark34.version>
<spark33.scala>2.12.15</spark33.scala>
<spark33bundle.version>3.3</spark33bundle.version>
<spark34bundle.version>3.4</spark34bundle.version>
<delta20.version>2.0.1</delta20.version>
<delta22.version>2.2.0</delta22.version>
<delta.version>${delta20.version}</delta.version>
<delta.version>2.0.1</delta.version>
<delta.binary.version>20</delta.binary.version>
<scala.binary.version>2.12</scala.binary.version>
<scala.version>${spark32.scala}</scala.version>
<spark.version>${spark32.version}</spark.version>
<scala.version>2.12.15</scala.version>
<spark.major.version>3</spark.major.version>
<sparkbundle.version>3.2</sparkbundle.version>
<spark.shim.version>spark32</spark.shim.version>
<spark.version>3.2.2</spark.version>
<sparkshim.artifactId>spark-sql-columnar-shims-${spark.shim.version}</sparkshim.artifactId>
<celeborn.version>0.3.0-incubating</celeborn.version>
<sparkbundle.version>${spark32bundle.version}</sparkbundle.version>
<arrow.version>12.0.0</arrow.version>
<arrow-memory.artifact>arrow-memory-unsafe</arrow-memory.artifact>
<hadoop.version>${hadoop.version}</hadoop.version>
<hadoop.version>2.7.4</hadoop.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<project.prefix>spark-sql-columnar</project.prefix>
Expand All @@ -70,8 +64,7 @@
<!-- For unit tests -->
<clickhouse.lib.path>/usr/local/clickhouse/lib/libch.so</clickhouse.lib.path>
<tpcds.data.path>/data/tpcds-data-sf1</tpcds.data.path>
<fasterxml.spark33.version>2.13.3</fasterxml.spark33.version>
<fasterxml.version>${fasterxml.spark33.version}</fasterxml.version>
<fasterxml.version>2.13.3</fasterxml.version>
<junit.version>4.13.1</junit.version>

<substrait.version>0.5.0</substrait.version>
Expand Down Expand Up @@ -106,9 +99,6 @@
<maven.jar.plugin>3.2.2</maven.jar.plugin>
<scalastyle.version>1.0.0</scalastyle.version>
<scalatest-maven-plugin.version>2.2.0</scalatest-maven-plugin.version>
<spark32.shim.version>spark-sql-columnar-shims-spark32</spark32.shim.version>
<spark33.shim.version>spark-sql-columnar-shims-spark33</spark33.shim.version>
<spark34.shim.version>spark-sql-columnar-shims-spark34</spark34.shim.version>
</properties>

<profiles>
Expand All @@ -118,46 +108,35 @@
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<scala.version>${spark32.scala}</scala.version>
<spark.major.version>3</spark.major.version>
<spark.version>${spark32.version}</spark.version>
<delta.version>${delta20.version}</delta.version>
<sparkbundle.version>3.2</sparkbundle.version>
<spark.shim.version>spark32</spark.shim.version>
<spark.version>3.2.2</spark.version>
<delta.version>2.0.1</delta.version>
<delta.binary.version>20</delta.binary.version>
<sparkbundle.version>${spark32bundle.version}</sparkbundle.version>
<sparkshim.artifactId>${spark32.shim.version}</sparkshim.artifactId>
</properties>
</profile>
<profile>
<id>spark-3.3</id>
<properties>
<scala.version>${spark33.scala}</scala.version>
<spark.major.version>3</spark.major.version>
<spark.version>${spark33.version}</spark.version>
<delta.version>${delta22.version}</delta.version>
<sparkbundle.version>3.3</sparkbundle.version>
<spark.shim.version>spark33</spark.shim.version>
<spark.version>3.3.1</spark.version>
<delta.version>2.2.0</delta.version>
<delta.binary.version>22</delta.binary.version>
<sparkbundle.version>${spark33bundle.version}</sparkbundle.version>
<sparkshim.artifactId>${spark33.shim.version}</sparkshim.artifactId>
</properties>
</profile>
<profile>
<id>spark-3.4</id>
<properties>
<scala.version>${spark33.scala}</scala.version>
<spark.major.version>3</spark.major.version>
<spark.version>${spark34.version}</spark.version>
<delta.version>${delta22.version}</delta.version>
<sparkbundle.version>3.4</sparkbundle.version>
<spark.shim.version>spark34</spark.shim.version>
<spark.version>3.4.1</spark.version>
<delta.version>2.2.0</delta.version>
<delta.binary.version>22</delta.binary.version>
<sparkbundle.version>${spark34bundle.version}</sparkbundle.version>
<sparkshim.artifactId>${spark34.shim.version}</sparkshim.artifactId>
</properties>
</profile>
<profile>
<id>hadoop-2.7.4</id>
<activation>
<property>
<name>!hadoop.version</name>
</property>
</activation>
<properties>
<hadoop.version>2.7.4</hadoop.version>
</properties>
Expand Down Expand Up @@ -237,6 +216,8 @@
<id>spark-ut</id>
<modules>
<module>gluten-ut</module>
<module>gluten-ut/common</module>
<module>gluten-ut/${spark.shim.version}</module>
</modules>
</profile>
</profiles>
Expand Down Expand Up @@ -286,7 +267,7 @@
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-hive-thriftserver_${scala.binary.version}</artifactId>
<artifactId>spark-hive_${scala.binary.version}</artifactId>
<version>${spark.version}</version>
<scope>provided</scope>
<exclusions>
Expand Down
2 changes: 0 additions & 2 deletions shims/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_${scala.binary.version}</artifactId>
<version>${spark.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-hive_${scala.binary.version}</artifactId>
<version>${spark.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
28 changes: 0 additions & 28 deletions shims/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>${hadoop.version}</version>
</dependency>
</dependencies>

Expand All @@ -64,32 +63,5 @@
</plugin>
</plugins>
</pluginManagement>

</build>
<profiles>
<profile>
<id>spark-3.2</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<modules>
<module>common</module>
<module>spark32</module>
</modules>
</profile>
<profile>
<id>spark-3.3</id>
<modules>
<module>common</module>
<module>spark33</module>
</modules>
</profile>
<profile>
<id>spark-3.4</id>
<modules>
<module>common</module>
<module>spark34</module>
</modules>
</profile>
</profiles>
</project>
7 changes: 0 additions & 7 deletions shims/spark32/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,18 @@
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_${scala.binary.version}</artifactId>
<version>${spark32.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-catalyst_2.12</artifactId>
<version>${spark32.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.12</artifactId>
<version>${spark32.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
Expand All @@ -72,25 +69,21 @@
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_${scala.binary.version}</artifactId>
<version>${spark32.version}</version>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_${scala.binary.version}</artifactId>
<version>${spark32.version}</version>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-catalyst_${scala.binary.version}</artifactId>
<version>${spark32.version}</version>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-hive_${scala.binary.version}</artifactId>
<version>${spark.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
Loading

0 comments on commit a4ac931

Please sign in to comment.