blob: efb79cee320ac429898ca7becaf75919391ad37b [file] [log] [blame]
vinayakb5d8a2f22013-01-29 19:45:44 +00001#!/bin/bash
2hostname
3
4#Import cluster properties
5. conf/cluster.properties
6
7#Get the IP address of the cc
8CCHOST_NAME=`cat conf/master`
9CCHOST=`bin/getip.sh`
10
11#Remove the temp dir
12rm -rf $CCTMP_DIR
13mkdir $CCTMP_DIR
14
15#Remove the logs dir
16rm -rf $CCLOGS_DIR
17mkdir $CCLOGS_DIR
18
19#Export JAVA_HOME and JAVA_OPTS
20export JAVA_HOME=$JAVA_HOME
21export JAVA_OPTS=$CCJAVA_OPTS
22
23#Launch hyracks cc script
24chmod -R 755 $HYRACKS_HOME
vinayakb9506d182013-03-22 08:20:32 +000025$HYRACKS_HOME/hyracks-server/target/appassembler/bin/hyrackscc -client-net-ip-address $CCHOST -cluster-net-ip-address $CCHOST -client-net-port $CC_CLIENTPORT -cluster-net-port $CC_CLUSTERPORT -max-heartbeat-lapse-periods 999999 -default-max-job-attempts 0 -job-history-size 0 &> $CCLOGS_DIR/cc.log &