blob: 67023c11d92406d45dd8b39cb97744cf135e2d8c [file] [log] [blame]
jianfeng.jia@gmail.com8b059c02013-03-05 01:46:42 +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
12#rm -rf $CCTMP_DIR
jianfeng.jia@gmail.com722dbb12013-03-11 23:44:44 +000013mkdir -p $CCTMP_DIR
jianfeng.jia@gmail.com8b059c02013-03-05 01:46:42 +000014
15#Remove the logs dir
16#rm -rf $CCLOGS_DIR
jianfeng.jia@gmail.com722dbb12013-03-11 23:44:44 +000017mkdir -p $CCLOGS_DIR
jianfeng.jia@gmail.com8b059c02013-03-05 01:46:42 +000018
19#Export JAVA_HOME and JAVA_OPTS
20export JAVA_HOME=$JAVA_HOME
21export JAVA_OPTS=$CCJAVA_OPTS
22
jianfeng53938702013-04-19 12:41:42 -070023GENOMIX_HOME=`pwd`
24cd $CCTMP_DIR
jianfeng.jia@gmail.com8b059c02013-03-05 01:46:42 +000025#Launch hyracks cc script
jianfeng53938702013-04-19 12:41:42 -070026${GENOMIX_HOME}/bin/genomixcc -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 3 &> $CCLOGS_DIR/cc.log &