聚色网电影 云奇迹器Flexus X实例,Docker集成搭建搭建Flink

发布日期:2025-01-02 02:25    点击次数:72

聚色网电影 云奇迹器Flexus X实例,Docker集成搭建搭建Flink

Apache Flink是一个鉴别式大数据研究引擎,专为解决无界和有界数据流上的有现象研究而缱绻,以其高否认量、低延伸和高性能在及时流解决和批量研究畛域脱颖而出,Flink复古批流一体化,即或者同期解决及时数据流和静态数据集,使得数据解决愈加生动高效华为云霄口放行 奇迹器放行对应端口8082

伸开剩余92%Docker安设并配置镜像加快

1、购买华为云 Flexus X 实例

Flexus云奇迹器X实例-华为云 (huaweicloud.com)

2、docker安设

yum install -y docker-ce

3、考证 Docker 是否安设得手,启动docker奇迹并配置开机自启动,且稽察docker现象

docker --version

systemctl enable docker

systemctl start docker

systemctl status docker

4、docker-ce下载

wget -O /etc/yum.repos.d/docker-ce.repo https://mirrors.huaweicloud.com/docker-ce/linux/centos/docker-ce.repo

5、旅途/etc/yum.repos.d修改配置文献

[docker-ce-stable]

name=Docker CE Stable - $basearch

baseurl=https://repo.huaweicloud.com/docker-ce/linux/centos/9.9/$basearch/stable

enabled=1

gpgcheck=1

gpgkey=https://repo.huaweicloud.com/docker-ce/linux/centos/gpg

[docker-ce-stable-debuginfo]

name=Docker CE Stable - Debuginfo $basearch

baseurl=https://repo.huaweicloud.com/docker-ce/linux/centos/9.9/debug-$basearch/stable

enabled=0

gpgcheck=1

gpgkey=https://repo.huaweicloud.com/docker-ce/linux/centos/gpg

[docker-ce-stable-source]

name=Docker CE Stable - Sources

baseurl=https://repo.huaweicloud.com/docker-ce/linux/centos/9.9/source/stable

enabled=0

gpgcheck=1

gpgkey=https://repo.huaweicloud.com/docker-ce/linux/centos/gpg

[docker-ce-test]

name=Docker CE Test - $basearch

baseurl=https://repo.huaweicloud.com/docker-ce/linux/centos/9.9/$basearch/test

enabled=0

gpgcheck=1

gpgkey=https://repo.huaweicloud.com/docker-ce/linux/centos/gpg

[docker-ce-test-debuginfo]

name=Docker CE Test - Debuginfo $basearch聚色网电影

baseurl=https://repo.huaweicloud.com/docker-ce/linux/centos/9.9/debug-$basearch/test

enabled=0

gpgcheck=1

gpgkey=https://repo.huaweicloud.com/docker-ce/linux/centos/gpg

[docker-ce-test-source]

name=Docker CE Test - Sources

baseurl=https://repo.huaweicloud.com/docker-ce/linux/centos/9.9/source/test

enabled=0

gpgcheck=1

gpgkey=https://repo.huaweicloud.com/docker-ce/linux/centos/gpg

[docker-ce-nightly]

name=Docker CE Nightly - $basearch

baseurl=https://repo.huaweicloud.com/docker-ce/linux/centos/9.9/$basearch/nightly

enabled=0

gpgcheck=1

gpgkey=https://repo.huaweicloud.com/docker-ce/linux/centos/gpg

[docker-ce-nightly-debuginfo]

name=Docker CE Nightly - Debuginfo $basearch

baseurl=https://repo.huaweicloud.com/docker-ce/linux/centos/9.9/debug-$basearch/nightly

enabled=0

gpgcheck=1

gpgkey=https://repo.huaweicloud.com/docker-ce/linux/centos/gpg

[docker-ce-nightly-source]

name=Docker CE Nightly - Sources

baseurl=https://repo.huaweicloud.com/docker-ce/linux/centos/9.9/source/nightly

enabled=0

gpgcheck=1

gpgkey=https://repo.huaweicloud.com/docker-ce/linux/centos/gpg

6、断根和构建缓存

yum clean all

yum makecache

7、docker配置镜像加快(在华为云镜像中心可赢得我方的镜像加快配置)

8、创建镜像加快配置文献

vim /etc/docker/daemon.json

<{p>"registry-mirrors": [ "https://fd0cfec0ac0d446db7fd9d27e92d4a8e.mirror.swr.myhuaweicloud.com" ]

}

9、再行加载配置文献,再行启动docker,稽察是否配置得手

systemctl daemon-reload

systemctl restart docker.service

10、docker info稽察配置信息,是否配置得手镜像加快

docker info

搭建Flink

1、创建文献夹

mkdir /flink

探花porn

2、编写docker-compose.yml文献

vim docker-compose.yml

version: "2.2"

services:

jobmanager:

image: flink:1.14.4-scala_2.11

ports:

- "8082:8082"

command: jobmanager

environment:

- |

FLINK_PROPERTIES=

jobmanager.rpc.address: jobmanager

taskmanager:

image: flink:1.14.4-scala_2.11

depends_on:

- jobmanager

command: taskmanager

scale: 1

environment:

- |

FLINK_PROPERTIES=

jobmanager.rpc.address: jobmanager

taskmanager.numberOfTaskSlots: 2

3、初始docker-compose.yml文献

docker-compose up -d

4、关闭奇迹器防火墙

systemctl stop firewalld

systemctl status firewalld

5、浏览器地址调查公网IP:8082

回来

华为云奇迹器Flexus X实例,Docker集成搭建搭建Flink,Flink或者同期解决及时数据流和静态数据集,使得数据解决愈加生动高效,接待搭建一谈购买华为云奇迹器搭建,当今奇迹器正在任性促销优惠,有需要的小伙伴不错购买!

华为云828 Flexus X实例聚色网电影

发布于:河北省