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;

查看执行结果。 

相关文章
相关标签/搜索