CREATE TABLE `cls_source_table` (`key1` STRING,`key2` STRING,`key3` STRING,`key4` STRING,`__TIMESTAMP__` BIGINT) WITH ('connector' = 'cls','region' = 'region, such as ap-guangzhou','logset_id' = 'logset ID, only one logset is supported','topic_ids' = 'log topic ID, multiple topics should be separated by commas','access_id' = 'Your Secret_id, please go to Tencent Cloud CAM to obtain.','access_key' = 'Your Secret_key, please go to Tencent Cloud CAM to obtain.','consumer_group_name' = 'consumer group name, such as flink-connector-cls-5bXXXXb2','offset_start_time' = 'begin','internal' = 'true','format' = 'json','scan.parallelism' = '3');
java -version
sudo yum install -y java-1.8.0-openjdk java-1.8.0-openjdk-devel
java -versionjavac -version # Ensure javac is successfully installed (the devel package includes the compiler, required by Flink)
# 1. Download Flink 1.16.3 (scala 2.12 version, mainstream version)wget https://archive.apache.org/dist/flink/flink-1.16.3/flink-1.16.3-bin-scala_2.12.tgz# 2. Extract it to the specified directory (recommended: /usr/local/)sudo tar zxvf flink-1.16.3-bin-scala_2.12.tgz -C /usr/local/# 3. Rename the directory (to simplify subsequent operations)sudo mv /usr/local/flink-1.16.3 /usr/local/flink# 4. Grant operation permissions to regular users (to avoid permission issues during subsequent startups)sudo chown -R $USER:$USER /usr/local/flink
# 1. Go to the Flink installation directorycd /usr/local/flink# 2. Start the cluster (single-node: 1 JobManager + 1 TaskManager)./bin/start-cluster.sh
jps
- StandaloneSessionClusterEntrypoint (JobManager process)- TaskManagerRunner (TaskManager process)- Jps (its own process)
http://server IP address:8081. If you can see the Flink console and the number of Task Managers is 1, it indicates that the cluster has started successfully.cd /usr/local/flink
./bin/sql-client.sh

./bin/stop-cluster.sh
http://localhost:8081/#/overview.Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback