starrocks-kubernetes-operator icon indicating copy to clipboard operation
starrocks-kubernetes-operator copied to clipboard

[Bug] Failed to export data by flink connector

Open yandongxiao opened this issue 1 year ago • 2 comments

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/)

yandongxiao avatar Sep 20 '23 04:09 yandongxiao

Do you have any update on this? Having the same issue when trying to read data with Spark, write works good.

otacilio-psf avatar May 09 '24 10:05 otacilio-psf

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.

yandongxiao avatar May 09 '24 11:05 yandongxiao