forked from HDFGroup/hsds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_openio.sh
executable file
·43 lines (37 loc) · 1003 Bytes
/
run_openio.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# script to startup hsds SN/DN node with OpenIO
USAGE="Usage: run_openio.sh [sn|dn] [port]"
if [ $# -eq 0 ] || ([ $1 == "-h" ] || [ $1 == "--help" ]); then
echo $USAGE
exit 1
fi
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
unset AWS_S3_GATEWAY
# for lakesamm
export AWS_ACCESS_KEY_ID=demo:demo
export AWS_SECRET_ACCESS_KEY=DEMO_PASS
export BUCKET_NAME=hsds.oio.test
export AWS_REGION=us-east-1
export AWS_S3_GATEWAY="[http://192.168.1.121:6007, http://192.168.1.122:6007, http://192.168.1.123:6007]"
export HSDS_ENDPOINT=http://192.168.1.100:8888
export LOG_LEVEL=DEBUG
export OIO_PROXY=http://192.168.1.121:6006
export HOST_IP=192.168.1.100
export PASSWORD_FILE=""
export ASYNC_SLEEP_TIME=60
if [ $# -eq 2 ]; then
export SN_PORT=$2
export DN_PORT=$2
else
export SN_PORT=8888
export DN_PORT=8889
fi
if [ $1 == "sn" ]; then
python -u hsds/servicenode.py
elif [ $1 == "dn" ]; then
echo "run dn"
python -u hsds/datanode.py
else
echo $USAGE
fi