1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Scala版のSpark Jarの最小限の構成

Last updated at Posted at 2016-05-10

結論、Scala-libraryもSpark-coreも要らない(Spark-submit時に勝手にclasspathに追加される)ので、これだけで動作する。

plugins.sbt
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.2")
build.sbt

  organization := "com.github.uryyyyyyy",
  scalaVersion := "2.11.7", //2.10.x
  libraryDependencies ++= Seq(
    "org.apache.spark" %% "spark-core" % sparkVersion % "provided"
  )

assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)

あとは、

sbt assembly

とかでいける。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?