install_env.sh 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. # ---------------------------------------------------------
  18. # INSTALL MACHINE
  19. # ---------------------------------------------------------
  20. # A comma separated list of machine hostname or IP would be installed DolphinScheduler,
  21. # including master, worker, api, alert. If you want to deploy in pseudo-distributed
  22. # mode, just write a pseudo-distributed hostname
  23. # Example for hostnames: ips="ds1,ds2,ds3,ds4,ds5", Example for IPs: ips="192.168.8.1,192.168.8.2,192.168.8.3,192.168.8.4,192.168.8.5"
  24. ips=${ips:-"localhost"}
  25. # Port of SSH protocol, default value is 22. For now we only support same port in all `ips` machine
  26. # modify it if you use different ssh port
  27. sshPort=${sshPort:-"22"}
  28. # A comma separated list of machine hostname or IP would be installed Master server, it
  29. # must be a subset of configuration `ips`.
  30. # Example for hostnames: masters="ds1,ds2", Example for IPs: masters="192.168.8.1,192.168.8.2"
  31. masters=${masters:-"localhost"}
  32. # A comma separated list of machine <hostname>:<workerGroup> or <IP>:<workerGroup>.All hostname or IP must be a
  33. # subset of configuration `ips`, And workerGroup have default value as `default`, but we recommend you declare behind the hosts
  34. # Example for hostnames: workers="ds1:default,ds2:default,ds3:default", Example for IPs: workers="192.168.8.1:default,192.168.8.2:default,192.168.8.3:default"
  35. workers=${workers:-"localhost:default"}
  36. # A comma separated list of machine hostname or IP would be installed Alert server, it
  37. # must be a subset of configuration `ips`.
  38. # Example for hostname: alertServer="ds3", Example for IP: alertServer="192.168.8.3"
  39. alertServer=${alertServer:-"localhost"}
  40. # A comma separated list of machine hostname or IP would be installed API server, it
  41. # must be a subset of configuration `ips`.
  42. # Example for hostname: apiServers="ds1", Example for IP: apiServers="192.168.8.1"
  43. apiServers=${apiServers:-"localhost"}
  44. # The directory to install DolphinScheduler for all machine we config above. It will automatically be created by `install.sh` script if not exists.
  45. # Do not set this configuration same as the current path (pwd)
  46. installPath=${installPath:-"/root/apache-dolphinscheduler-*-SNAPSHOT-bin"}
  47. # The user to deploy DolphinScheduler for all machine we config above. For now user must create by yourself before running `install.sh`
  48. # script. The user needs to have sudo privileges and permissions to operate hdfs. If hdfs is enabled than the root directory needs
  49. # to be created by this user
  50. deployUser=${deployUser:-"dolphinscheduler"}
  51. # The root of zookeeper, for now DolphinScheduler default registry server is zookeeper.
  52. zkRoot=${zkRoot:-"/dolphinscheduler"}