# presto-clickhouse **Repository Path**: yiidata/presto-clickhouse ## Basic Information - **Project Name**: presto-clickhouse - **Description**: PrestoDB for ClickHouse Connector - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2021-10-27 - **Last Updated**: 2023-06-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README PrestoDB for Clickhouse Connector --- 本项目为 PrestoDB 连接 Clickhouse 的链接适配器。编译本项目步骤如下: 1. 下载代码到本地。 ```shell git clone https://gitee.com/yiidata/presto-clickhouse.git ``` 2. 进入项目目录,并编译项目。 ```shell cd presto-clickhouse mvn clean compile package -DskipTests ``` 3. 提取 presto plugin ```shell tar -zxvf target/presto-clickhouse-${ver}.tar.gz -C /presto_home/plugins/ # 将 clickhouse connector 的配置文件放置到 presto/etc/catalog 下,presto 启动时能被加载到 mv /presto_home/plugins/catalog /presto_home/etc/ ``` 4. 修改 `/presto_home/etc/catalog/clickhouse.properties` 的 ClickHouse DB 数据库信息 修改完已上配置,启动 presto, 即可看到 presto 下 clickhouse 模式、库、表 等信息,可在 presto 执行 sql 并链接到 clickhouse 执行。