Skip to content

Commit 2327a06

Browse files
mohanln-cloudMohan Kumar
and
Mohan Kumar
authored
Spark 3.0.2 example changes (#9)
* test * changing the spark version to 3.0.2 * removing test file Co-authored-by: Mohan Kumar <[email protected]>
1 parent 33f7816 commit 2327a06

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

java/csv_to_parquet/pom.xml

+11-5
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,20 @@
1010

1111
<properties>
1212
<oci-java-sdk-version>1.15.4</oci-java-sdk-version>
13+
<oci-java-sdk-version>1.25.2</oci-java-sdk-version>
14+
<spark.version>3.0.2</spark.version>
15+
<oci-hdfs-version>3.2.1.3</oci-hdfs-version>
16+
<ojdbc.version>18.3</ojdbc.version>
17+
<maven.compiler.source>1.8</maven.compiler.source>
18+
<maven.compiler.target>1.8</maven.compiler.target>
1319
</properties>
1420

1521
<dependencies>
1622
<!-- For interfacing with OCI -->
1723
<dependency>
1824
<groupId>com.oracle.oci.sdk</groupId>
1925
<artifactId>oci-hdfs-connector</artifactId>
20-
<version>2.9.2.6</version>
26+
<version>${oci-hdfs-version}</version>
2127
<scope>provided</scope>
2228
</dependency>
2329
<dependency>
@@ -30,13 +36,13 @@
3036
<dependency>
3137
<groupId>org.apache.spark</groupId>
3238
<artifactId>spark-core_2.12</artifactId>
33-
<version>2.4.4</version>
39+
<version>${spark.version}</version>
3440
<scope>provided</scope>
3541
</dependency>
3642
<dependency>
3743
<groupId>org.apache.spark</groupId>
3844
<artifactId>spark-sql_2.12</artifactId>
39-
<version>2.4.4</version>
45+
<version>${spark.version}</version>
4046
<scope>provided</scope>
4147
</dependency>
4248
</dependencies>
@@ -48,8 +54,8 @@
4854
<artifactId>maven-compiler-plugin</artifactId>
4955
<version>3.8.0</version>
5056
<configuration>
51-
<source>1.8</source>
52-
<target>1.8</target>
57+
<source>${maven.compiler.source}</source>
58+
<target>${maven.compiler.target}</target>
5359
</configuration>
5460
</plugin>
5561
</plugins>
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright (c) 2016, 2020 Oracle and/or its affiliates.
22
name := "csv_to_parquet"
33
version := "1.0"
4-
scalaVersion := "2.11.0"
4+
scalaVersion := "2.12.0"
55

66
libraryDependencies ++= Seq(
7-
"org.apache.spark" %% "spark-core" % "2.4.4" % "provided",
8-
"org.apache.spark" %% "spark-sql" % "2.4.4" % "provided",
9-
"com.oracle.oci.sdk" % "oci-java-sdk-common" % "1.22.1",
7+
"org.apache.spark" %% "spark-core" % "3.0.2" % "provided",
8+
"org.apache.spark" %% "spark-sql" % "3.0.2" % "provided",
9+
"com.oracle.oci.sdk" % "oci-java-sdk-common" % "1.25.2",
1010
)

scala/xml_to_parquet/build.sbt

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import sun.security.tools.PathList
2+
13
lazy val root = (project in file(".")).
24
settings(
35
inThisBuild(List(
@@ -6,11 +8,8 @@ lazy val root = (project in file(".")).
68
version := "0.6.0-SNAPSHOT"
79
)),
810
name := "IRS990",
9-
libraryDependencies += "org.apache.spark" %% "spark-core" % "2.4.4",
10-
libraryDependencies += "org.apache.spark" %% "spark-sql" % "2.4.4",
11+
libraryDependencies += "org.apache.spark" %% "spark-core" % "3.0.2",
12+
libraryDependencies += "org.apache.spark" %% "spark-sql" % "3.0.2",
1113
libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "1.1.0"
1214
)
13-
assemblyMergeStrategy in assembly := {
14-
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
15-
case x => MergeStrategy.first
16-
}
15+

0 commit comments

Comments
 (0)