install.conf 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #!/usr/bin/env bash
  2. # Licensed to the Apache Software Foundation (ASF) under one
  3. # or more contributor license agreements. See the NOTICE file
  4. # distributed with this work for additional information
  5. # regarding copyright ownership. The ASF licenses this file
  6. # to you under the Apache License, Version 2.0 (the
  7. # "License"); you may not use this file except in compliance
  8. # with the License. You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. ##### install config #####
  18. # DNS
  19. LOCAL_DNS_HOST="172.17.0.9" # /etc/resolv.conf
  20. YARN_DNS_HOST="10.196.69.173" # yarn dns server ip address
  21. # etcd hosts list
  22. ETCD_HOSTS=(10.196.69.173 10.196.69.174 10.196.69.175)
  23. # docker registry ip:port
  24. DOCKER_REGISTRY="10.120.196.232:5000"
  25. # Start the http download service on the specified server,
  26. # Will download all the dependencies in the http server,
  27. # Run the install script on other servers.
  28. # Automatically download dependencies from http,
  29. # Solve the problem that all servers are slow to download online.
  30. # At the same time, you can also manually download the dependencies to the downloads directory.
  31. # Offline installation of the system
  32. DOWNLOAD_SERVER_IP="10.120.196.236"
  33. DOWNLOAD_SERVER_PORT="19000"
  34. # yarn container-executor config
  35. # How to compile container-executor:
  36. # Go to the hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager
  37. # path and enter the command: mvn package -Pnative -DskipTests
  38. # Only the nodemanager is compiled. The path of the compiled container-executor is:
  39. # ./target/native/target/usr/local/bin/container-executor
  40. YARN_CONTAINER_EXECUTOR_PATH="Please enter the full path to the container-executor here"
  41. # Keep the same configuration as 'yarn.nodemanager.linux-container-executor.cgroups.hierarchy'
  42. # in yarn-site.xml, default '/hadoop-yarn'
  43. YARN_HIERARCHY="/hadoop-yarn"
  44. # Keep the same configuration as 'yarn.nodemanager.local-dirs' in yarn-site.xml
  45. YARN_NODEMANAGER_LOCAL_DIRS="/home/hadoop/disk/1/yarn/local,/home/hadoop/disk/2/yarn/local,/home/hadoop/disk/3/yarn/local"
  46. # Keep the same configuration as 'yarn.nodemanager.log-dirs' in yarn-site.xml
  47. YARN_NODEMANAGER_LOG_DIRS="/home/hadoop/disk/1/yarn/logs,/home/hadoop/disk/2/yarn/logs,/home/hadoop/disk/3/yarn/logs"
  48. ##### System component download url address, Generally do not need to be modified #####
  49. DOCKER_REPO="https://yum.dockerproject.org/repo/main/centos/7/Packages"
  50. DOCKER_ENGINE_RPM="docker-engine-1.12.5-1.el7.centos.x86_64.rpm"
  51. DOCKER_ENGINE_SELINUX_RPM="docker-engine-selinux-1.12.5-1.el7.centos.noarch.rpm"
  52. NVIDIA_DETECT_URL="https://raw.githubusercontent.com/liuxunorg/submarine-installer/packages/nvidia/nvidia-detect"
  53. NVIDIA_DOCKER_RPM="nvidia-docker-1.0.1-1.x86_64.rpm"
  54. NVIDIA_DOCKER_RPM_URL="https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/${NVIDIA_DOCKER_RPM}"
  55. ETCD_TAR_GZ="etcd-v3.3.9-linux-amd64.tar.gz"
  56. ETCD_DOWNLOAD_URL="https://github.com/etcd-io/etcd/releases/download/v3.3.9/${ETCD_TAR_GZ}"
  57. CALICO_IPV4POOL_CIDR="192.20.0.0"
  58. CALICO_NETWORK_NAME="calico-network"
  59. CALICO_DOWNLOAD_URL="https://github.com/projectcalico/cni-plugin/releases/download/v1.11.7/calico"
  60. CALICO_IPAM_DOWNLOAD_URL="https://github.com/projectcalico/cni-plugin/releases/download/v1.11.7/calico-ipam"
  61. CALICOCTL_DOWNLOAD_URL="https://github.com/projectcalico/calicoctl/releases/download/v3.2.3/calicoctl"