【发布时间】:2015-09-11 09:22:06
【问题描述】:
我尝试在我的 Clojure 项目中使用 Apache Storm 和 Redis。我的project.clj 看起来像这样:
(defproject storm "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.7.0"]
[org.apache.storm/storm-core "0.9.5"]
[com.taoensso/carmine "2.11.1"] ])
Redis 连接器模块中的命名空间声明为:
(ns storm.redis
(:require [taoensso.carmine :as car]))
现在,由于某种原因,如果我尝试评估上述命名空间声明,我会收到一个奇怪的错误:
CompilerException java.lang.Exception: namespace 'taoensso.carmine' not found, compiling:(storm/redis.clj:1:22)
如果我将 project.clj 中的 Storm 依赖修改为
[storm "0.9.0.1"] ; Last available version on Clojars
然后一切正常。我做错了什么?
【问题讨论】:
标签: clojure redis apache-storm