下载:c++
yum -y install gcc gcc-c++ maven
下载地址Github:https://github.com/hortonworks/hive-testbench/
git clone https://github.com/hortonworks/hive-testbench/
编译:git
有两种数据github
./tpcds-build.sh 编译TPC-DSsql
./tpch-build.sh 编译TPC-Hmaven
出现“BUILD FAILURE” 说明编译成功测试
生成数据(tpcds):ui
./tpcds-build.sh 100 生成100G数据spa
执行完成后,查看hiveblog
数据生成已导入。token
测试:
cd sample-queries-tpcds/
hive> use tpcds_bin_partitioned_orc_100;
hive>source query1.sql;
查看执行结果。