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

网格计算

开发平台:

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/pipesort.small.$i
  9.     mkdir $CLUSTER_DIR
  10.     hod script -d $CLUSTER_DIR $SMALL_JOB_HOD_OPTIONS -s $GRID_MIX_HOME/pipesort/text-sort.small  2>&1 > pipesort.small.$i.out &
  11.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  12.     CLUSTER_DIR=$CLUSTER_DIR_BASE/streamsort.small.$i
  13.     mkdir $CLUSTER_DIR
  14.     hod script -d $CLUSTER_DIR $SMALL_JOB_HOD_OPTIONS -s $GRID_MIX_HOME/streamsort/text-sort.small  2>&1 > streamsort.small.$i.out &
  15.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  16.     CLUSTER_DIR=$CLUSTER_DIR_BASE/javasort.small.$i
  17.     mkdir $CLUSTER_DIR
  18.     hod script -d $CLUSTER_DIR $SMALL_JOB_HOD_OPTIONS -s $GRID_MIX_HOME/javasort/text-sort.small  2>&1 > javasort.small.$i.out  &
  19.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  20. done
  21.     
  22. for ((i=0; i < $NUM_OF_MEDIUM_JOBS_PER_CLASS; i++))
  23. do
  24.     echo $i
  25.     CLUSTER_DIR=$CLUSTER_DIR_BASE/pipesort.medium.$i
  26.     mkdir $CLUSTER_DIR
  27.     hod script -d $CLUSTER_DIR $MEDIUM_JOB_HOD_OPTIONS -s $GRID_MIX_HOME/pipesort/text-sort.medium  2>&1 > pipesort.medium.$i.out &
  28.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  29.     CLUSTER_DIR=$CLUSTER_DIR_BASE/streamsort.medium.$i
  30.     mkdir $CLUSTER_DIR
  31.     hod script -d $CLUSTER_DIR $MEDIUM_JOB_HOD_OPTIONS -s $GRID_MIX_HOME/streamsort/text-sort.medium  2>&1 > streamsort.medium.$i.out &
  32.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  33.     CLUSTER_DIR=$CLUSTER_DIR_BASE/javasort.medium.$i
  34.     mkdir $CLUSTER_DIR
  35.     hod script -d $CLUSTER_DIR $MEDIUM_JOB_HOD_OPTIONS --hod.script=$GRID_MIX_HOME/javasort/text-sort.medium  2>&1 > javasort.medium.$i.out  &
  36.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  37. done
  38. for ((i=0; i < $NUM_OF_LARGE_JOBS_PER_CLASS; i++))
  39. do
  40.     echo $i
  41.     CLUSTER_DIR=$CLUSTER_DIR_BASE/pipesort.large.$i
  42.     mkdir $CLUSTER_DIR
  43.     hod  script -d $CLUSTER_DIR $LARGE_JOB_HOD_OPTIONS -s $GRID_MIX_HOME/pipesort/text-sort.large  2>&1 >  pipesort.large.$i.out &
  44.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  45.     CLUSTER_DIR=$CLUSTER_DIR_BASE/streamsort.large.$i
  46.     mkdir $CLUSTER_DIR
  47.     hod script -d $CLUSTER_DIR $LARGE_JOB_HOD_OPTIONS -s $GRID_MIX_HOME/streamsort/text-sort.large  2>&1 > streamsort.large.$i.out &
  48.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  49.     CLUSTER_DIR=$CLUSTER_DIR_BASE/javasort.large.$i
  50.     mkdir $CLUSTER_DIR
  51.     hod  script -d $CLUSTER_DIR $LARGE_JOB_HOD_OPTIONS -s $GRID_MIX_HOME/javasort/text-sort.large  2>&1 > javasort.large.$i.out &
  52.     $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  53. done
  54.