LoginSignup
2
2

More than 5 years have passed since last update.

[今の最新] sbt-assembly 0.14.1 + spark 1.5.2 でとりあえずspark-submitできるjarを作る設定ファイル

Last updated at Posted at 2015-12-13
build.sbt
name := "spark_collaborative_filtering_for_tweet_anime" //自分のアプリ名にする

version := "1.0"

scalaVersion := "2.11.7"

libraryDependencies ++= Seq(
  ("org.apache.spark" %% "spark-core" % "1.5.2").
    exclude("org.mortbay.jetty", "servlet-api").
    exclude("com.google.guava","guava").
    exclude("org.apache.hadoop","hadoop-yarn-api").
    exclude("commons-beanutils", "commons-beanutils-core").
    exclude("commons-collections", "commons-collections").
    exclude("commons-logging", "commons-logging").
    exclude("org.spark-project.spark", "unused").
    exclude("com.esotericsoftware.minlog", "minlog").
    exclude("javax.xml.bind", "jsr173_api") //javax.xml.bind/jsr173_api/jars/jsr173_api-1.0.jar
)

libraryDependencies ++= Seq(
  ("org.apache.spark" %% "spark-mllib" % "1.5.2").
    exclude("org.mortbay.jetty", "servlet-api").
    exclude("com.google.guava","guava").
    exclude("org.apache.hadoop","hadoop-yarn-api").
    exclude("commons-beanutils", "commons-beanutils-core").
    exclude("commons-collections", "commons-collections").
    exclude("commons-logging", "commons-logging").
    exclude("org.spark-project.spark", "unused").
    exclude("com.esotericsoftware.minlog", "minlog").
    exclude("javax.xml.bind", "jsr173_api") //javax.xml.bind/jsr173_api/jars/jsr173_api-1.0.jar
)

mainClass in assembly := Some("prediction_save") // メインクラスを指定
2
2
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
2
2