下載: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;
查看執行結果。