Integrate ClickHouse natively with Hive, currently only writing is supported. Connecting Hadoop’s massive data storage and deep processing power with the high performance of ClickHouse.
Build the Project
mvn package -Phadoop26 -DskipTests
Run the test cases
It is required that a clickhouse-server is running in the localhost to correctly run the test cases.
Usage
Create ClickHouse table
CREATE TABLE hive_test
(
c1 String,
c2 Float64,
c3 String
)
ENGINE = MergeTree()
PARTITION BY c3
ORDER BY c1
Create Hive External Table
Before starting the hive cli, set the environment variable HIVE_AUX_JARS_PATH
ClickHouse Hadoop
Integrate ClickHouse natively with Hive, currently only writing is supported. Connecting Hadoop’s massive data storage and deep processing power with the high performance of ClickHouse.
Build the Project
Run the test cases
It is required that a clickhouse-server is running in the localhost to correctly run the test cases.
Usage
Create ClickHouse table
Create Hive External Table
Before starting the hive cli, set the environment variable
HIVE_AUX_JARS_PATHThen start the
hive-cliand create Hive external table:Data Ingestion
In
hive-cli