Step 1: Download Flink 1.20.2 on Your Local Machine
- Download Apache Flink 1.20.2 from the official site:
🔗 Flink 1.20.2 Downloads - https://dlcdn.apache.org/flink/flink-1.20.1/flink-1.20.1-src.tgz - Choose the binary release (e.g.,
flink-1.20.2-bin-scala_2.12.tgz
). - Download Flink SQL Gateway from the same page if it's not included in the binary package.
Step 2: Transfer Flink to EC2
Use scp
to transfer files to your EC2 instance:
Alternatively, use WinSCP or an internal network if available.
Step 3: Extract and Configure Flink
- SSH into your EC2 instance:
- Extract Flink:
- Modify
conf/flink-conf.yaml
:Update the following configurations:
- Set environment variables:
Step 4: Start Flink Services
- Start the JobManager:
Step 5: Configure and Start Flink SQL Gateway
-
Edit
conf/sql-gateway-defaults.yaml
:Add these configurations:
-
Start Flink SQL Gateway:
Step 6: Verify Installation
- Check if SQL Gateway is running:
- Start SQL Client:
- Run a test query:
No comments:
Post a Comment