By default, StarRocks is "root" with no password. We should allow blank / nothing passwords
curl -i localhost:8083/concurl -i localhost:8083/connectors/ -H "Content-Type: application/json" -X POST -d '{ "name":"starrocks-kafka-connector", "config":{ "connector.class":"com.starrocks.connector.kafka.StarRocksSinkConnector", "topics":"tpcds.public.customer", "key.converter":"org.apache.kafka.connect.json.JsonConverter", "value.converter":"org.apache.kafka.connect.json.JsonConverter", "key.converter.schemas.enable":"true", "value.converter.schemas.enable":"false", "starrocks.http.url":"starrocks-fe:8030", "starrocks.topic2table.map":"tpcds.public.customer:customer", "starrocks.username":"root", "starrocks.password":" ", "starrocks.database.name":"tpcds", "sink.properties.strip_outer_array":"true" } }'
HTTP/1.1 400 Bad Request
Date: Thu, 18 Apr 2024 16:29:48 GMT
Content-Type: application/json
Content-Length: 296
Server: Jetty(9.4.52.v20230823)
{"error_code":400,"message":"Connector configuration is invalid and contains the following 1 error(s):\nInvalid value for configuration starrocks.password: String must be non-empty\nYou can also find the above list of errors at the endpoint `/connector-plugins/{connectorType}/config/validate`"}[kafka@13160e022df3 ~]$
By default, StarRocks is "root" with no password. We should allow blank / nothing passwords