Hello everyone, How can I connect StarRocks to goo...
# questions-and-troubleshooting
s
Hello everyone, How can I connect StarRocks to google looker studio
b
@Rocky How can I connect StarRocks to google looker studio
r
To connect StarRocks to Google Looker Studio, you can use the native MySQL connector because StarRocks is fully compatible with the MySQL protocol. Follow these steps to set up the connection: 1. Prerequisites Before you start, ensure the following: * Accessibility: Your StarRocks FE (Front End) must be reachable from the internet, or you must have a way to bridge the connection (e.g., using a proxy or a tunnel) if it's in a private VPC. * Whitelisting: Google Looker Studio uses a specific set of IP addresses to connect to databases. You may need to whitelist Google's IP ranges in your firewall or StarRocks host. * Port: Ensure the MySQL protocol port (default 9030) is open. 2. Configuration Steps in Looker Studio 1. Sign in to Google Looker Studio. 2. Click Create > Data Source. 3. Search for and select the MySQL connector (provided by Google). 4. Enter the following connection details: * Host Name or IP Address: The public IP address or hostname of your StarRocks FE. * Port:
9030
(the default MySQL protocol port for StarRocks). * Database: The name of the database you want to connect to. * Username: Your StarRocks username (e.g.,
root
). * Password: Your StarRocks password. 5. (Optional) SSL: If your StarRocks cluster has SSL enabled, you can upload the required certificates in the connector settings. 6. Click Authenticate and then Connect. 3. Usage Tips * Large Datasets: Since StarRocks is designed for high-concurrency OLAP, Looker Studio works very well with it. However, if you are dealing with extremely large datasets, consider using Custom Queries in Looker Studio to limit the data retrieved or ensure you have appropriate indexes/distribution keys on your StarRocks tables. * Data Types: StarRocks types like
DATETIME
and
DECIMAL
are generally handled correctly by the MySQL connector. If you encounter issues with boolean values, remember that StarRocks (like MySQL) often treats them as
TINYINT
. If you are using a managed version of StarRocks (like CelerData Cloud), there may be additional options for VPC peering or Private Service Connect to make this connection more secure. Referencesintegrations/BI_integrations/Hex.mdintegrations/BI_integrations/Rill.mdintegrations/BI_integrations/Tableau_Desktop.mdintegrations/BI_integrations/Querybook.mdintegrations/batch/Spark-connector-starrocks.mdxunloading/Spark_connector.mdintegrations/BI_integrations/QuickBI.mdloading/Spark-connector-starrocks.md
s
Ok thank you I will try it
thumbup rocky 1