Skip to content

Commit d843133

Browse files
authored
Update baseline.md
1 parent 7bf9d68 commit d843133

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

content/learning-paths/servers-and-cloud-computing/flink-on-gcp/baseline.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ layout: learningpathall
77
---
88

99
## Apache Flink Baseline Testing on GCP SUSE VM
10-
This guide explains how to perform **baseline testing** for Apache Flink after installation on a **GCP SUSE VM**. Baseline testing ensures that the Flink cluster is operational, the environment is correctly configured, and basic jobs run successfully.
10+
In this section you will perform baseline testing for Apache Flink after installation on a GCP SUSE VM. Baseline testing validates that your installation is correct, the JVM is functioning properly, and Flink’s JobManager/TaskManager can execute jobs successfully.
11+
12+
### Install Maven (Required to Build and Run Flink Jobs)
13+
Before running Flink jobs, ensure that Maven is installed on your VM. Many Flink examples and real-world jobs require Apache Maven to compile Java applications.
1114

12-
### Download and Extract Maven
13-
Before running Flink jobs, ensure that **Java** and **Maven** are installed on your VM.
1415
Download Maven and extract it:
1516

1617
```console
@@ -20,8 +21,8 @@ sudo tar -xvzf apache-maven-3.8.6-bin.tar.gz
2021
sudo mv apache-maven-3.8.6 /opt/maven
2122
```
2223

23-
### Set Environment Variables
24-
Configure the environment so Maven commands are recognized system-wide:
24+
### Configure Environment Variables
25+
Configure the environment so Maven commands can be run system-wide:
2526

2627
```console
2728
echo "export M2_HOME=/opt/maven" >> ~/.bashrc
@@ -47,9 +48,9 @@ OS name: "linux", version: "5.14.21-150500.55.124-default", arch: "aarch64", fam
4748
At this point, both Java and Maven are installed and ready to use.
4849

4950
### Start the Flink Cluster
50-
Before proceeding to start the Flink cluster, you need to allow port 8081 from your GCP console.
51+
Before launching Flink, open port 8081 in the Google Cloud Firewall Rules so that the Web UI is reachable externally.
5152

52-
Start the Flink cluster using the provided startup script:
53+
Start the standalone Flink cluster using the provided startup script:
5354

5455
```console
5556
cd $FLINK_HOME
@@ -64,7 +65,7 @@ Starting standalonesession daemon on host lpprojectsusearm64.
6465
Starting taskexecutor daemon on host lpprojectsusearm64.
6566
```
6667

67-
Verify that the JobManager and TaskManager processes are running:
68+
Verify that the Flink Processes (JobManager and TaskManager) are running:
6869

6970
```console
7071
jps
@@ -76,30 +77,29 @@ You should see output similar to:
7677
2621 Jps
7778
2559 TaskManagerRunner
7879
```
80+
StandaloneSessionClusterEntrypoint is the JobManager process
81+
TaskManagerRunner is the worker responsible for executing tasks and maintaining state.
7982

8083
### Access the Flink Web UI
8184

82-
Open the Flink Web UI in a browser:
85+
In a browser, navigate to:
8386

8487
```console
8588
http://<VM_IP>:8081
8689
```
87-
88-
- A successfully loaded dashboard confirms the cluster network and UI functionality.
89-
-This serves as the baseline for network and UI validation.
90-
90+
You should see the Flink Dashboard:
9191
![Flink Dashboard alt-text#center](images/flink-dashboard.png "Figure 1: Flink Dashboard")
9292

93+
A successfully loaded dashboard confirms the cluster network and UI functionality. This serves as the baseline for network and UI validation.
94+
9395
### Run a Simple Example Job
94-
Execute a sample streaming job to verify that Flink can run tasks correctly:
96+
A basic sanity test is to run the built-in WordCount example:
9597

9698
```console
9799
cd $FLINK_HOME
98100
./bin/flink run examples/streaming/WordCount.jar
99101
```
100-
101-
- Monitor the job in the Web UI or check console logs.
102-
- Confirm that the job completes successfully.
102+
You can monitor the job in the Web UI or check console logs. A successful WordCount run confirms that your Flink cluster lifecycle works end-to-end.
103103

104104
![Flink Dashboard alt-text#center](images/wordcount.png "Figure 2: Word Count Job")
105105

0 commit comments

Comments
 (0)