Hive 性能測試工具 hive-testbench

下載: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

  • TPC-DS:提供一個公平和誠實的業務和數據模型,99個案例。
  • TPC-H:面向商品零售業的決策支持系統測試基準,定義了8張表,22個查詢。

./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;

查看執行結果。 

相關文章
相關標籤/搜索