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)