config.ini 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # Licensed to the Apache Software Foundation (ASF) under one or more
  2. # contributor license agreements. See the NOTICE file distributed with
  3. # this work for additional information rega4rding copyright ownership.
  4. # The ASF licenses this file to You under the Apache License, Version 2.0
  5. # (the "License"); you may not use this file except in compliance with
  6. # the License. You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. # This configuration file is case SENSITIVE
  16. # This configuration file will be updated by the script. After updating, all comments will be gone
  17. # For more information about this configuration file, check https://docs.python.org/2/library/configparser.html
  18. # the folder will be added to the file name automatically.
  19. [output]
  20. output_folder = /your_path/output
  21. # the result of command "gce info clustername" on the GCE controller
  22. gce_info_output = gce_info_output.txt
  23. log_file = log.txt
  24. [gce]
  25. gce_controller_ip = your_gce_controller_ip
  26. gce_controller_user = root
  27. gce_controller_key_file = /your_path/gce-key
  28. # time in seconds waiting for GCE VM to boot
  29. gce_boot_time = 50
  30. [cluster]
  31. vm_user = root
  32. # the same as the GCE controller for GCE
  33. vm_key_file = /your_path/gce-key
  34. vm_code_directory = /agent-simulator
  35. cluster_info_file = config/cluster.txt
  36. [ambari_agent_vm]
  37. # ambari_agent_vm_type = --base
  38. # 2 cores, 7.5GB RAM
  39. # ambari_agent_vm_type = --medium
  40. # 4 cores, 15GB RAMvm_key_file
  41. # ambari_agent_vm_type = --large
  42. # 8 cores, 30GB RAM
  43. # ambari_agent_vm_type = --xxlarge
  44. ambari_agent_vm_type = --large
  45. # only support centos 7
  46. ambari_agent_vm_os = --centos7
  47. #---------------------------------------------
  48. # use other partition or directory as the storage of docker. comment this line to disable
  49. # /grid/0/ requires --extradisk to be present for this VM
  50. use_partition = /grid/0/
  51. # use extra disk. comment this to disable
  52. ambari_agent_vm_extra_disk = --extradisk
  53. #---------------------------------------------
  54. [docker]
  55. # The docker hostname would be {Container_hostname_fix}-{index}-{cluster name}
  56. # The docker domain name would be {Container_hostname_fix}-{index}-{cluster name}.weave.local
  57. container_hostname_fix = docker
  58. #==============================================================================================================
  59. # pull this image from Docker hub instead of build from Docker file. yes to confirm, other string to disable
  60. # pull_docker_hub = yes
  61. # docker_image_name = image_name
  62. #++++++++++++++++++++++++++++++++++++++++++++++++++++
  63. pull_docker_hub = no
  64. docker_image_name = ambari/agent-sim
  65. # The name of the Dockerfile under Docker/
  66. dockerfile_name = Yum_Dockerfile
  67. #==============================================================================================================
  68. [ambari_server_vm]
  69. ambari_server_vm_type = --large
  70. ambari_server_vm_os = --centos7
  71. #ambari_server_vm_extra = --extradisk
  72. [service_server_vm]
  73. service_server_vm_type = --large
  74. service_server_vm_os = --centos7
  75. #service_server_vm_extra = --extradisk
  76. # The UI port of the service server, like NameNode, HBase master. This makes these ports accessible from outside
  77. server_port_list = 50070,8088,16010,19888
  78. [weave]
  79. # Internal Weave network will use this IP as a starting point,
  80. # and automatically assign IP to every node.
  81. weave_ip_base = 192.168.1.1
  82. weave_ip_mask = 16