starrocks-kubernetes-operator
starrocks-kubernetes-operator copied to clipboard
[Bug] Failed to export data by flink connector
CREATE TABLE `score_board` (
`id` INT,
`name` STRING,
`score` INT,
PRIMARY KEY (id) NOT ENFORCED
) WITH (
'connector' = 'starrocks',
'jdbc-url' = 'xxx',
'scan-url' = 'yyy',
'database-name' = 'test_db',
'table-name' = 'table1',
'username' = 'root',
'password' = ''
);
Flink SQL> select id,name,score from score_board where id>0;
[ERROR] Could not execute SQL statement. Reason:
java.lang.RuntimeException: Failed to create brpc source:java.net.UnknownHostException: [kube-starrocks-be-0.kube-starrocks-be-search.starrocks.svc.cluster.local](http://kube-starrocks-be-0.kube-starrocks-be-search.starrocks.svc.cluster.local/)
Do you have any update on this? Having the same issue when trying to read data with Spark, write works good.
This should be a domain name resolution issue caused by accessing the SR deployed within k8s from outside the k8s cluster. There is currently no solution.