windows下安装flink并启动

本文主要解决在Windows上安装Flink过程中bin目录找不到start-cluster.bat脚本的问题。若使用Scala 2.11版本,需手动将bat脚本复制到bin目录。详细流程及参考资料见文末链接。
摘要由CSDN通过智能技术生成

主要记录下bin目录找不到bat脚本的问题,详细流程看文末参考文档

1.直接下载scala版本为2.12的bin目录下自带bat脚本
2.官网scala版本2.11的bin目录下没有bat脚本,如果要使用scala2.11的直接把bat脚本copy的bin目录即可
在这里插入图片描述
在这里插入图片描述

start-cluster.bat脚本内容

::###############################################################################
::  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.
::###############################################################################

@echo off
setlocal EnableDelayedExpansion

SET bin=%~dp0
SET FLINK_HOME
Flink是一个开源的流处理框架,它主要运行在Linux环境下。虽然Flink官方不提供Windows平台的二进制发行版,但你仍然可以在Windows安装和运行Flink。下面是一些步骤来帮助你在Windows安装Flink: 1. 下载和安装Java:Flink是由Java编写的,所以首先需要安装Java环境。你可以从Oracle官方网站下载并安装JDK。 2. 下载Flink二进制发行版:前往Flink官方网站的下载页面(https://flink.apache.org/downloads.html)下载最新的Flink二进制发行版。选择一个适合你的版本和需求的发行版。 3. 解压缩发行版:将下载的二进制发行版解压到你想要安装Flink的目录。 4. 配置Flink环境变量:将Flink的bin目录添加到系统的PATH环境变量中。这样你可以在命令行中直接运行Flink命令。 5. 启动Flink集群:打开命令提示符(CMD),进入到Flink目录的bin目录下,运行以下命令启动Flink集群: ``` start-cluster.bat ``` 6. 访问Flink Web界面:打开浏览器,访问http://localhost:8081,你将看到Flink的Web界面,可以在这里监控和管理Flink集群。 现在你已经成功在Windows安装Flink。你可以使用Flink提供的API编写和运行流处理应用程序。请注意,由于Windows不是Flink的主要支持平台,可能会遇到一些与操作系统相关的问题。如果你在安装或运行中遇到困难,可以参考Flink官方文档或在Flink社区寻求帮助。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值