已解决
trino tpcds测试
来自网友在路上 177877提问 提问时间:2023-10-20 15:34:00阅读次数: 77
最佳答案 问答题库778位专家为你答疑解惑
先下载tpcds-kit(有Linux和macOS),根据其文档生成数据和查询的sql。
然后hive-testbench,在ddl-tpcds/text/alltables.sql中有建表语句(用hive建表)。
建完表后LOAD DATA local INPATH "/Users/ding/tools/tpcds-kit/data/web_site.dat" OVERWRITE INTO TABLE tpcds.web_site;
导入数据到对应表里。
写test.sh和trino-tpcds.sh两个脚本跑99条sql(q72可能失败,可将其删除)
test.sh如下
#!/bin/bash
for sql in `find tpcds-queries -type f`
do sh trino-tpcds.sh ${sql}
done
trino-tpcds.sh如下
#!/bin/bash
echo $1:
java -jar trino-cli-406-executable.jar --server IP_ADDRESS:8080 --catalog hive --schema tpcds -f $1 --progress
echo "$1 end"
执行命令nohuo sh test.sh &
nohup会将命令的输出结果重定向到nohup.out中,然后vim nohup.out,通过搜索tpcds-queries关键字查看每条sql的运行时间
查看全文
99%的人还看了
猜你感兴趣
版权申明
本文"trino tpcds测试":http://eshow365.cn/6-20305-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!