#!/usr/bin/env bash ROOT=$(cd `dirname $0`/../../; pwd) cd $ROOT source $ROOT/shell/tsdb/common.sh # 查询某历史数据时修改,先调用函数插入,再进一步查询 pointName=pointName1_ pointCountArray=(1 2 3 5 10 20 30 50 100 200 300 500 1000 2000 3000 5000 10000 20000 30000 50000) for(( i=0;i<${#pointCountArray[@]};i++)) do echo "----test query realtime data pointCount:${pointCountArray[i]}" java -cp ./lib/tsdb.jar demo.query.QueryDataAtTime \ --host=$host --pointNamePrefix=${pointName} --pointCount=${pointCountArray[i]} \ --time="2017-06-01 00:00:00" --showQueryResult=0 2>&1 | tee -a ./log/tsdb/out.log done