-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
38 lines (29 loc) · 1.53 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name := "sql-mongo-validation"
version := "0.1"
scalaVersion := "2.12.10"
// https://mvnrepository.com/artifact/org.apache.spark/spark-core
libraryDependencies += "org.apache.spark" %% "spark-core" % "3.1.2" % "provided"
// https://mvnrepository.com/artifact/org.apache.spark/spark-sql
libraryDependencies += "org.apache.spark" %% "spark-sql" % "3.1.2" % "provided"
// https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc
libraryDependencies += "com.microsoft.sqlserver" % "mssql-jdbc" % "7.4.1.jre11"
// https://mvnrepository.com/artifact/org.mongodb.spark/mongo-spark-connector
libraryDependencies += "org.mongodb.spark" %% "mongo-spark-connector" % "3.0.1"
Compile / mainClass := Some("com.sparkTutorial.input")
assembly / mainClass := Some("com.sparkTutorial.input")
assembly / assemblyMergeStrategy := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
}
/*
docker cp /Users/shangupta/IdeaProjects/sql-mongo-validation/target/scala-2.12/sql-mongo-validation-assembly-0.1.jar master-node:/home/shangupta/
docker cp /Users/shangupta/IdeaProjects/sql-mongo-validation/cluster-properties.txt master-node:/home/shangupta/
spark-submit \
--class com.sparkTutorial.input \
--deploy-mode client \
--master "spark://master-node:7077" \
target/scala-2.12/sql-mongo-validation-assembly-0.1.jar
--properties-file /home/shangupta/cluster-properties.txt \
spark.dynamicAllocation.enabled true
*/
//docker cp out/artifacts/sql_mongo_validation_jar/sql-mongo-validation.jar master-node:/home/shangupta