This topic describes how to use a Spark program to import data to ApsaraDB ClickHouse.
Prerequisites
- The IP address of the on-premises machine is added to the whitelist of the ApsaraDB ClickHouse cluster. For more information, see Configure a whitelist.
- An ApsaraDB ClickHouse table is created. The data type of the table maps the data type of the data that you want to import. For more information, see Create a table.