Phước Hồ
03/04/2026, 5:47 AMRocky
03/04/2026, 5:47 AMstarrocks-lakehouse-be-0 and starrocks-lakehouse-cn-2).
• Try to ping the Kafka brokers or use a tool like telnet or nc to check the Kafka port (usually 9092).
• Use a tool like kcat (formerly kafkacat) from the BE pod to see if you can fetch metadata manually:
bash
kcat -L -b <kafka_broker_list>
2. Increase the Routine Load Timeout
If your Kafka cluster is large or under high load, it might take longer than 12 seconds to return metadata. You can increase the timeout setting in the FE configuration.
You can check the current configuration by running:
sql
ADMIN SHOW CONFIG LIKE '%routine_load_kafka_timeout_second%';
To increase it (e.g., to 30 seconds), run this on the FE:
sql
ADMIN SET FRONTEND CONFIG ("routine_load_kafka_timeout_second" = "30");
Note: Depending on your StarRocks version, this parameter might need to be set in the fe.conf file and requires an FE restart if it's not dynamic.
3. Check Kafka Broker Side
• Load: Check if the Kafka brokers are overloaded or if there are a massive number of partitions in the topic.
• DNS/Advertised Listeners: Ensure that the advertised.listeners configured in Kafka are resolvable and reachable from within your Kubernetes cluster. If Kafka is returning an IP or hostname that the BE cannot route to, the request will hang and timeout.
4. BE Resources
Check the BE logs for any signs of "Process overhead" or "Memory limit exceeded" which might cause the BE's internal Kafka client to become unresponsive.
• Look at be/log/be.INFO or be/log/be.WARNING on the affected nodes.
5. Kubernetes Network Policy
Since you are running in Kubernetes (svc.cluster.local), ensure there are no NetworkPolicies blocking traffic between the StarRocks BE namespace and the Kafka namespace/brokers.
Summary Recommendation:
Start by increasing routine_load_kafka_timeout_second to 30 and verify that the BE pods can successfully run a kcat command against the Kafka brokers.