This topic provides an example to show how to use the client clickhouse-client to import data to ApsaraDB ClickHouse. In this example, the On Time dataset is imported to the distributed table ontime_local_distributed in the clickhouse_demo database.
Prerequisites
- The following steps that are listed in Quick Start are complete:
- Create a cluster
- Create an account
- Configure a whitelistNote You need to add the IP address of the server where clickhouse-client is installed to the whitelist of the ApsaraDB ClickHouse cluster.
- Connect to a cluster
- Create a database
- Create a table
- The clickhouse-client that is compatible with the version of the ApsaraDB ClickHouse cluster is installed. For information about the download link, see clickhouse-client.