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

网格计算

开发平台:

Java

  1. #!/usr/bin/env bash
  2. ## Environment configuration
  3. # Hadoop installation
  4. # set var only if it has not already been set externally
  5. if [ -z "${HADOOP_HOME}" ] ; then
  6.   export HADOOP_HOME=
  7. fi
  8. # Base directory for gridmix install
  9. # set var only if it has not already been set externally
  10. if [ -z "${GRID_MIX_HOME}" ] ; then
  11.   export GRID_MIX_HOME=${GRID_DIR}
  12. fi
  13. # Hadoop example jar
  14. # set var only if it has not already been set externally
  15. if [ -z "${EXAMPLE_JAR}" ] ; then
  16.   export EXAMPLE_JAR="${HADOOP_HOME}/hadoop-*examples.jar"
  17. fi
  18. # Hadoop test jar
  19. # set var only if it has not already been set externally
  20. if [ -z "${APP_JAR}" ] ; then
  21.   export APP_JAR="${HADOOP_HOME}/hadoop-*test.jar"
  22. fi
  23. # Hadoop streaming jar
  24. # set var only if it has not already been set externally
  25. if [ -z "${STREAM_JAR}" ] ; then
  26.   export STREAM_JAR="${HADOOP_HOME}/contrib/streaming/hadoop-*streaming.jar"
  27. fi
  28. # Location on default filesystem for writing gridmix data (usually HDFS)
  29. # Default: /gridmix/data
  30. # set var only if it has not already been set externally
  31. if [ -z "${GRID_MIX_DATA}" ] ; then
  32.   export GRID_MIX_DATA=/gridmix/data
  33. fi
  34. # Location of executables in default filesystem (usually HDFS)
  35. # Default: /gridmix/programs
  36. # set var only if it has not already been set externally
  37. if [ -z "${GRID_MIX_PROG}" ] ; then
  38.   export GRID_MIX_PROG=/gridmix/programs
  39. fi
  40. ## Data sources
  41. # Variable length key, value compressed SequenceFile
  42. export VARCOMPSEQ=${GRID_MIX_DATA}/WebSimulationBlockCompressed
  43. # Fixed length key, value compressed SequenceFile
  44. export FIXCOMPSEQ=${GRID_MIX_DATA}/MonsterQueryBlockCompressed
  45. # Variable length key, value uncompressed Text File
  46. export VARINFLTEXT=${GRID_MIX_DATA}/SortUncompressed
  47. # Fixed length key, value compressed Text File
  48. export FIXCOMPTEXT=${GRID_MIX_DATA}/EntropySimulationCompressed
  49. ## Job sizing
  50. export NUM_OF_LARGE_JOBS_FOR_ENTROPY_CLASS=5
  51. export NUM_OF_LARGE_JOBS_PER_CLASS=3
  52. export NUM_OF_MEDIUM_JOBS_PER_CLASS=20
  53. export NUM_OF_SMALL_JOBS_PER_CLASS=40
  54. export NUM_OF_REDUCERS_FOR_LARGE_JOB=370
  55. export NUM_OF_REDUCERS_FOR_MEDIUM_JOB=170
  56. export NUM_OF_REDUCERS_FOR_SMALL_JOB=15
  57. ## Throttling
  58. export INTERVAL_BETWEEN_SUBMITION=20
  59. ## Hod
  60. #export HOD_OPTIONS=""
  61. export CLUSTER_DIR_BASE=$GRID_MIX_HOME/CLUSTER_DIR_BASE
  62. export HOD_CONFIG=
  63. export ALL_HOD_OPTIONS="-c ${HOD_CONFIG} ${HOD_OPTIONS}"
  64. export SMALL_JOB_HOD_OPTIONS="$ALL_HOD_OPTIONS -n 5"
  65. export MEDIUM_JOB_HOD_OPTIONS="$ALL_HOD_OPTIONS -n 50"
  66. export LARGE_JOB_HOD_OPTIONS="$ALL_HOD_OPTIONS -n 100"