forked from nathanmarz/storm
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
193 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,5 @@ _release | |
.lein-deps-sum | ||
*.iml | ||
|
||
/.project/ | ||
/.lein-plugins/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
#!/bin/bash | ||
#!/bin/bash | ||
function quit { | ||
exit 1 | ||
} | ||
trap quit 1 2 3 15 #Ctrl+C exits. | ||
|
||
RELEASE=`head -1 project.clj | awk '{print $3}' | sed -e 's/\"//' | sed -e 's/\"//'` | ||
LEIN=`which lein2 || which lein` | ||
|
||
echo ==== Storm Jar ==== | ||
$LEIN with-profile release clean | ||
$LEIN with-profile release jar | ||
$LEIN with-profile release pom | ||
scp target/storm*jar pom.xml clojars@clojars.org: | ||
rm -Rf target *.xml | ||
|
||
echo ==== Storm-Lib Jar ==== | ||
rm conf/logback.xml | ||
$LEIN with-profile lib clean | ||
$LEIN with-profile lib jar | ||
$LEIN with-profile lib pom | ||
sed -i '' -e 's/artifactId\>storm/artifactId\>storm-lib/g' pom.xml | ||
mv target/storm-$RELEASE.jar target/storm-lib-$RELEASE.jar | ||
scp target/storm*jar pom.xml clojars@clojars.org: | ||
rm -Rf target *.xml | ||
|
||
git checkout conf/logback.xml | ||
|
||
|
||
rm -rf classes | ||
rm *jar | ||
rm *xml | ||
lein jar | ||
lein pom | ||
scp storm*jar pom.xml clojars@clojars.org: | ||
|
||
rm *jar | ||
rm -rf classes | ||
rm conf/log4j.properties | ||
lein jar | ||
mv pom.xml old-pom.xml | ||
sed 's/artifactId\>storm/artifactId\>storm-lib/g' old-pom.xml > pom.xml | ||
mv storm-$RELEASE.jar storm-lib-$RELEASE.jar | ||
scp storm*jar pom.xml clojars@clojars.org: | ||
rm *xml | ||
rm *jar | ||
git checkout conf/log4j.properties |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<configuration scan="true" scanPeriod="30 seconds"> | ||
<appender name="A1" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>%-4r [%t] %-5p %c - %m%n</pattern> | ||
</encoder> | ||
</appender> | ||
<logger name="org.apache.zookeeper" level="WARN"/> | ||
<root level="INFO"> | ||
<appender-ref ref="A1"/> | ||
</root> | ||
</configuration> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<configuration scan="true" scanPeriod="60 seconds"> | ||
<appender name="A1" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
<file>${storm.home}/logs/${logfile.name}</file> | ||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> | ||
<fileNamePattern>${storm.home}/logs/${logfile.name}.%i</fileNamePattern> | ||
<minIndex>1</minIndex> | ||
<maxIndex>9</maxIndex> | ||
</rollingPolicy> | ||
|
||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> | ||
<maxFileSize>100MB</maxFileSize> | ||
</triggeringPolicy> | ||
|
||
<encoder> | ||
<pattern>%d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="A1"/> | ||
</root> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,50 @@ | ||
(defproject storm "0.8.2-wip1" | ||
:source-path "src/clj" | ||
:test-path "test/clj" | ||
:java-source-path "src/jvm" | ||
:javac-options {:debug "true" :fork "true"} | ||
:resources-path "conf" | ||
:dev-resources-path "src/dev" | ||
:repositories {"sonatype" "http://oss.sonatype.org/content/groups/public/"} | ||
|
||
(defproject storm/storm "0.9.0-SNAPSHOT" | ||
:url "http://storm-project.clj" | ||
:description "Distributed and fault-tolerant realtime computation" | ||
:license {:name "Eclipse Public License - Version 1.0" :url "https://github.com/nathanmarz/storm/blob/master/LICENSE.html"} | ||
:dependencies [[org.clojure/clojure "1.4.0"] | ||
[commons-io "1.4"] | ||
[org.apache.commons/commons-exec "1.1"] | ||
[storm/libthrift7 "0.7.0"] | ||
[storm/libthrift7 "0.7.0" | ||
:exclusions [org.slf4j/slf4j-api]] | ||
[clj-time "0.4.1"] | ||
[log4j/log4j "1.2.16"] | ||
[com.netflix.curator/curator-framework "1.0.1"] | ||
[com.netflix.curator/curator-framework "1.0.1" | ||
:exclusions [log4j/log4j]] | ||
[backtype/jzmq "2.1.0"] | ||
[com.googlecode.json-simple/json-simple "1.1"] | ||
[compojure "0.6.4"] | ||
[hiccup "0.3.6"] | ||
[ring/ring-jetty-adapter "0.3.11"] | ||
[org.clojure/tools.logging "0.2.3"] | ||
[org.clojure/math.numeric-tower "0.0.1"] | ||
[org.slf4j/slf4j-log4j12 "1.5.8"] | ||
[storm/carbonite "1.5.0"] | ||
[org.yaml/snakeyaml "1.9"] | ||
[org.apache.httpcomponents/httpclient "4.1.1"] | ||
[storm/tools.cli "0.2.2"] | ||
[com.googlecode.disruptor/disruptor "2.10.1"] | ||
[storm/jgrapht "0.8.3"] | ||
[com.google.guava/guava "13.0"] | ||
] | ||
:dev-dependencies [ | ||
[swank-clojure "1.4.0-SNAPSHOT" :exclusions [org.clojure/clojure]] | ||
] | ||
[com.google.guava/guava "13.0"]] | ||
|
||
:source-paths ["src/clj"] | ||
:java-source-paths ["src/jvm"] | ||
:test-paths ["test/clj"] | ||
:resource-paths ["conf"] | ||
|
||
:profiles {:dev {:resource-paths ["src/dev"] | ||
:dependencies [[ch.qos.logback/logback-classic "1.0.6"] | ||
[org.slf4j/log4j-over-slf4j "1.6.6"]]} | ||
:release {:dependencies [[ch.qos.logback/logback-classic "1.0.6"] | ||
[org.slf4j/log4j-over-slf4j "1.6.6"]]} | ||
:lib {:dependencies [[log4j/log4j "1.2.16"]]}} | ||
|
||
:plugins [[lein-swank "1.4.4"]] | ||
|
||
:repositories {"sonatype" | ||
"http://oss.sonatype.org/content/groups/public/"} | ||
|
||
:javac-options {:debug true} | ||
:jvm-opts ["-Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib"] | ||
:extra-classpath-dirs ["src/ui"] | ||
|
||
:aot :all | ||
) | ||
:min-lein-version "2.0.0") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.