Giter VIP home page Giter VIP logo

flink-parcel's Introduction

Flink Parcel

This repository contains a parcel for Apache Flink.

Currently it builds for Flink 1.0.3.

Usage

Move the parcel and the checksum file to the parcel repository of your CM server.


cp parcel/FLINK-1.0.3-p0-el7.parcel* /opt/cloudera/parcel-repo

Navigate to /cmf/parcel/status on the CM WebUI by clicking Parcels.

Click on Check for new Parcels. When Flink appears Click on distribute, then activate.

Log in to one of the machines having the active Flink parcel.

Start the Flink services (JobManager - master, TaskManager - slave):


export JAVA_HOME=/usr/java/jdk1.7.0_67-cloudera/; service flink-jobmanager start
export JAVA_HOME=/usr/java/jdk1.7.0_67-cloudera/; service flink-taskmanager start

Now you should be able to see the Flink WebUI on port 8081 on this host.

To run the WordCount example you can do the following:


export JAVA_HOME=/usr/java/jdk1.7.0_67-cloudera/;flink run /opt/cloudera/parcels/FLINK/usr/lib/flink/examples/batch/WordCount.jar --input /opt/cloudera/parcels/FLINK/usr/lib/flink/README.txt

It should produce the following output:


Usage: WordCount --input  --output 
Printing result to stdout. Use --output to specify output path.
06/28/2016 06:32:31	Job execution switched to status RUNNING.
06/28/2016 06:32:31	CHAIN DataSource (at main(WordCount.java:71) (org.apache.flink.api.java.io.TextInputFormat)) -> FlatMap (FlatMap at main(WordCount.java:79)) -> Combine(SUM(1), at main(WordCount.java:79)(1/1) switched to SCHEDULED 
06/28/2016 06:32:31	CHAIN DataSource (at main(WordCount.java:71) (org.apache.flink.api.java.io.TextInputFormat)) -> FlatMap (FlatMap at main(WordCount.java:79)) -> Combine(SUM(1), at main(WordCount.java:79)(1/1) switched to DEPLOYING 
06/28/2016 06:32:31	CHAIN DataSource (at main(WordCount.java:71) (org.apache.flink.api.java.io.TextInputFormat)) -> FlatMap (FlatMap at main(WordCount.java:79)) -> Combine(SUM(1), at main(WordCount.java:79)(1/1) switched to RUNNING 
06/28/2016 06:32:32	Reduce (SUM(1), at main(WordCount.java:79)(1/1) switched to SCHEDULED 
06/28/2016 06:32:32	Reduce (SUM(1), at main(WordCount.java:79)(1/1) switched to DEPLOYING 
06/28/2016 06:32:32	CHAIN DataSource (at main(WordCount.java:71) (org.apache.flink.api.java.io.TextInputFormat)) -> FlatMap (FlatMap at main(WordCount.java:79)) -> Combine(SUM(1), at main(WordCount.java:79)(1/1) switched to FINISHED 
06/28/2016 06:32:32	Reduce (SUM(1), at main(WordCount.java:79)(1/1) switched to RUNNING 
06/28/2016 06:32:32	DataSink (collect())(1/1) switched to SCHEDULED 
06/28/2016 06:32:32	DataSink (collect())(1/1) switched to DEPLOYING 
06/28/2016 06:32:32	Reduce (SUM(1), at main(WordCount.java:79)(1/1) switched to FINISHED 
06/28/2016 06:32:32	DataSink (collect())(1/1) switched to RUNNING 
06/28/2016 06:32:32	DataSink (collect())(1/1) switched to FINISHED 
06/28/2016 06:32:32	Job execution switched to status FINISHED.
(1,1)
(13,1)
(5d002,1)
(740,1)
(about,1)
(account,1)
(administration,1)
(algorithms,1)
(and,7)
(another,1)
...

flink-parcel's People

Contributors

mbalassi avatar

Watchers

James Cloos avatar  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.