-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Description
Q: create routine load, but table no data to load.
resource:
Only 1 FE, 1 BE, 1 KFK, 1 ZK
FE,BE,KFK,ZKall on the same machine
kafka version:
0.10.1.0
create topic:
bin/kafka-topics.sh --create --topic test --replication-factor 1 --partitions 1 --zookeeper 10.39.59.92:2181create table:
CREATE TABLE IF NOT EXISTS test_table
(
`id` INT NOT NULL,
`name` VARCHAR(20) NOT NULL,
`timestamp` DATETIME NOT NULL,
`count` INT SUM DEFAULT "0"
)
ENGINE=olap
AGGREGATE KEY(`id`,`name`,`timestamp`)
PARTITION BY RANGE(`timestamp`)
(
PARTITION `p201906` VALUES LESS THAN ("2019-07-01 00:00:00"),
PARTITION `p201907` VALUES LESS THAN ("2019-08-01 00:00:00")
) DISTRIBUTED BY HASH(`id`) BUCKETS 8
PROPERTIES
(
"replication_num" = "1"
);create routine:
CREATE ROUTINE LOAD feed.load_test ON test_table
COLUMNS(id, name, timestamp, count)
PROPERTIES
(
"desired_concurrent_number"="1"
)
FROM KAFKA
(
"kafka_broker_list" = "10.39.59.92:9092",
"kafka_topic" = "test"
);There appears to be an import operation, but there is no data in the table test

Metadata
Metadata
Assignees
Labels
No labels

