Skip to content

Instantly share code, notes, and snippets.

View tbatchelli's full-sized avatar

Antoni Batchelli tbatchelli

View GitHub Profile
(ns pallet-aws
(:require [pallet.api :as api]
[pallet.compute :as compute]))
(def id "<your aws identity>")
(def cred "<your aws credendial>")
;; Security Groups and VPC
;;------------------------
@tbatchelli
tbatchelli / scratchpad-cw2014.txt
Created January 25, 2014 03:13
Scratchpad proposal sent to Clojure/West 2014
Scratchpad: Code + everything needed to run it
———————————————————————
Scratchpad is a platform that lets you build scratchpads and run them
at the REPL. A scratchpad is a self-contained clojure file that includes
both code and everything needed to run it: library dependencies and
infrastructure.
Dependencies are expressed in lein-style and are downloaded and added
into the classpath when you load the scratchpad into the REPL. You can
[~/dev/pallet/pallet-hadoop (release/0.3.4)⚡] ➔ travis history
#1 passed: release/0.3.4 Updated project.clj, release notes and readme for 0.3.4
[~/dev/pallet/pallet-hadoop (release/0.3.4)⚡] ➔ lein pallet-release publish
:repositories detected in user-level profiles! [:s3]
See https://github.com/technomancy/leiningen/wiki/Repeatability
Performing task pallet-release with profiles (:default)
Switched to branch 'master'
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details
:repositories detected in user-level profiles! [:s3]
See https://github.com/technomancy/leiningen/wiki/Repeatability
Performing task pallet-release with profiles (:default)
* remote origin
Fetch URL: https://github.com/palletops/hadoop-crate.git
Push URL: https://github.com/palletops/hadoop-crate.git
HEAD branch: develop
Remote branches:
develop tracked
master tracked
{:dev
{:dependencies [[com.palletops/pallet-vmfest "0.4.0-alpha.1"]
[com.palletops/pallet "0.8.0-RC.9"
:classifier "tests"]
[ch.qos.logback/logback-classic "1.0.0"]]}
:no-checkouts {:checkout-deps-shares ^:replace []} ; disable checkouts
:release
{:plugins [[lein-set-version "0.2.1"]]
:set-version
{:updates [{:path "README.md"
Exception in thread "main" java.lang.IllegalAccessError: fail-reason does not exist
at clojure.core$refer.doInvoke(core.clj:3778)
at clojure.lang.RestFn.applyTo(RestFn.java:139)
at clojure.core$apply.invoke(core.clj:603)
at clojure.core$load_lib.doInvoke(core.clj:5279)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:603)
at clojure.core$load_libs.doInvoke(core.clj:5298)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:603)
Exception in thread "main" java.lang.IllegalAccessError: fail-reason does not exist
at clojure.core$refer.doInvoke(core.clj:3778)
at clojure.lang.RestFn.applyTo(RestFn.java:139)
at clojure.core$apply.invoke(core.clj:603)
at clojure.core$load_lib.doInvoke(core.clj:5279)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:603)
at clojure.core$load_libs.doInvoke(core.clj:5298)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:603)
[~/dev/palletops/hadoop-book-example (release/0.1.1)] ➔ travis history
#4 started: develop Updated version for next release cycle
#3 passed: master Merge release/0.1.1
#3 started: 0.1.1 Updated project.clj, release notes and readme for 0.1.1
#2 passed: release/0.1.1 Updated project.clj, release notes and readme for 0.1.1
#1 failed: 0.1.0 Merge tag '0.1.0' into develop
[~/dev/palletops/hadoop-book-example (develop)⚡] ➔ lein pallet-release
:repositories detected in user-level profiles! [:s3]
See https://github.com/technomancy/leiningen/wiki/Repeatability
Performing task pallet-release with profiles (:default)
Known cmds are init, start, finish, and push
verify_md5 job28876.jar /var/lib/pallet$(pwd)/job28876.jar /var/lib/pallet$(pwd)/j
ob28876.jar.md5
2014-04-22 12:03:30,293 DEBUG [operate-24] p.s.execute 54.242.206.45 ==> } && mkdir -p $(dirname ${TMPDIR:-${TEMP:-${TMP:-$(if [ -d /tmp ]; then echo /tmp;
else
2014-04-22 12:03:30,293 DEBUG [operate-24] p.s.execute 54.242.206.45 ==> if [ -d /var/tmp ]; then echo /var/tmp;else
2014-04-22 12:03:30,293 DEBUG [operate-24] p.s.execute 54.242.206.45 ==> if [ -d /use/tmp ]; then echo /usr/tmp;fi
2014-04-22 12:03:30,293 DEBUG [operate-24] p.s.execute 54.242.206.45 ==> fi
2014-04-22 12:03:30,293 DEBUG [operate-24] p.s.execute 54.242.206.45 ==> fi)}}}/root/PsAehEOAanyyyMoLgC1luA/$(basename job28876.jar)) && cp -f /usr/local/h
adoop-0.20.2/hadoop-examples-0.20.2-cdh3u5.jar ${TMPDIR:-${TEMP:-${TMP:-$(if [ -d /tmp ]; then echo /tmp;else
2014-04-22 12:03:30,293 DEBUG [operate-24] p.s.execute 54.242.206.45 ==> if [ -d /var/tmp ]; then echo /var/tmp;else