queryDataAtTime.sh 798 B

123456789101112131415161718192021
  1. #!/usr/bin/env bash
  2. ROOT=$(cd `dirname $0`/../../../; pwd)
  3. cd $ROOT
  4. #host=39.104.80.229
  5. host=127.0.0.1
  6. # 查询某历史数据时修改,先调用函数插入,再进一步查询
  7. pointName=pointName0_
  8. # pointCountArray=(1000 2000 3000 5000 10000 20000 50000 100000)
  9. #pointCountArray=(1 2 3 5 10 20 30 50 100 200 300 500 1000 2000 3000 5000 10000 20000 30000 50000)
  10. pointCountArray=(1 2 3 5 10 20 30 50 100 200 300 500 1000 2000 3000 5000 10000 20000)
  11. for(( i=0;i<${#pointCountArray[@]};i++))
  12. do
  13. echo "----test query realtime data pointCount:${pointCountArray[i]}"
  14. java -cp ./lib/tsdb.jar demo.query.QueryDataAtTime \
  15. --host=$host --pointNamePrefix=${pointName} --pointCount=${pointCountArray[i]} \
  16. --time="2021-03-01 00:00:00" --showQueryResult=0 2>&1 | tee -a ./log/tsdb/out.log
  17. done