webdataScanHod
上传用户:quxuerui
上传日期:2018-01-08
资源大小:41811k
文件大小:1k
源码类别:

网格计算

开发平台:

Java

  1. #!/usr/bin/env bash
  2. GRID_DIR=`dirname "$0"`
  3. GRID_DIR=`cd "$GRID_DIR"; pwd`
  4. source $GRID_DIR/../gridmix-env
  5. for ((i=0; i < $NUM_OF_SMALL_JOBS_PER_CLASS; i++))
  6. do
  7.     echo $i
  8.     CLUSTER_DIR=$CLUSTER_DIR_BASE/webdata_scan.small.$i
  9.     mkdir $CLUSTER_DIR
  10.     hod script -d $CLUSTER_DIR $SMALL_JOB_HOD_OPTIONS -s $GRID_MIX_HOME/webdatascan/webdata_scan.small  2>&1 > webdata_scan.small.$i.out&
  11.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  12. done
  13.     
  14. for ((i=0; i < $NUM_OF_MEDIUM_JOBS_PER_CLASS; i++))
  15. do
  16.     echo $i
  17.     CLUSTER_DIR=$CLUSTER_DIR_BASE/webdata_scan.medium.$i
  18.     mkdir $CLUSTER_DIR
  19.     hod script -d $CLUSTER_DIR $MEDIUM_JOB_HOD_OPTIONS -s $GRID_MIX_HOME/webdatascan/webdata_scan.medium  2>&1 > webdata_scan.medium.$i.out &
  20.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  21. done
  22.     
  23. for ((i=0; i < $NUM_OF_LARGE_JOBS_PER_CLASS; i++))
  24. do
  25.     echo $i
  26.     CLUSTER_DIR=$CLUSTER_DIR_BASE/webdata_scan.large.$i
  27.     mkdir $CLUSTER_DIR
  28.     hod script -d $CLUSTER_DIR $LARGE_JOB_HOD_OPTIONS -s $GRID_MIX_HOME/webdatascan/webdata_scan.large  2>&1 > webdata_scan.large.$i.out &
  29.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  30. done
  31.