diff --git a/content/post/lafs01e03.md b/content/post/lafs01e03.md new file mode 100644 index 0000000..41db21a --- /dev/null +++ b/content/post/lafs01e03.md @@ -0,0 +1,43 @@ +--- +draft: false +title: 'Learning Apache Flink S01E03: Running my First Flink Cluster and Application' +date: "2023-10-05T14:29:02Z" +image: "/images/2023/10/h_IMG_8835.webp" +thumbnail: "/images/2023/10/t_IMG_5439.webp" +credit: "https://twitter.com/rmoff/" +categories: +- LAF +- Apache Flink +--- + +🎉 I just ran my first Apache Flink cluster and application on it 🎉 + + + +![](/images/2023/10/flinkrun.webp) + + +I followed the [**First Steps** quickstart from the Flink docs](https://nightlies.apache.org/flink/flink-docs-release-1.17/docs/try-flink/local_installation/) which is a nicely-paced walk through: + +0️⃣ make sure you've got Java 11 + +1️⃣ install Flink ([download](https://flink.apache.org/downloads/), unpack (with a [little detour](/2023/10/04/cd-string-not-in-pwd/))) + +2️⃣ run it (`./bin/start-cluster.sh`) + +3️⃣ submit the sample WordCount app + +4️⃣ see the execution in the web UI + +5️⃣ examine the output + +![](/images/2023/10/flinktail.webp) + + +The WebUI is a nice touch - sometimes just running everything on the CLI gives you a technically correct finish but if you're new to something leaves you underwhelmed. The webUI lets you click around a bit and start to get a feel for what's going on. + +![The Flink web UI](/images/2023/10/flinkui01.webp) + +![The Flink web UI](/images/2023/10/flinkui02.webp) + +You can find the source for the WordCount app [here](https://github.com/apache/flink/blob/release-1.17/flink-examples/flink-examples-batch/src/main/java/org/apache/flink/examples/java/wordcount/WordCount.java), and further tutorials on Flink [here](https://nightlies.apache.org/flink/flink-docs-release-1.17/docs/try-flink/local_installation/). diff --git a/static/images/2023/10/flinkrun.webp b/static/images/2023/10/flinkrun.webp new file mode 100644 index 0000000..b318218 Binary files /dev/null and b/static/images/2023/10/flinkrun.webp differ diff --git a/static/images/2023/10/flinktail.webp b/static/images/2023/10/flinktail.webp new file mode 100644 index 0000000..13a63ba Binary files /dev/null and b/static/images/2023/10/flinktail.webp differ diff --git a/static/images/2023/10/flinkui01.webp b/static/images/2023/10/flinkui01.webp new file mode 100644 index 0000000..10b7c7d Binary files /dev/null and b/static/images/2023/10/flinkui01.webp differ diff --git a/static/images/2023/10/flinkui02.webp b/static/images/2023/10/flinkui02.webp new file mode 100644 index 0000000..72b4d0b Binary files /dev/null and b/static/images/2023/10/flinkui02.webp differ diff --git a/static/images/2023/available/h_IMG_8835.jpeg b/static/images/2023/10/h_IMG_8835.jpeg similarity index 100% rename from static/images/2023/available/h_IMG_8835.jpeg rename to static/images/2023/10/h_IMG_8835.jpeg diff --git a/static/images/2023/10/h_IMG_8835.webp b/static/images/2023/10/h_IMG_8835.webp new file mode 100644 index 0000000..669ff5e Binary files /dev/null and b/static/images/2023/10/h_IMG_8835.webp differ diff --git a/static/images/2023/10/t_IMG_5439.webp b/static/images/2023/10/t_IMG_5439.webp new file mode 100644 index 0000000..e70b703 Binary files /dev/null and b/static/images/2023/10/t_IMG_5439.webp differ diff --git a/static/images/2023/available/h_IMG_5439.jpeg b/static/images/2023/available/h_IMG_5439.jpeg deleted file mode 100644 index f31c40e..0000000 Binary files a/static/images/2023/available/h_IMG_5439.jpeg and /dev/null differ