Skip to content

clojure-spark/spark-examples-lein-java

Repository files navigation

spark-examples-lein-java 用lein来打包整个Spark(Java)项目

只要把项目拷java_src,pom.xml依赖写到project里面就行了

Usage

  • from spark-examples project pom.xml
(defproject spark-examples-lein-java "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.8.0"]
                 ;; from spark-examples project pom.xml
                 [org.apache.spark/spark-core_2.10 "1.6.0"]
                 [org.apache.spark/spark-mllib_2.10 "1.6.0"]
                 [org.apache.nifi/nifi-spark-receiver "1.3.0"]
                 [edu.stanford.nlp/stanford-corenlp "3.4.1"]]
  :java-source-paths ["java_src"]
  :aot :all
  :main com.jeremydyer.Main)
  • spark-submit 运行打包
spark-submit --master local --class com.jeremydyer.Main target/spark-examples-lein-java-0.1.0-SNAPSHOT-standalone.jar

License

Copyright © 2017 FIXME

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

用lein来打包整个Spark(Java)项目

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published