Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 48 lines (39 sloc) 1.181 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
d2274da @jkreps Misc. read-only store improvements. Some cleanup in hadoop contrib.
jkreps authored
19 if [ $# -lt 1 ]; then
20 echo $0 java-class-name [options]
21 exit 1
22 fi
23
fbd0f95 @jkreps Initial import
jkreps authored
24 base_dir=$(dirname $0)/..
25
26 for file in $base_dir/lib/*.jar;
27 do
28 CLASSPATH=$CLASSPATH:$file
29 done
30
894dcce @jkreps Fix scripts to include contrib jars too.
jkreps authored
31 for file in $base_dir/contrib/*/lib/*.jar;
32 do
33 CLASSPATH=$CLASSPATH:$file
34 done
35
fbd0f95 @jkreps Initial import
jkreps authored
36 for file in $base_dir/dist/*.jar;
37 do
38 CLASSPATH=$CLASSPATH:$file
39 done
2d1b21b @jkreps Add log4j.properties to classpath for shell scripts.
jkreps authored
40 CLASSPATH=$CLASSPATH:$base_dir/dist/resources
fbd0f95 @jkreps Initial import
jkreps authored
41
448cad5 @afeinberg Fixed an issue with shell scripts not handling -z correctly.
afeinberg authored
42 if [ -z "$VOLD_OPTS" ]; then
894dcce @jkreps Fix scripts to include contrib jars too.
jkreps authored
43 VOLD_OPTS="-Xmx2G -server -Dcom.sun.management.jmxremote "
ea3b89a Add VOLD_OPTS variable to override jvm settings.
Jay Kreps authored
44 fi
45
fbd0f95 @jkreps Initial import
jkreps authored
46 export CLASSPATH
7b1cce1 @jkreps log4j.properties should use $base_dir too.
jkreps authored
47 java -Dlog4j.configuration=$base_dir/src/java/log4j.properties $VOLD_OPTS -cp $CLASSPATH $@
Something went wrong with that request. Please try again.