Hive 性能测试工具 hive-testbench

下载:

yum -y install gcc gcc-c++ maven

下载地址Github:https://github.com/hortonworks/hive-testbench/

git clone https://github.com/hortonworks/hive-testbench/

编译:

有两种数据

  • TPC-DS:提供一个公平和诚实的业务和数据模型,99个案例。
  • TPC-H:面向商品零售业的决策支持系统测试基准,定义了8张表,22个查询。

./tpcds-build.sh   编译TPC-DS

./tpch-build.sh    编译TPC-H

出现“BUILD FAILURE” 说明编译成功

生成数据(tpcds):

./tpcds-build.sh 100  生成100G数据

执行完成后,查看hive

 数据生成已导入。

测试:

cd  sample-queries-tpcds/

hive> use tpcds_bin_partitioned_orc_100;

hive>source query1.sql;

查看执行结果。 

 

 

posted @ 2019-11-18 11:55  青色蔷薇  阅读(2373)  评论(0编辑  收藏  举报