flink-java-project tutorial - http://training.data-artisans.com/
Since this project has no frontend I have configured TravisCI to create the github pages showing the coverage. Access coverage page here.
This task consist in implement the Ride Cleansing exercise. Running:
- Start local flink:
cd /path/to/flink/installation
./bin/start-local.sh
It also starts the WebGUI - http://localhost:8081.
- Submit a job
cd /path/to/flink/installation
./bin/flink run -c com.training.data.artisans.taxi.TaxiRideCleansingRunner /path/to/program/target/flink-java-project-0.1.jar --input "/path/to/nycTaxiRides.gz"
- Stoping local flink:
cd /path/to/flink/installation
./bin/stop-local.sh
This task consist in implement the Popular Places exercise.
- Start local flink:
cd /path/to/flink/installation
./bin/start-local.sh
It also starts the WebGUI - http://localhost:8081.
- Submit a job
cd /path/to/flink/installation
./bin/flink run -c com.training.data.artisans.taxi.PoupularPlacesMain /path/to/program/target/flink-java-project-0.1.jar
- Stoping local flink:
cd /path/to/flink/installation
./bin/stop-local.sh
- Start Zookeeper (Kafka uses ZooKeeper for distributed coordination) on localhost:2181
cd path/to/kafka_2.10-0.10.2.0
./bin/zookeeper-server-start.sh config/zookeeper.properties &
- Start a Kafka instance on localhost:9092:
cd path/to/kafka_2.10-0.10.2.0
./bin/kafka-server-start.sh config/server.properties &
- Stop Kafka and ZooKeeper by calling scripts below in exactly the same order.
./bin/kafka-server-stop.sh
./bin/zookeeper-server-stop.sh
It wasn't possible to use TravisCI straight away. Check the problems in the Problems section.
I have face problems using flink-training-exercises package as a dependency.
- There is no version 0.10.0 in the maven repository
- I can't pull from github, there is no mvn-repo branch link
Fortunately, there is a solution :).
First I have added an install step into .travis.yml
install: ./ci/install-flink-training-exercises.sh
Essentially, the flink-training-exercise is cloned and built.
Check the ci/install-flink-training-exercises.sh to understand how this process is done.
You can find the reference here
- sudo apt-get install jq
- sudo apt install curl
You can find the reference here
- sudo apt install ruby
- sudo apt-get install ruby-dev
- sudo gem install travis
In order to find the instalation path run:
- gem environment | grep "- INSTALLATION DIRECTORY"