Skip to content
This repository
Newer
Older
100755 48 lines (39 sloc) 1.232 kb
fbd0f95d » jkreps
2009-01-02 Initial import
1 #!/bin/bash
2
3f78a7eb » jkreps
2009-01-14 Add license to scripts.
3 #
4 # Copyright 2008-2009 LinkedIn, Inc
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 # http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #
18
903943ff » akkumar
2011-12-29 new environment variable - VOLDEMORT_CONFIG_DIR refers to config dire…
19 if [ $# -gt 2 ];
fbd0f95d » jkreps
2009-01-02 Initial import
20 then
903943ff » akkumar
2011-12-29 new environment variable - VOLDEMORT_CONFIG_DIR refers to config dire…
21 echo 'USAGE: bin/voldemort-server.sh [voldemort_home] [voldemort_config_dir]'
fbd0f95d » jkreps
2009-01-02 Initial import
22 exit 1
23 fi
24
25 base_dir=$(dirname $0)/..
26
27 for file in $base_dir/dist/*.jar;
28 do
29 CLASSPATH=$CLASSPATH:$file
30 done
31
32 for file in $base_dir/lib/*.jar;
33 do
34 CLASSPATH=$CLASSPATH:$file
35 done
36
894dcce4 » jkreps
2010-07-11 Fix scripts to include contrib jars too.
37 for file in $base_dir/contrib/*/lib/*.jar;
f1f3ee2f » eliast
2009-06-18 Added Hadoop store builder's lib to server class path.
38 do
39 CLASSPATH=$CLASSPATH:$file
40 done
41
2d1b21b6 » jkreps
2009-04-26 Add log4j.properties to classpath for shell scripts.
42 CLASSPATH=$CLASSPATH:$base_dir/dist/resources
43
448cad5e » afeinberg
2010-05-31 Fixed an issue with shell scripts not handling -z correctly.
44 if [ -z "$VOLD_OPTS" ]; then
ea3b89ac » Jay Kreps
2009-06-01 Add VOLD_OPTS variable to override jvm settings.
45 VOLD_OPTS="-Xmx2G -server -Dcom.sun.management.jmxremote"
46 fi
47
ef5420fc » Chinmay Soman
2012-12-06 Removing the additional JVM args from the Voldemort scripts
48 java -Dlog4j.configuration=src/java/log4j.properties $VOLD_OPTS -cp $CLASSPATH voldemort.server.VoldemortServer $@
Something went wrong with that request. Please try again.