国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Flink會(huì)話集群docker-compose一鍵安裝

這篇具有很好參考價(jià)值的文章主要介紹了Flink會(huì)話集群docker-compose一鍵安裝。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

1、安裝docker

參考,本人這篇博客:一鍵安裝docker

2、flink-conf.yaml

flink-conf.yaml放在/home/flink/conf/job、/home/flink/conf/task下面,flink-conf.yaml內(nèi)容如下:

################################################################################
#  Licensed to the Apache Software Foundation (ASF) under one
#  or more contributor license agreements.  See the NOTICE file
#  distributed with this work for additional information
#  regarding copyright ownership.  The ASF licenses this file
#  to you under the Apache License, Version 2.0 (the
#  "License"); you may not use this file except in compliance
#  with the License.  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
# limitations under the License.
################################################################################


#==============================================================================
# Common
#==============================================================================

# The external address of the host on which the JobManager runs and can be
# reached by the TaskManagers and any clients which want to connect. This setting
# is only used in Standalone mode and may be overwritten on the JobManager side
# by specifying the --host <hostname> parameter of the bin/jobmanager.sh executable.
# In high availability mode, if you use the bin/start-cluster.sh script and setup
# the conf/masters file, this will be taken care of automatically. Yarn/Mesos
# automatically configure the host name based on the hostname of the node where the
# JobManager runs.

jobmanager.rpc.address: jobmanager

# The RPC port where the JobManager is reachable.

jobmanager.rpc.port: 6123


# The total process memory size for the JobManager.
#
# Note this accounts for all memory usage within the JobManager process, including JVM metaspace and other overhead.

jobmanager.memory.process.size: 4096m

# The total process memory size for the TaskManager.
#
# Note this accounts for all memory usage within the TaskManager process, including JVM metaspace and other overhead.

taskmanager.memory.process.size: 16384m

# To exclude JVM metaspace and overhead, please, use total Flink memory size instead of 'taskmanager.memory.process.size'.
# It is not recommended to set both 'taskmanager.memory.process.size' and Flink memory.
#
# taskmanager.memory.flink.size: 1280m

# The number of task slots that each TaskManager offers. Each slot runs one parallel pipeline.

taskmanager.numberOfTaskSlots: 10

# The parallelism used for programs that did not specify and other parallelism.

parallelism.default: 1

# The default file system scheme and authority.
# 
# By default file paths without scheme are interpreted relative to the local
# root file system 'file:///'. Use this to override the default and interpret
# relative paths relative to a different file system,
# for example 'hdfs://mynamenode:12345'
#
# fs.default-scheme

#==============================================================================
# High Availability
#==============================================================================

# The high-availability mode. Possible options are 'NONE' or 'zookeeper'.
#
# high-availability: zookeeper

# The path where metadata for master recovery is persisted. While ZooKeeper stores
# the small ground truth for checkpoint and leader election, this location stores
# the larger objects, like persisted dataflow graphs.
# 
# Must be a durable file system that is accessible from all nodes
# (like HDFS, S3, Ceph, nfs, ...) 
#
# high-availability.storageDir: hdfs:///flink/ha/

# The list of ZooKeeper quorum peers that coordinate the high-availability
# setup. This must be a list of the form:
# "host1:clientPort,host2:clientPort,..." (default clientPort: 2181)
#
# high-availability.zookeeper.quorum: localhost:2181


# ACL options are based on https://zookeeper.apache.org/doc/r3.1.2/zookeeperProgrammers.html#sc_BuiltinACLSchemes
# It can be either "creator" (ZOO_CREATE_ALL_ACL) or "open" (ZOO_OPEN_ACL_UNSAFE)
# The default value is "open" and it can be changed to "creator" if ZK security is enabled
#
# high-availability.zookeeper.client.acl: open

#==============================================================================
# Fault tolerance and checkpointing
#==============================================================================

# The backend that will be used to store operator state checkpoints if
# checkpointing is enabled.
#
# Supported backends are 'jobmanager', 'filesystem', 'rocksdb', or the
# <class-name-of-factory>.
#
# state.backend: filesystem

# Directory for checkpoints filesystem, when using any of the default bundled
# state backends.
#
# state.checkpoints.dir: hdfs://namenode-host:port/flink-checkpoints

# Default target directory for savepoints, optional.
#
#state.savepoints.dir: file:/tmp/savepoint

# Flag to enable/disable incremental checkpoints for backends that
# support incremental checkpoints (like the RocksDB state backend). 
#
# state.backend.incremental: false

# The failover strategy, i.e., how the job computation recovers from task failures.
# Only restart tasks that may have been affected by the task failure, which typically includes
# downstream tasks and potentially upstream tasks if their produced data is no longer available for consumption.

jobmanager.execution.failover-strategy: region

#==============================================================================
# Rest & web frontend
#==============================================================================

# The port to which the REST client connects to. If rest.bind-port has
# not been specified, then the server will bind to this port as well.
#
#rest.port: 8081

# The address to which the REST client will connect to
#
#rest.address: 0.0.0.0

# Port range for the REST and web server to bind to.
#
#rest.bind-port: 8080-8090

# The address that the REST & web server binds to
#
#rest.bind-address: 0.0.0.0

# Flag to specify whether job submission is enabled from the web-based
# runtime monitor. Uncomment to disable.

#web.submit.enable: false

#==============================================================================
# Advanced
#==============================================================================

# Override the directories for temporary files. If not specified, the
# system-specific Java temporary directory (java.io.tmpdir property) is taken.
#
# For framework setups on Yarn or Mesos, Flink will automatically pick up the
# containers' temp directories without any need for configuration.
#
# Add a delimited list for multiple directories, using the system directory
# delimiter (colon ':' on unix) or a comma, e.g.:
#     /data1/tmp:/data2/tmp:/data3/tmp
#
# Note: Each directory entry is read from and written to by a different I/O
# thread. You can include the same directory multiple times in order to create
# multiple I/O threads against that directory. This is for example relevant for
# high-throughput RAIDs.
#
# io.tmp.dirs: /tmp

# The classloading resolve order. Possible values are 'child-first' (Flink's default)
# and 'parent-first' (Java's default).
#
# Child first classloading allows users to use different dependency/library
# versions in their application than those in the classpath. Switching back
# to 'parent-first' may help with debugging dependency issues.
#
# classloader.resolve-order: child-first

# The amount of memory going to the network stack. These numbers usually need 
# no tuning. Adjusting them may be necessary in case of an "Insufficient number
# of network buffers" error. The default min is 64MB, the default max is 1GB.
# 
# taskmanager.memory.network.fraction: 0.1
# taskmanager.memory.network.min: 64mb
# taskmanager.memory.network.max: 1gb

#==============================================================================
# Flink Cluster Security Configuration
#==============================================================================

# Kerberos authentication for various components - Hadoop, ZooKeeper, and connectors -
# may be enabled in four steps:
# 1. configure the local krb5.conf file
# 2. provide Kerberos credentials (either a keytab or a ticket cache w/ kinit)
# 3. make the credentials available to various JAAS login contexts
# 4. configure the connector to use JAAS/SASL

# The below configure how Kerberos credentials are provided. A keytab will be used instead of
# a ticket cache if the keytab path and principal are set.

# security.kerberos.login.use-ticket-cache: true
# security.kerberos.login.keytab: /path/to/kerberos/keytab
# security.kerberos.login.principal: flink-user

# The configuration below defines which JAAS login contexts

# security.kerberos.login.contexts: Client,KafkaClient

#==============================================================================
# ZK Security Configuration
#==============================================================================

# Below configurations are applicable if ZK ensemble is configured for security

# Override below configuration to provide custom ZK service name if configured
# zookeeper.sasl.service-name: zookeeper

# The configuration below must match one of the values set in "security.kerberos.login.contexts"
# zookeeper.sasl.login-context-name: Client

#==============================================================================
# HistoryServer
#==============================================================================

# The HistoryServer is started and stopped via bin/historyserver.sh (start|stop)

# Directory to upload completed jobs to. Add this directory to the list of
# monitored directories of the HistoryServer as well (see below).
#jobmanager.archive.fs.dir: hdfs:///completed-jobs/

# The address under which the web-based HistoryServer listens.
#historyserver.web.address: 0.0.0.0

# The port under which the web-based HistoryServer listens.
#historyserver.web.port: 8082

# Comma separated list of directories to monitor for completed jobs.
#historyserver.archive.fs.dir: hdfs:///completed-jobs/

# Interval in milliseconds for refreshing the monitored directories.
#historyserver.archive.fs.refresh-interval: 10000

blob.server.port: 6124
query.server.port: 6125

3、docker-compose.yaml

使用如下命令部署集群:

docker-compose -f docker-compose.yml up -d

docker-compose.yaml內(nèi)容如下:

version: "2.1"
services:
  jobmanager:
    image: flink:1.12.7-scala_2.11
    expose:
      - "6123"
    ports:
      - "8081:8081"
    command: jobmanager
    environment:
      - JOB_MANAGER_RPC_ADDRESS=jobmanager
    volumes:
      - /home/flink/conf/job/flink-conf.yaml:/opt/flink/conf/flink-conf.yaml
    restart: always

  taskmanager:
    image: flink:1.12.7-scala_2.11
    expose:
      - "6121"
      - "6122"
    depends_on:
      - jobmanager
    command: taskmanager
    links:
      - "jobmanager:jobmanager"
    environment:
      - JOB_MANAGER_RPC_ADDRESS=jobmanager
    volumes:
      - /home/flink/conf/task/flink-conf.yaml:/opt/flink/conf/flink-conf.yaml
    restart: always

4、啟動(dòng)后

Flink會(huì)話集群docker-compose一鍵安裝,虛擬機(jī)&amp;容器,實(shí)戰(zhàn),其它,flink,大數(shù)據(jù),安裝,docker

5、頁面訪問

訪問地址:http://IP:8081
Flink會(huì)話集群docker-compose一鍵安裝,虛擬機(jī)&amp;容器,實(shí)戰(zhàn),其它,flink,大數(shù)據(jù),安裝,docker文章來源地址http://www.zghlxwxcb.cn/news/detail-791297.html

到了這里,關(guān)于Flink會(huì)話集群docker-compose一鍵安裝的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 【docker】docker-compose安裝帶ui頁面的kafka集群

    在日常的工作當(dāng)中,kafka集群作為常用的中間件,其搭建過程略顯繁瑣,需要配置的文件頗多,為了方便各位初學(xué)者快速體驗(yàn)kafka的魅力,本文采取一鍵式安裝kafka-3.3.1(不帶zookeeper版本)的集群化安裝。 僅需將下面配置中的10.0.0.147 改為自己本機(jī)的ip即可 執(zhí)行 命令安裝即可

    2024年02月14日
    瀏覽(45)
  • 一鍵卸載docker、docker-compose

    1、創(chuàng)建卸載文件:?docker-uninstall.sh ??docker-uninstall.sh 2、vim ?docker-uninstall.sh,輸入以下內(nèi)容 # 卸載舊版本的Docker yum remove docker ? ? ? ? ? ? ? ? ? docker-client ? ? ? ? ? ? ? ? ? docker-client-latest ? ? ? ? ? ? ? ? ? docker-common ? ? ? ? ? ? ? ? ? docker-latest ? ? ? ? ?

    2024年02月03日
    瀏覽(23)
  • 【Docker】(七)使用docker-compose一鍵部署環(huán)境

    【Docker】(七)使用docker-compose一鍵部署環(huán)境

    本系列文章記錄了從0開始學(xué)習(xí)Docker的過程,Docker系列歷史文章: (一)基本概念與安裝使用 (二)如何使用Docker發(fā)布一個(gè)SpringBoot服務(wù) (三)使用registry遠(yuǎn)程鏡像倉庫管理鏡像 (四)使用volume持久化Docker容器中的Redis數(shù)據(jù) (五)使用bind mounts修改Docker容器中的Nginx配置 (六)

    2024年02月08日
    瀏覽(24)
  • [云原生1. ] 使用Docker-compose一鍵部署Wordpress平臺(tái)

    [云原生1. ] 使用Docker-compose一鍵部署Wordpress平臺(tái)

    docker-compose 是實(shí)現(xiàn)在單機(jī)上對(duì)容器集群編排管理的工具。 docker-compose 是基于python開發(fā)的,能運(yùn)行docker的平臺(tái),都能用docker-compose編排管理容器。 本質(zhì)就是在 yaml格式 的 docker-compose配置模板文件 里定義多個(gè)容器的啟動(dòng)參數(shù)和依賴關(guān)系,并使用 docker-compose 根據(jù)這個(gè)模板文件的配

    2024年02月07日
    瀏覽(57)
  • docker-compose一鍵啟動(dòng)neo4j

    下載鏡像 docker pull neo4j:3.5.22-community 編寫配置文件 參考文檔 編寫docker-compose.yml文件 一鍵啟動(dòng) docker-compose up -d

    2024年02月03日
    瀏覽(16)
  • 【云原生】Docker-compose部署flink

    Apache Flink的數(shù)據(jù)流編程模型在有限和無限數(shù)據(jù)集上提供單次事件(event-at-a-time)處理。在基礎(chǔ)層面,F(xiàn)link程序由流和轉(zhuǎn)換組成。 Apache Flink的API:有界或無界數(shù)據(jù)流的數(shù)據(jù)流API、用于有界數(shù)據(jù)集的數(shù)據(jù)集API、表API。 [3] 數(shù)據(jù)流的運(yùn)行流程 Flink程序在執(zhí)行后被映射到流數(shù)據(jù)流,每

    2024年02月08日
    瀏覽(29)
  • 【Docker從入門到入土 5】 使用Docker-compose一鍵部署Wordpress平臺(tái)

    【Docker從入門到入土 5】 使用Docker-compose一鍵部署Wordpress平臺(tái)

    YAML 是一種標(biāo)記語言,它可以很直觀的展示數(shù)據(jù)序列化格式,可讀性高。 類似于 json 數(shù)據(jù)描述語言,語法比 json 簡(jiǎn)單的很多。 YAML 數(shù)據(jù)結(jié)構(gòu)通過縮進(jìn)來表示,連續(xù)的項(xiàng)目通過減號(hào)來表示,鍵值對(duì)用冒號(hào)分隔,數(shù)組用中括號(hào) [] 括起來, hash 用花括號(hào) {} 括起來。 語法特點(diǎn) 區(qū)分大

    2024年02月03日
    瀏覽(24)
  • docker-compose部署rabbitmq集群

    docker-compose部署rabbitmq集群

    1、集群分類 RabbitMQ的是基于Erlang語言編寫,而Erlang又是一個(gè)面向并發(fā)的語言,天然支持集群模式。 RabbitMQ的集群以下分類: 標(biāo)準(zhǔn)集群:是一種分布式集群,將隊(duì)列分散到集群的各個(gè)節(jié)點(diǎn),從而提高整個(gè)集群的并發(fā)能力。 鏡像集群:是一種主從集群,標(biāo)準(zhǔn)集群的基礎(chǔ)上,添加

    2024年02月16日
    瀏覽(26)
  • docker-compose部署minio集群

    docker-compose部署minio集群

    提示:本文是在Dokcer Desktop環(huán)境下部署。 docker部署單機(jī)minio 之前有講過,這里就不在重復(fù) 提示:quay.io/minio/minio是穩(wěn)定版本 docker pull quay.io/minio/minio 分別創(chuàng)建 C:DockerDataminio-clusterminio1和C:DockerDataminio-clusterminio2文件夾 然后再minio1/minio2中分別創(chuàng)建config、data1和data2文件夾 提示

    2024年02月12日
    瀏覽(58)
  • docker-compose 一鍵啟動(dòng) 容器中的一組相關(guān)的應(yīng)用

    docker-compose是docker官方的開源項(xiàng)目,負(fù)責(zé)實(shí)現(xiàn)對(duì)docker容器的快速編排。 docker-compose 使用一個(gè)docker-compose.yml模板文件,定義一個(gè)多容器的應(yīng)用,然后使用一條命令安裝所有的依賴,并完成構(gòu)建。 docker-compose解決容器與容器之間如何管理編排的問題。 docker-compose 多服務(wù)部署工具

    2024年02月12日
    瀏覽(24)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包