StarRocks
Property definition
-
Data source type:
starrocks -
Supported configuration modes (
ConnectionPropertiesMode):-
Connection string mode (
UrlMode) -
Instance mode (
InstanceMode)
-
Current-account instance mode
|
Parameter |
Type |
Example |
Required |
Description |
|
|
String |
|
Yes |
The ID of the region where the instance resides. |
|
|
String |
|
Yes |
The instance type. Valid values: emr-olap (semi-managed mode), serverless (serverless mode). |
|
|
String |
|
Yes |
The instance ID. |
|
|
String |
|
Yes |
The name of the database. |
|
|
String |
|
Yes |
The username. |
|
|
String |
|
Yes |
The password. |
|
|
String |
|
Yes |
The environment of the data source. Valid values: Dev (development environment), Prod (production environment). |
Cross-account instance mode
|
Parameter |
Type |
Example |
Required |
Description |
|
|
String |
|
Yes |
The ID of the region where the instance resides. |
|
|
String |
|
Yes |
The instance ID. |
|
|
String |
|
Yes |
The instance type. Valid values: emr-olap (semi-managed mode), serverless (serverless mode). |
|
|
String |
|
Yes |
The name of the database. |
|
|
String |
|
Yes |
The ID of another Alibaba Cloud account. |
|
|
String |
|
Yes |
The name of the RAM role assumed by that account. |
|
|
String |
|
Yes |
The username. |
|
|
String |
|
Yes |
The password. |
|
|
String |
|
Yes |
The environment of the data source. Valid values: Dev (development environment), Prod (production environment). |
Connection string mode
|
Parameter |
Type |
Example |
Required |
Description |
|
|
String |
|
Yes |
The name of the database. |
|
|
String |
|
Yes |
The username. |
|
|
String |
|
Yes |
The password. |
|
|
JSON Array |
|
Yes |
The connection address. Accepts a JSON array with a single host-port pair. |
|
|
JSON Array |
|
Yes |
The load address. Accepts a JSON array with one or more host-port pairs. |
|
|
JSON |
|
No |
Additional connection key-value pairs, such as |
|
|
String |
|
Yes |
The environment of the data source. Valid values: Dev (development environment), Prod (production environment). |
Configuration examples
Current-account instance mode
{
"envType": "Prod",
"instanceType": "serverless",
"regionId": "cn-shanghai",
"instanceId": "c-107e2047ef787c2e",
"database": "my_database",
"username": "xxxxx",
"password": "xxxxx"
}
Cross-account instance mode
{
"envType": "Prod",
"instanceType": "serverless",
"regionId": "cn-shanghai",
"instanceId": "c-107e2047ef787c2e",
"database": "my_database",
"username": "xxxxx",
"password": "xxxxx",
"crossAccountRoleName": "cross-role",
"crossAccountOwnerId": "123123123"
}
Connection string mode
{
"envType": "Prod",
"address": [
{
"host": "127.0.0.1",
"port": 3306
}
],
"loadAddress": [
{
"host": "127.0.0.1",
"port": 3306
}
],
"database": "asdf",
"username": "xxxxx",
"password": "xxxxx",
"properties": {
"socketTimeout": 2000
}
}