config.yaml.bak 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. ################################################################################
  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. ################################################################################
  18. # These parameters are required for Java 17 support.
  19. # They can be safely removed when using Java 8/11.
  20. env:
  21. java:
  22. opts:
  23. #==============================================================================
  24. # Common
  25. #==============================================================================
  26. jobmanager:
  27. # The host interface the JobManager will bind to. By default, this is localhost, and will prevent
  28. # the JobManager from communicating outside the machine/container it is running on.
  29. # On YARN this setting will be ignored if it is set to 'localhost', defaulting to 0.0.0.0.
  30. # On Kubernetes this setting will be ignored, defaulting to 0.0.0.0.
  31. #
  32. # To enable this, set the bind-host address to one that has access to an outside facing network
  33. # interface, such as 0.0.0.0.
  34. bind-host: localhost
  35. rpc:
  36. # The external address of the host on which the JobManager runs and can be
  37. # reached by the TaskManagers and any clients which want to connect. This setting
  38. # is only used in Standalone mode and may be overwritten on the JobManager side
  39. # by specifying the --host <hostname> parameter of the bin/jobmanager.sh executable.
  40. # In high availability mode, if you use the bin/start-cluster.sh script and setup
  41. # the conf/masters file, this will be taken care of automatically. Yarn
  42. # automatically configure the host name based on the hostname of the node where the
  43. # JobManager runs.
  44. address: localhost
  45. # The RPC port where the JobManager is reachable.
  46. port: 6123
  47. memory:
  48. process:
  49. # The total process memory size for the JobManager.
  50. # Note this accounts for all memory usage within the JobManager process, including JVM metaspace and other overhead.
  51. size: 1600m
  52. execution:
  53. # The failover strategy, i.e., how the job computation recovers from task failures.
  54. # Only restart tasks that may have been affected by the task failure, which typically includes
  55. # downstream tasks and potentially upstream tasks if their produced data is no longer available for consumption.
  56. failover-strategy: region
  57. taskmanager:
  58. # The host interface the TaskManager will bind to. By default, this is localhost, and will prevent
  59. # the TaskManager from communicating outside the machine/container it is running on.
  60. # On YARN this setting will be ignored if it is set to 'localhost', defaulting to 0.0.0.0.
  61. # On Kubernetes this setting will be ignored, defaulting to 0.0.0.0.
  62. #
  63. # To enable this, set the bind-host address to one that has access to an outside facing network
  64. # interface, such as 0.0.0.0.
  65. bind-host: localhost
  66. # The address of the host on which the TaskManager runs and can be reached by the JobManager and
  67. # other TaskManagers. If not specified, the TaskManager will try different strategies to identify
  68. # the address.
  69. #
  70. # Note this address needs to be reachable by the JobManager and forward traffic to one of
  71. # the interfaces the TaskManager is bound to (see 'taskmanager.bind-host').
  72. #
  73. # Note also that unless all TaskManagers are running on the same machine, this address needs to be
  74. # configured separately for each TaskManager.
  75. host: localhost
  76. # The number of task slots that each TaskManager offers. Each slot runs one parallel pipeline.
  77. numberOfTaskSlots: 2
  78. memory:
  79. task:
  80. off-heap:
  81. size: 256m
  82. network:
  83. fraction: 0.2
  84. process:
  85. # The total process memory size for the TaskManager.
  86. #
  87. # Note this accounts for all memory usage within the TaskManager process, including JVM metaspace and other overhead.
  88. # To exclude JVM metaspace and overhead, please, use total Flink memory size instead of 'taskmanager.memory.process.size'.
  89. # It is not recommended to set both 'taskmanager.memory.process.size' and Flink memory.
  90. size: 4gb
  91. parallelism:
  92. # The parallelism used for programs that did not specify and other parallelism.
  93. default: 3
  94. # # The default file system scheme and authority.
  95. # # By default file paths without scheme are interpreted relative to the local
  96. # # root file system 'file:///'. Use this to override the default and interpret
  97. # # relative paths relative to a different file system,
  98. # # for example 'hdfs://mynamenode:12345'
  99. # fs:
  100. # default-scheme: hdfs://mynamenode:12345
  101. #==============================================================================
  102. # High Availability
  103. #==============================================================================
  104. # high-availability:
  105. # # The high-availability mode. Possible options are 'NONE' or 'zookeeper'.
  106. # type: zookeeper
  107. # # The path where metadata for master recovery is persisted. While ZooKeeper stores
  108. # # the small ground truth for checkpoint and leader election, this location stores
  109. # # the larger objects, like persisted dataflow graphs.
  110. # #
  111. # # Must be a durable file system that is accessible from all nodes
  112. # # (like HDFS, S3, Ceph, nfs, ...)
  113. # storageDir: hdfs:///flink/ha/
  114. # zookeeper:
  115. # # The list of ZooKeeper quorum peers that coordinate the high-availability
  116. # # setup. This must be a list of the form:
  117. # # "host1:clientPort,host2:clientPort,..." (default clientPort: 2181)
  118. # quorum: localhost:2181
  119. # client:
  120. # # ACL options are based on https://zookeeper.apache.org/doc/r3.1.2/zookeeperProgrammers.html#sc_BuiltinACLSchemes
  121. # # It can be either "creator" (ZOO_CREATE_ALL_ACL) or "open" (ZOO_OPEN_ACL_UNSAFE)
  122. # # The default value is "open" and it can be changed to "creator" if ZK security is enabled
  123. # acl: open
  124. #==============================================================================
  125. # Fault tolerance and checkpointing
  126. #==============================================================================
  127. # The backend that will be used to store operator state checkpoints if
  128. # checkpointing is enabled. Checkpointing is enabled when execution.checkpointing.interval > 0.
  129. # # Execution checkpointing related parameters. Please refer to CheckpointConfig and ExecutionCheckpointingOptions for more details.
  130. # execution:
  131. # checkpointing:
  132. # interval: 3min
  133. # externalized-checkpoint-retention: [DELETE_ON_CANCELLATION, RETAIN_ON_CANCELLATION]
  134. # max-concurrent-checkpoints: 1
  135. # min-pause: 0
  136. # mode: [EXACTLY_ONCE, AT_LEAST_ONCE]
  137. # timeout: 10min
  138. # tolerable-failed-checkpoints: 0
  139. # unaligned: false
  140. # state:
  141. # backend:
  142. # # Supported backends are 'hashmap', 'rocksdb', or the
  143. # # <class-name-of-factory>.
  144. # type: hashmap
  145. # # Flag to enable/disable incremental checkpoints for backends that
  146. # # support incremental checkpoints (like the RocksDB state backend).
  147. # incremental: false
  148. # checkpoints:
  149. # # Directory for checkpoints filesystem, when using any of the default bundled
  150. # # state backends.
  151. # dir: hdfs://namenode-host:port/flink-checkpoints
  152. # savepoints:
  153. # # Default target directory for savepoints, optional.
  154. # dir: hdfs://namenode-host:port/flink-savepoints
  155. #==============================================================================
  156. # Rest & web frontend
  157. #==============================================================================
  158. rest:
  159. # The address to which the REST client will connect to
  160. address: localhost
  161. # The address that the REST & web server binds to
  162. # By default, this is localhost, which prevents the REST & web server from
  163. # being able to communicate outside of the machine/container it is running on.
  164. #
  165. # To enable this, set the bind address to one that has access to outside-facing
  166. # network interface, such as 0.0.0.0.
  167. bind-address: localhost
  168. # # The port to which the REST client connects to. If rest.bind-port has
  169. # # not been specified, then the server will bind to this port as well.
  170. # port: 8081
  171. # # Port range for the REST and web server to bind to.
  172. # bind-port: 8080-8090
  173. # web:
  174. # submit:
  175. # # Flag to specify whether job submission is enabled from the web-based
  176. # # runtime monitor. Uncomment to disable.
  177. # enable: false
  178. # cancel:
  179. # # Flag to specify whether job cancellation is enabled from the web-based
  180. # # runtime monitor. Uncomment to disable.
  181. # enable: false
  182. #==============================================================================
  183. # Advanced
  184. #==============================================================================
  185. # io:
  186. # tmp:
  187. # # Override the directories for temporary files. If not specified, the
  188. # # system-specific Java temporary directory (java.io.tmpdir property) is taken.
  189. # #
  190. # # For framework setups on Yarn, Flink will automatically pick up the
  191. # # containers' temp directories without any need for configuration.
  192. # #
  193. # # Add a delimited list for multiple directories, using the system directory
  194. # # delimiter (colon ':' on unix) or a comma, e.g.:
  195. # # /data1/tmp:/data2/tmp:/data3/tmp
  196. # #
  197. # # Note: Each directory entry is read from and written to by a different I/O
  198. # # thread. You can include the same directory multiple times in order to create
  199. # # multiple I/O threads against that directory. This is for example relevant for
  200. # # high-throughput RAIDs.
  201. # dirs: /tmp
  202. # classloader:
  203. # resolve:
  204. # # The classloading resolve order. Possible values are 'child-first' (Flink's default)
  205. # # and 'parent-first' (Java's default).
  206. # #
  207. # # Child first classloading allows users to use different dependency/library
  208. # # versions in their application than those in the classpath. Switching back
  209. # # to 'parent-first' may help with debugging dependency issues.
  210. # order: child-first
  211. # The amount of memory going to the network stack. These numbers usually need
  212. # no tuning. Adjusting them may be necessary in case of an "Insufficient number
  213. # of network buffers" error. The default min is 64MB, the default max is 1GB.
  214. #
  215. # taskmanager:
  216. # memory:
  217. # network:
  218. # fraction: 0.1
  219. # min: 64mb
  220. # max: 1gb
  221. #==============================================================================
  222. # Flink Cluster Security Configuration
  223. #==============================================================================
  224. # Kerberos authentication for various components - Hadoop, ZooKeeper, and connectors -
  225. # may be enabled in four steps:
  226. # 1. configure the local krb5.conf file
  227. # 2. provide Kerberos credentials (either a keytab or a ticket cache w/ kinit)
  228. # 3. make the credentials available to various JAAS login contexts
  229. # 4. configure the connector to use JAAS/SASL
  230. # # The below configure how Kerberos credentials are provided. A keytab will be used instead of
  231. # # a ticket cache if the keytab path and principal are set.
  232. # security:
  233. # kerberos:
  234. # login:
  235. # use-ticket-cache: true
  236. # keytab: /path/to/kerberos/keytab
  237. # principal: flink-user
  238. # # The configuration below defines which JAAS login contexts
  239. # contexts: Client,KafkaClient
  240. #==============================================================================
  241. # ZK Security Configuration
  242. #==============================================================================
  243. # zookeeper:
  244. # sasl:
  245. # # Below configurations are applicable if ZK ensemble is configured for security
  246. # #
  247. # # Override below configuration to provide custom ZK service name if configured
  248. # # zookeeper.sasl.service-name: zookeeper
  249. # #
  250. # # The configuration below must match one of the values set in "security.kerberos.login.contexts"
  251. # login-context-name: Client
  252. #==============================================================================
  253. # HistoryServer
  254. #==============================================================================
  255. # The HistoryServer is started and stopped via bin/historyserver.sh (start|stop)
  256. #
  257. # jobmanager:
  258. # archive:
  259. # fs:
  260. # # Directory to upload completed jobs to. Add this directory to the list of
  261. # # monitored directories of the HistoryServer as well (see below).
  262. # dir: hdfs:///completed-jobs/
  263. # historyserver:
  264. # web:
  265. # # The address under which the web-based HistoryServer listens.
  266. # address: 0.0.0.0
  267. # # The port under which the web-based HistoryServer listens.
  268. # port: 8082
  269. # archive:
  270. # fs:
  271. # # Comma separated list of directories to monitor for completed jobs.
  272. # dir: hdfs:///completed-jobs/
  273. # # Interval in milliseconds for refreshing the monitored directories.
  274. # fs.refresh-interval: 10000
  275. metrics:
  276. reporter:
  277. prom:
  278. factory:
  279. class: org.apache.flink.metrics.prometheus.PrometheusReporterFactory
  280. scope:
  281. variables:
  282. additional: biz=ob-agent-stream
  283. kubernetes:
  284. taskmanager:
  285. annotations:
  286. aaa=bbb