Giter Site home page Giter Site logo

flinkprocesslog's Introduction

flink流计算处理分析日志全流程分析运用,未完待续。。。

1、下载安装jdk

2、下载安装Zookeeper

大家自行到官网下载

https://zookeeper.apache.org/releases.html

我用的apache-zookeeper-3.7.0-bin.tar.gz

tar -zxvf apache-zookeeper-3.7.0-bin.tar.gz -C /opt/

cd /opt/apache-zookeeper-3.7.0-bin/conf/

cp -r zoo_sample.cfg zoo.cfg

cd /opt/apache-zookeeper-3.7.0-bin/bin

./zkServer.sh start

3、下载kafka

http://kafka.apache.org/downloads.html

1、下载的kafka_2.11-2.4.0.tgz版本

tar -zxvf kafka_2.11-2.4.0.tgz -C /opt/

//修改下config/server.properties
cd /opt/kafka_2.11-2.4.0
vi config/server.properties

2、修改配置

//修改这两项配置
advertised.listeners=PLAINTEXT://192.168.52.200:9092
zookeeper.connect=localhost:2181

3、启动kafka

bin/kafka-server-start.sh -daemon config/server.properties

4、测试

cd /opt/kafka_2.11-2.4.0/bin

./kafka-console-consumer.sh  --bootstrap-server 192.168.52.200:9092 --consumer.config ../config/consumer.properties  --topic Flink_TEST  --from-beginning

看到如下就证明已经成功将数据成功导入kafka并且消费。

img

4、下载flink

flinkprocesslog's People

Contributors

nengm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.