Having getting baseline storm-deploy to work

238 views
Skip to first unread message

Anthony Johnson

unread,
Mar 27, 2012, 5:18:22 PM3/27/12
to storm...@googlegroups.com
So, I'm trying to follow the basic instruction for using storm-deploy... which seems like it should be simple enough, and apparently people are able to get this to run, but i'm not having any luck.  

I configured everything according to the docs and I get the following errors when trying to run "start"
INFO  execute - Output:
storm

DEBUG execute - ((:reader out-reader)) => storm

DEBUG execute - ((:reader out-reader)) => 
DEBUG execute - ((:reader err-reader)) => 
INFO  execute - Output:
/Users/anthonymorrisjohnson/ec2-keys/anthonyj.pem.pub

DEBUG execute - ((:reader out-reader)) => /Users/anthonymorrisjohnson/ec2-keys/anthonyj.pem.pub

DEBUG execute - ((:reader out-reader)) => 
DEBUG execute - ((:reader err-reader)) => 
INFO  execute - Output:
/Users/anthonymorrisjohnson/ec2-keys/anthonyj.pem

DEBUG execute - ((:reader out-reader)) => /Users/anthonymorrisjohnson/ec2-keys/anthonyj.pem

DEBUG execute - ((:reader err-reader)) => 
DEBUG execute - ((:reader out-reader)) => 
DEBUG execute - ((:reader err-reader)) => 
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassCastException: clojure.lang.PersistentArrayMap cannot be cast to clojure.lang.Named (NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:5440)
at clojure.lang.Compiler.eval(Compiler.java:5415)
at clojure.lang.Compiler.eval(Compiler.java:5391)
at clojure.core$eval.invoke(core.clj:2382)
at clojure.main$eval_opt.invoke(main.clj:235)
at clojure.main$initialize.invoke(main.clj:254)
at clojure.main$null_opt.invoke(main.clj:279)
at clojure.main$main.doInvoke(main.clj:354)
at clojure.lang.RestFn.invoke(RestFn.java:422)
at clojure.lang.Var.invoke(Var.java:369)
at clojure.lang.AFn.applyToHelper(AFn.java:165)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassCastException: clojure.lang.PersistentArrayMap cannot be cast to clojure.lang.Named
at clojure.lang.LazySeq.sval(LazySeq.java:47)
at clojure.lang.LazySeq.seq(LazySeq.java:56)
at clojure.lang.Cons.next(Cons.java:39)
at clojure.lang.PersistentHashSet.create(PersistentHashSet.java:43)
at clojure.core$set.invoke(core.clj:3166)
at pallet.compute.implementation$providers.invoke(implementation.clj:28)
at pallet.compute.implementation$load_providers.invoke(implementation.clj:40)
at pallet.compute$compute_service.doInvoke(compute.clj:34)
at clojure.lang.RestFn.applyTo(RestFn.java:140)
at clojure.core$apply.invoke(core.clj:542)
at pallet.compute$compute_service_from_map.invoke(compute.clj:65)
at backtype.storm.provision$mk_aws.invoke(provision.clj:97)
at backtype.storm.provision$_main.doInvoke(provision.clj:100)
at clojure.lang.RestFn.invoke(RestFn.java:409)
at clojure.lang.Var.invoke(Var.java:365)
at user$eval8523.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:5424)


my ~/.pallet/config.clj is 

(defpallet
  :services
  {
  :default {
               :blobstore-provider "aws-s3"
             :provider "aws-ec2"
             :environment {:user {:username "storm"  ; this must be "storm"
                                  :private-key-path "/Users/anthonymorrisjohnson/ec2-keys/anthonyj.pem"
                                  :public-key-path "/Users/anthonymorrisjohnson/ec2-keys/anthonyj.pem.pub"}
                           :aws-user-id "565578781896"}
             :identity "[removed]"
             :credential "[removed]"
             :jclouds.regions "us-east-1"
    }
  })

Any ideas?



Nathan Marz

unread,
Mar 31, 2012, 5:35:17 AM3/31/12
to storm...@googlegroups.com, palle...@googlegroups.com
I took a look, and your config seems fine. I was able to run the deploy myself without issue. cc'ing the pallet list to see if they have any ideas.
--
Twitter: @nathanmarz
http://nathanmarz.com

Hugo Duncan

unread,
Mar 31, 2012, 9:29:16 AM3/31/12
to palle...@googlegroups.com, storm...@googlegroups.com
Nathan Marz <natha...@gmail.com> writes:

> I took a look, and your config seems fine. I was able to run the deploy
> myself without issue. cc'ing the pallet list to see if they have any ideas.
>
> On Tue, Mar 27, 2012 at 2:18 PM, Anthony Johnson <
> anthonymor...@gmail.com> wrote:
>
>> So, I'm trying to follow the basic instruction for using storm-deploy...
>> which seems like it should be simple enough, and apparently people are able
>> to get this to run, but i'm not having any luck.
>>

>> Caused by: java.lang.RuntimeException: java.lang.RuntimeException:
>> java.lang.RuntimeException: java.lang.ClassCastException:
>> clojure.lang.PersistentArrayMap cannot be cast to clojure.lang.Named
>> at clojure.lang.LazySeq.sval(LazySeq.java:47)
>> at clojure.lang.LazySeq.seq(LazySeq.java:56)
>> at clojure.lang.Cons.next(Cons.java:39)
>> at clojure.lang.PersistentHashSet.create(PersistentHashSet.java:43)
>> at clojure.core$set.invoke(core.clj:3166)
>> at pallet.compute.implementation$providers.invoke(implementation.clj:28)
>>

>> Any ideas?

This error has something to do with the classpath, and is I think
unrelated to ~/.pallet/config.clj.

The exception is apparently caused by clojure.contrib's
find-namespaces-on-classpath returning a map instead of a namespace
symbol.

The only way I can see this happening is if there is a file somewhere on
the classpath with a `ns` form that incorrectly tries setting metadata
using a map, eg.

(ns {:doc "Some doc"} my.ns ....)

instead of,

(ns ^{:doc "Some doc"} my.ns ....)

Since this works for Nathan, I assume that the classpath is somehow
getting extra entries on it.

Anthony, might you have a CLASSPATH environment variable set? If so
could you try removing it and running storm deploy again?

Hugo

Hugo Duncan

unread,
Apr 1, 2012, 3:06:03 PM4/1/12
to storm...@googlegroups.com, palle...@googlegroups.com
As Oscar Fernandez reminds me on the pallet-clj list, lein new templates will also cause this behaviour.

I'll add a patch to 0.6.x, as described on pallet-clj.

Nathan: not sure how you would like to pick up patches like this that affect storm-deply.

On Saturday, March 31, 2012 9:29:16 AM UTC-4, Hugo Duncan wrote:
Nathan Marz writes:

> I took a look, and your config seems fine. I was able to run the deploy
> myself without issue. cc'ing the pallet list to see if they have any ideas.
>

Nathan Marz

unread,
Apr 4, 2012, 5:57:10 AM4/4/12
to storm...@googlegroups.com, palle...@googlegroups.com
I'm unlikely to make too many modifications to storm-deploy, especially for issues that don't affect me. I will accept pull requests though.

Dave Kincaid

unread,
Aug 16, 2012, 9:38:23 PM8/16/12
to storm...@googlegroups.com, palle...@googlegroups.com
Trying storm-deploy myself for the first time tonight and getting this same error trying to launch. Did anyone ever figure out what the problem was?
Reply all
Reply to author
Forward
0 new messages