Hive performance testing tools hive-testbench

download:

yum -y install gcc gcc-c++ maven

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

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

Compile:

There are two types of data

  • TPC-DS: providing a fair and honest business and data model, 99 cases.
  • TPC-H: Decision Support System for the benchmark commodity retail, defines eight tables, 22 queries.

./tpcds-build.sh compiled TPC-DS

./tpch-build.sh compiled TPC-H

Appears "BUILD FAILURE" explained compile successfully

Generates data (tpcds):

./tpcds-build.sh 100 generates data 100G

After execution, see the hive

 Data generating imported.

test:

cd  sample-queries-tpcds/

hive> use tpcds_bin_partitioned_orc_100;

hive>source query1.sql;

View the results. 

 

 

Guess you like

Origin www.cnblogs.com/cyanrose/p/11881251.html