Overview
Concepts
Cluster Architecture
Strengths
Scenarios
Exactly-Once consumption semantics.CREAE FILE command with the catalog named kafka. For specific help of the CREATE FILE command, see the CREATE FILE command manual. Here is an example:CREATE FILE "ca.pem" PROPERTIES("url" = "https://example_url/kafka-key/ca.pem", "catalog" = "kafka");CREATE FILE "client.key" PROPERTIES("url" = "https://example_urlkafka-key/client.key", "catalog" = "kafka");CREATE FILE "client.pem" PROPERTIES("url" = "https://example_url/kafka-key/client.pem", "catalog" = "kafka");
CREATE ROUTINE LOAD demo.my_first_routine_load_job ON test_1COLUMNS TERMINATED BY ","PROPERTIES("max_batch_interval" = "20","max_batch_rows" = "300000","max_batch_size" = "209715200",)FROM KAFKA("kafka_broker_list" = "broker1:9092,broker2:9092,broker3:9092","kafka_topic" = "my_topic","property.group.id" = "xxx","property.client.id" = "xxx","property.kafka_default_offsets" = "OFFSET_BEGINNING");
max_batch_interval/max_batch_rows/max_batch_size is used to control the runtime cycle of a subtask. The runtime cycle of a subtask is determined by the longest running time, the most consumed rows and the maximum data volume consumed.CREATE ROUTINE LOAD demo.my_first_routine_load_job ON test_1COLUMNS TERMINATED BY ",",PROPERTIES("max_batch_interval" = "20","max_batch_rows" = "300000","max_batch_size" = "209715200",)FROM KAFKA("kafka_broker_list"= "broker1:9091,broker2:9091","kafka_topic" = "my_topic","property.security.protocol" = "ssl","property.ssl.ca.location" = "FILE:ca.pem","property.ssl.certificate.location" = "FILE:client.pem","property.ssl.key.location" = "FILE:client.key","property.ssl.key.password" = "abcdefg");
STOP/PAUSE/RESUME three commands.
For the specific commands, please see STOP ROUTINE LOAD, PAUSE ROUTINE LOAD and RESUME ROUTINE LOAD command documents.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