0
我试图使用Sparkling library从Clojure使用Spark。然而,即使是一个简单的代码是这样的:Clojure:无法运行Sparkling
(ns sql-spark.core
(:gen-class)
(:require [yesql.core :refer [defquery]]
[clojure.java.io :as io]
[clojure.edn :as edn]
[sparkling.conf :as conf]
[sparkling.core :as spark]))
(defn -main []
(println "Hi"))
结束了:
Exception in thread "main" java.lang.ClassNotFoundException: org.apache.spark.SparkConf, compiling:(sparkling/conf.clj:1:1)
我已经安装了火花,我已经使用Scala使用了很多次。我在这里错过了什么?
编辑 project.clj
:
(defproject sql-spark "1.0.0"
: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"]
[yesql "0.5.3"]
[mysql/mysql-connector-java "5.1.32"]
[gorillalabs/sparkling "1.2.5"]]
:main ^:skip-aot sql-spark.core)