Created
October 16, 2012 09:56
-
-
Save solar/3898427 to your computer and use it in GitHub Desktop.
Revisions
-
sora revised this gist
Nov 6, 2012 . 4 changed files with 8 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,6 @@ priority="30404" sudo mkdir -p /var/log/zookeeper /usr/local/zookeeper /var/zookeeper curl -L http://ftp.kddilabs.jp/infosystems/apache/zookeeper/zookeeper-${version}/zookeeper-${version}.tar.gz | tar zx sudo cp -r zookeeper-${version} /usr/local/zookeeper/${version} sudo cp ./zookeeper.sh /usr/local/zookeeper/ sudo cp ./zoo.cfg /etc/ sudo cp ./supervisord.d/zookeeper.ini /etc/supervisord.d/ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,7 @@ [program:zookeeper] command=/usr/local/zookeeper/zookeeper.sh autostart=true autorestart=true user=root redirect_stderr=true stdout_logfile=/var/log/zookeeper/stdout.log File renamed without changes.This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,8 @@ #!/usr/local/bin/zsh java=/usr/bin/java conf=/etc/zoo.cfg gclog=/var/log/zookeeper/gc.log javaopts=( -server @@ -22,8 +20,8 @@ javaopts=( -Duser.timezone=Asia/Tokyo -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false -Dzookeeper.root.logger="INFO,CONSOLE" ) exec $java $javaopts \ -cp "/usr/local/zookeeper/3.4.4/bin/../build/classes:/usr/local/zookeeper/3.4.4/bin/../build/lib/*.jar:/usr/local/zookeeper/3.4.4/bin/../lib/slf4j-log4j12-1.6.1.jar:/usr/local/zookeeper/3.4.4/bin/../lib/slf4j-api-1.6.1.jar:/usr/local/zookeeper/3.4.4/bin/../lib/netty-3.2.2.Final.jar:/usr/local/zookeeper/3.4.4/bin/../lib/log4j-1.2.15.jar:/usr/local/zookeeper/3.4.4/bin/../lib/jline-0.9.94.jar:/usr/local/zookeeper/3.4.4/bin/../zookeeper-3.4.4.jar:/usr/local/zookeeper/3.4.4/bin/../src/java/lib/*.jar:/usr/local/zookeeper/3.4.4/bin/../conf:" \ -
sora revised this gist
Nov 6, 2012 . 5 changed files with 43 additions and 18 deletions.There are no files selected for viewing
File renamed without changes.This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ #!/usr/local/bin/zsh java=/usr/bin/java conf=/etc/zookeeper/zoo.cfg gclog=/var/log/zookeeper/gc.log logdir=/var/log/zookeeper log4j=/etc/zookeeper/log4j.properties javaopts=( -server -Xmx1024m -Xms1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -Xloggc:$gclog -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Duser.timezone=Asia/Tokyo -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false -Dzookeeper.log.dir=$logdir -Dzookeeper.root.logger=$log4j exec $java $javaopts \ -cp "/usr/local/zookeeper/3.4.4/bin/../build/classes:/usr/local/zookeeper/3.4.4/bin/../build/lib/*.jar:/usr/local/zookeeper/3.4.4/bin/../lib/slf4j-log4j12-1.6.1.jar:/usr/local/zookeeper/3.4.4/bin/../lib/slf4j-api-1.6.1.jar:/usr/local/zookeeper/3.4.4/bin/../lib/netty-3.2.2.Final.jar:/usr/local/zookeeper/3.4.4/bin/../lib/log4j-1.2.15.jar:/usr/local/zookeeper/3.4.4/bin/../lib/jline-0.9.94.jar:/usr/local/zookeeper/3.4.4/bin/../zookeeper-3.4.4.jar:/usr/local/zookeeper/3.4.4/bin/../src/java/lib/*.jar:/usr/local/zookeeper/3.4.4/bin/../conf:" \ org.apache.zookeeper.server.quorum.QuorumPeerMain \ "$conf" This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,11 @@ #!/usr/local/bin/zsh version="3.4.4" priority="30404" sudo mkdir -p /var/log/zookeeper /usr/local/zookeeper /var/zookeeper curl -L http://ftp.kddilabs.jp/infosystems/apache/zookeeper/zookeeper-${version}/zookeeper-${version}.tar.gz | tar zx sudo cp -r zookeeper-${version} /usr/local/zookeeper/${version} sudo alternatives --install /usr/local/zookeeper/default zookeeper /usr/local/zookeeper/${version} sudo cp -r ./conf /etc/zookeeper sudo cp ./supervisord.d/zookeeper.ini /etc/supervisord.d/ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ [program:zookeeper] command=/etc/zookeeper/zookeeper.sh autostart=true autorestart=true user=root This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +0,0 @@ -
sora revised this gist
Oct 16, 2012 . 4 changed files with 41 additions and 0 deletions.There are no files selected for viewing
Empty file.This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ # The number of milliseconds of each tick tickTime=2000 # The number of ticks that the initial # synchronization phase can take initLimit=10 # The number of ticks that can pass between # sending a request and getting an acknowledgement syncLimit=5 # the directory where the snapshot is stored. # do not use /tmp for storage, /tmp here is just # example sakes. dataDir=/var/zookeeper # the port at which the clients will connect clientPort=2181 # # Be sure to read the maintenance section of the # administrator guide before turning on autopurge. # # http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance # # The number of snapshots to retain in dataDir #autopurge.snapRetainCount=3 # Purge task interval in hours # Set to "0" to disable auto purge feature #autopurge.purgeInterval=1 This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ [program:zookeeper] command=/usr/local/zookeeper/zookeeper.sh autostart=true autorestart=true user=root This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ #!/bin/sh JAVA=/usr/bin/java CONF=/usr/local/zookeeper/zoo.cfg exec $JAVA \ -cp "/usr/local/zookeeper/3.4.4/bin/../build/classes:/usr/local/zookeeper/3.4.4/bin/../build/lib/*.jar:/usr/local/zookeeper/3.4.4/bin/../lib/slf4j-log4j12-1.6.1.jar:/usr/local/zookeeper/3.4.4/bin/../lib/slf4j-api-1.6.1.jar:/usr/local/zookeeper/3.4.4/bin/../lib/netty-3.2.2.Final.jar:/usr/local/zookeeper/3.4.4/bin/../lib/log4j-1.2.15.jar:/usr/local/zookeeper/3.4.4/bin/../lib/jline-0.9.94.jar:/usr/local/zookeeper/3.4.4/bin/../zookeeper-3.4.4.jar:/usr/local/zookeeper/3.4.4/bin/../src/java/lib/*.jar:/usr/local/zookeeper/3.4.4/bin/../conf:" \ -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.local.only=false \ org.apache.zookeeper.server.quorum.QuorumPeerMain \ "$CONF" -
solar created this gist
Oct 16, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ curl -L http://ftp.kddilabs.jp/infosystems/apache/zookeeper/zookeeper-3.4.4/zookeeper-3.4.4.tar.gz | tar zx sudo mkdir /usr/local/zookeeper sudo cp zookeeper-3.4.4 /usr/local/zookeeper/3.4.4 sudo cp ./zookeeper.sh /usr/local/zookeeper/ sudo cp ./zoo.cfg /usr/local/zookeeper/ sudo cp ./zookeeper.ini /etc/supervisord.d/