/| '
/ `. ,'|,-.____
/ `' ` `""----...,
. ,__.' .-'._
/ | ' .' ,_ `'`--.._
_.' . ,' `.`-._ `'.
| ` . .`-._,"'--._ `-.
,_.' ` `. .`._`. `-._ '
. ..' `. `.`. `-. `.
| `. `. `.`. `. \
| ,',.'"-\ \ `. `
,-' / ."\ ` \
. '`._ ,. / | ' `. \
..._) | " `. `-'. | .
\ '.---.._'._ ."'-._ .' | `.| '
`. `._ .._ `-' `.`-.| ' ` /
`. `-. `. `-.__ '- `._ \ |.
L_ `._ `. `"--..__ `"-../\ ||-.,\
`.' `-.`. `-._ `-._ .' |`. \
. _..`.`.._ ..` __`"-..-' |.' '-'
/___ ."' `-._`"----"' ` .( )`. `. .
-.,./ `"" `""'""'`--. `._ `. / \
/ , `._ `""' _____.' '
. `._ "...' /
. .' `""-----' ' _
' `-. .'
,' / _,
/ _..-"|"--.. |
/ ."' | .'.,----, ,.-'"|
. ,' | \ `--'. __...-"`...-'
' / ' \ `-----"'
/ ' . \ \
. . '._,'_.'`. \
'._. ).' ` `.
`"' \ `
`. . ,'
`"-'--'
wget http://apache-mirror.rbc.ru/pub/apache/flink/flink-1.2.0/flink-1.2.0-bin-hadoop26-scala_2.11.tgz
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-java</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-java_2.10</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients_2.10</artifactId>
<version>1.2.1</version>
</dependency>
mvn package
/home/temp/flink-1.2.0/bin/flink run --class Test2 --jobmanager yarn-cluster -yn 2 ./target/test-1.0-SNAPSHOT-jar-with-dependencies.jar
export HADOOP_CONF_DIR=/etc/hadoop/conf
mvn package && /home/temp/flink-1.2.0/bin/flink run --class TestRecordsCounter --classpath file:///home/temp/flink-1.2.0/lib/ --jobmanager yarn-cluster -yn 2 ./target/test-1.0-SNAPSHOT-jar-with-dependencies.jar
events.map(x -> x.session_id).print();