Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 49 lines (39 sloc) 1.209 kb
fbd0f95 jkreps Initial import
jkreps authored
1 #!/bin/bash
2
3f78a7e jkreps Add license to scripts.
jkreps authored
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
fbd0f95 jkreps Initial import
jkreps authored
19 if [ $# -gt 1 ];
20 then
21 echo 'USAGE: bin/voldemort-server.sh [voldemort_home]'
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
894dcce jkreps Fix scripts to include contrib jars too.
jkreps authored
37 for file in $base_dir/contrib/*/lib/*.jar;
f1f3ee2 Elias Torres Added Hadoop store builder's lib to server class path.
eliast authored
38 do
39 CLASSPATH=$CLASSPATH:$file
40 done
41
2d1b21b jkreps Add log4j.properties to classpath for shell scripts.
jkreps authored
42 CLASSPATH=$CLASSPATH:$base_dir/dist/resources
43
448cad5 Alex Feinberg Fixed an issue with shell scripts not handling -z correctly.
afeinberg authored
44 if [ -z "$VOLD_OPTS" ]; then
ea3b89a Add VOLD_OPTS variable to override jvm settings.
Jay Kreps authored
45 VOLD_OPTS="-Xmx2G -server -Dcom.sun.management.jmxremote"
46 fi
47
db4c0fa bbansal Rebalancing tested for all failures modes locally.
bbansal authored
48 java -Dlog4j.configuration=src/java/log4j.properties $VOLD_OPTS -cp $CLASSPATH voldemort.server.VoldemortServer $@
Something went wrong with that request. Please try again.