webdataSortHod 1.2 KB

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env bash
  2. # Licensed under the Apache License, Version 2.0 (the "License");
  3. # you may not use this file except in compliance with the License.
  4. # You may obtain a copy of the License at
  5. #
  6. # http://www.apache.org/licenses/LICENSE-2.0
  7. #
  8. # Unless required by applicable law or agreed to in writing, software
  9. # distributed under the License is distributed on an "AS IS" BASIS,
  10. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. # See the License for the specific language governing permissions and
  12. # limitations under the License.
  13. GRID_DIR=`dirname "$0"`
  14. GRID_DIR=`cd "$GRID_DIR"; pwd`
  15. source $GRID_DIR/../gridmix-env
  16. for ((i=0; i < $NUM_OF_LARGE_JOBS_PER_CLASS; i++))
  17. do
  18. echo $i
  19. CLUSTER_DIR=$CLUSTER_DIR_BASE/webdata_sort.large.$i
  20. mkdir $CLUSTER_DIR
  21. #hod $LARGE_JOB_HOD_OPTIONS --hod.script=$GRID_MIX_HOME/webdatasort/webdata_sort.large 2>&1 > webdata_sort.large.$i.out &
  22. echo "hod script -d $CLUSTER_DIR $LARGE_JOB_HOD_OPTIONS -s $GRID_MIX_HOME/webdatasort/webdata_sort.large "
  23. hod script -d $CLUSTER_DIR $LARGE_JOB_HOD_OPTIONS -s $GRID_MIX_HOME/webdatasort/webdata_sort.large 2>&1 > webdata_sort.large.$i.out &
  24. $GRID_MIX_HOME/submissionScripts/sleep_if_too_busy
  25. done